How to access unread mails of all users in Exchange server without having Passwords and without giving mailbox access to other user.

Hi all,
   I am using Exchange server 2013, my task is to create
Service , that
need's to  monitor continuously for new mails of all Mailboxes in
my server. if any user got new mail i need to get that Mail Subject, Mail Body, Sender Email Address [From emailId] .  
Limitation
: I don't have Passwords of mailboxes , so i gave all mailbox access permission  to one user , then i completed this   service using below code.
 But now, Client
not willing to give Mailbox Permissions to one user because of security problems.
How can i do this without passwords and without giving permissions to other user ?
i don't want all mailbox access , i just need only
access Mail Subject , Body and Sender mail address .
How can i achieve
this ?
Process i follow
=> I created new user in server , and then i gave full permissions of all Mailboxes to newly created user[ex: james] in database level.
     i use below command for giving permissions in database level.
Get-MailboxDatabase -Identity <Database Name> | Add-ADPermission -User <User> -AccessRights GenericAll
 => using below code i am searching unread mails of all user Mailboxes and then getting Subject, body and Sender Email            address . here i am have list of users,
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013);
service.Credentials = new WebCredentials("[email protected]", "password");
service.AutodiscoverUrl("[email protected]");  foreach (Object obj in usersList) // here i have Mailbox users list in usersList
             { var userMailbox = new Mailbox(obj.user);
var folderId = new FolderId(WellKnownFolderName.Inbox, userMailbox);
SearchFilter.IsEqualTo filter1 = new SearchFilter.IsEqualTo(EmailMessageSchema.IsRead, false);
var itemView = new ItemView(50);
var userItems = service.FindItems(folderId, filter1, itemView);
foreach (var item in userItems)
item.Load();
var senderEmail = ((EmailMessage)item).From;
var subject = item.Subject;
var body = item.Body;

You would need to check that possibilities via WebServices but suggest you to post this in Development forum to get help from programmers....
http://social.technet.microsoft.com/Forums/office/en-US/home?forum=exchangesvrdevelopment
Blog |
Get Your Exchange Powershell Tip of the Day from here

Similar Messages

  • How to send mail in PL/SQL using exchange server details.

    Hi Experts,
    Business user has provided us the exchange server details to send mails.How can I send mails thru PL/SQL using exchange server details.

    user595740 wrote:
    Business user has provided us the exchange server details to send mails.How can I send mails thru PL/SQL using exchange server details.Basic answer - not easily.
    Oracle supports the standard application protocol SMTP - it does not support a proprietary protocol like that used by Exchange that only works on the Windows operating system. It however provides you with the flexibility to code this yourself.
    If you for example use Microsoft MAPI (Mail Application Programming Interface), you can integrate it with PL/SQL using the external procedure (extproc) feature of Oracle.
    In a nutshell, extproc enables you to create PL/SQL wrappers for public DLL calls. I posted sample code that demonstrates this in {message:id=2271919}. The sample code is for calling a DLL interface on HP-UX, but the concept is identical on Windows.

  • How to find the list of all user exits modified by the users

    How to find the list of all user exits using by in R3

    Hi Mohamed
    You use Solution Manager to do the comparison for you.  There are some nice features that will highlight all your customised coding.  Have a look at the SolMan resources on the Support Portal e.g. using SolMan for upgrade comparisons.
    Rgards
    Carl.

  • Sending mail to all users

    Folks,
    In Communigate there was a default 'all' account which could be used to send mail to all users. I know I could set up a mailing list to do this but does the Apple Mail server have a built in option for sending an email to all users?
    /// kak
    powerbook   Mac OS X (10.4.7)  

    No there is no such option.
    You will either need to setup a mailing list or create an alias that forwards to all your users.
    Obviously both solutions require that you add new users to the mailing list or alias.

  • SNR License Issue. How Can I Disable SNR for all Users?

    Hi,
    I Have an issue with SNR on CUCM 10.5 and with assignement of license type
    I have a cluster with 400 users.
    200 users use ip phone 3905 and should be use an Essential License.
    When system check for assignement of license type , itassign a Basic License instead of an Essential License, because it see that users have SNR Enabled.
    All users in my system have SNR enabled, and I can not disable it. All my user have Enable Mobility unchecked, and all my phone have Device Mobility Off, but system however see SNR enable.
    How can i disable SNR for all users? This is a feature that client don't need.
    I dont' have a sufficent number of licenses for support all 3905 in Basic License.
    thanks for help.
    Andrea

    Well actually, Mobile Identity wouldn't apply to a 3905 unless those phones had another line on a Dual-Mode device like an iPhone or Android phone.  So unless you have either of those in your system you can scratch that idea.  Someone else may chime in here and try to help a bit more as RD/RDP are the main SNR culprits.

  • How to create delivery device for all users ?

    hi
    help needed ...
    i activated delivery tool
    but i dont know how to create email devices for all users
    is there any api / manual action
    obiee version : Oracle Business Intelligence 10.1.3.4.1
    thanks
    yuval

    Yuval..u need to setup SA System in RPD..
    refer http://oraclebizint.wordpress.com/2008/04/25/oracle-bi-ee-101332-sa-system-subject-area-autoloading-profiles-and-bursting/

  • How to send external mails to the user

    Dears,
    How to send external mails to the user who creates the sales document (Quotation)
    Can you please suggest what modification required in the FM
    Thanks,
    pinky

    You can have a partner function like 'Created by' and use an exit to populate the User ID to this partner function(dont have the system right now but i think this can be done with standard partner detr. procedure also)
    Then, create an Output type for that Partner function with transmission medium as 'External Send'. You can use the standard SAP program to trigger the email. To send the actual email after the output is trigerred, the link connection has to be set up be BASIS but if you want to check, then goto SOST and see if the email got trigerred or not.

  • How to install plugin globaly (for all users) in Firefox13?

    How to install plugin globaly (for all users) in Firefox13?

    See also:
    *https://developer.mozilla.org/en/Gecko_Plugin_API_Reference/Plug-in_Development_Overview#Installing_Plug-ins

  • How can we identify what are all user exits are there for sales orders,deli

    Dear All,
    How can we identify what are all user exits are there for sales orders,deliverys and invoices
    thanks
    nitchel v

    Hi Nitchel
    There are many ways to find out the user exits..
    For example for VA01.
    Goto Transaction ie VA01:
    goto System-- Status
    doubleclick on the program name ie SAPMV45A
    SE38 -> Enter the program name and in the program( SAPMV45A) goto -- attributes
    get the package name from here ie VA
    note the package(VA) and get back to main screen
    goto SMOD tcode  and click on find button in the package spec giv the package name ie VA and execute it
    you will find list of exits available
    check out the exit that suits ur requirement
    goto cmod and create a new project and implement in that user exit.
    You will get the following exits in SMOD..
    SDTRM001  Reschedule schedule lines without a new ATP check
    V45A0001  Determine alternative materials for product selection
    V45A0002  Predefine sold-to party in sales document
    V45A0003  Collector for customer function modulpool MV45A
    V45A0004  Copy packing proposal
    V45E0001  Update the purchase order from the sales order
    V45E0002  Data transfer in procurement elements (PRreq., assembly
    V45L0001  SD component supplier processing (customer enhancements
    V45P0001  SD customer function for cross-company code sales
    V45S0001  Update sales document from configuration
    V45S0003  MRP-relevance for incomplete configuration
    V45S0004  Effectivity type in sales order
    V45W0001  SD Service Management: Forward Contract Data to Item
    V46H0001  SD Customer functions for resource-related billing
    V60F0001  SD Billing plan (customer enhancement) diff. to billing
    For Delivery you will get .. here the package name will be VL.
    V02V0001  Sales area determination for stock transport order
    V02V0002  User exit for storage location determination
    V02V0003  User exit for gate + matl staging area determination (h
    V02V0004  User Exit for Staging Area Determination (Item)
    V50PSTAT  Delivery: Item Status Calculation
    V50Q0001  Delivery Monitor: User Exits for Filling Display Fields
    V50R0001  Collective processing for delivery creation
    V50R0002  Collective processing for delivery creation
    V50R0004  Calculation of Stock for POs for Shipping Due Date List
    V50S0001  User Exits for Delivery Processing
    V53C0001  Rough workload calculation in time per item
    V53C0002  W&S: RWE enhancement - shipping material type/time slot
    V53W0001  User exits for creating picking waves
    VMDE0001  Shipping Interface: Error Handling - Inbound IDoc
    VMDE0002  Shipping Interface: Message PICKSD (Picking, Outbound)
    VMDE0003  Shipping Interface: Message SDPICK (Picking, Inbound)
    VMDE0004  Shipping Interface: Message SDPACK (Packing, Inbound)
    For Billing VF01..Package is VF..
    SDVFX007  User exit: Billing plan during transfer to Accounting
    SDVFX008  User exit: Processing of transfer structures SD-FI
    SDVFX009  Billing doc. processing KIDONO (payment reference numbe
    SDVFX010  User exit item table for the customer lines
    SDVFX011  Userexit for the komkcv- and kompcv-structures
    V05I0001  User exits for billing index
    V05N0001  User Exits for Printing Billing Docs. using POR Procedu
    V60A0001  Customer functions in the billing document
    V60P0001  Data provision for additional fields for display in lis
    V61A0001  Customer enhancement: Pricing
    Or another way is ..
    - Get the program name for that T-Code
    - Go to that program
    - In that program, search for word 'EXIT' or 'CUSTOMER-FUNCTION' by using where-used list which will give u the list of user exits for that program
    And also you can check in the tables in SE16 for user exits..
    MODSAP - Stores SAP Enhancements
    MODSAPT - Stores SAP Enhancements - Short Texts
    MODACT - Stores Modifications
    And there are other ways as well , pls check the forum for this ,
    Regards,
    Vvieks
    Note : If you have any specific requirement then pls let us know , we will guide you

  • I created new users on my mac and my music, photos, etc. is still on the administrators account. How can I share them with all users?

    I created new users on my mac and my music, photos, etc. are all still on the administrators account. I tried making the other 2 new accounts administrators but that didn't work. How can I share them with all users?

    Read "iTunes: Setting up Home Sharing on your computer."

  • Mail on iMac not accessing MS Exchange server but both iPhone and iPad access the same account with no problems.

    I have been using an iPhone and iPad to access my work emails via our MS Exchange server for a number of years now with no problems at all.  I recently replaced my home PC with an iMac (first Mac I have owned) but cannot get it to communicate with the exchange server.  I've checked and re-checked the information on the iMac and my iPad - I even deleted the mail account on the iPad and input the details concurrently with setting up on the iMac - but the Mac will not access the exchange server.
    I receive the message "The Exchange server "---------------" rejected the password for user "------"  Enter you password again or cancel."  I am using the correct password.  iPad and iPhone are logging on using that password fine.  iMac just ends up repeating this message.
    Our IT support at work assure me that there is no reason from their end for it not to work, and reasonably point to it working using the iPhone etc.
    I'd be extremely grateful if anyone can provide a solution to this basic, but extremely frustrating, little problem.

    iPhone and iPad use a different way of accessing the server.
    I don't know the exact details, but we are using Zarafa instead of Exchange and have the same problem:
    iPhone and the likes can connect to Zarafas z-push interface, which is some identical interface to the native Exchange interface, while the desktop e-mail application tries to interface with the web front end (via http) of the server.
    These are completely different setups and it depends on the actual installation of the server to get this going.
    So, you will most likely need different access parameters for the desktop - and the web mail feature has to be enabled on the Exchange server.
    In my opinion using the web mail interface is just silly. On the other hand, the native protocol has less features comparedto the web front end, so you are somehow stuck with sins of the past.
    Good luck!

  • I have 2 game centers on 1 Apple ID and it willl only access 1 of them may someone tell me how to access the other one

    I have 2 game centers on 1 Apple ID and it will only access 1 of them may someone tell me how to access the other one

    You don't have to use the same ID for iCloud as you do for purchasing.  You can just set up iCloud using your other ID. 
    If your have already have another account, you have to go to Settings>iCloud, tap Delete Account, choose Keep on My iDevice when prompted, set up your new account with the other ID, turn on your iCloud data syncing and when prompted, choose Merge to upload your data to the new account.

  • Replacing original all in one exchange server 2010

    Hello,
    I currently have exchange 2010 all in one without an Edge Server.  The HD is showing signs of failure so i want to move all these services to a new CAS Array and DAG.  I know how to set up the DAGs but was confused about the HT and CAS roles.  Currently
    the all in one also has lync 2010 integration which i want to move to the new array.  My question is how do i do all of this without interrupting the current setup until im ready to make the switch?  Currently i have port forwarding to my exchange
    server with 25 and 443 tcp ports pointing to it.  I will be creating a new exchange certificate using my internal enterprise root CA to point to the new outlook.xxxxx.net.  Currently my exchange cert is mail.xxxx.net with sub alternative of autodiscover.xxxx.net
    and mail.xxxx.net.  I dont want to mess with my current set up until im finished with this setup. i know my new cert should also have autodiscover.xxxx.net but would that mess with my current setup?  Do i install the same cert on the other CAS array
    member?  I now i have to point to the new RPC but i will wait till the end for that.  For lync integration, do i uninstall on the current all in one exchange server and install the components on both CAS array members? Do i install the HUB transport
    role on both CAS Array members and point the natted ip to the CAS array(SSL 443) and (SMTP 25) virtual IP?    I know this is a lot but if one of you can assist or point me to a guide i would really appreciate it. 
    Thanks

    sorry about that.  All my issues have been resolved minus one thing.  So im using Zen Load Balancer on my cas array which also is part of a dag.  From time to time outlook pops up a certificate warning about trust. The message varies from
    time to time by listing one of my exchange servers and then the other one the next time.  All i do is hit yes to accept and it disappears and outlook works fine.  My exchange certificate is from my internal CA and it only list autodiscover and my
    mail.xxxxx.net that points to my cas array(external facing) virtual ip.  I was told my certificate does not need to have my internal mail servers name only my external which is why i think i get the certificate warning.  Can you verify or provide
    some guidance?
    Thanks
     

  • Sender mail adapter config for MS Exchange Server

    Dear All Gurus,
    Need your advice on configuring sender mail adapter (mail to file scenario ) for exchange server. I have read a lot of SCN threads and other articles and was not able to find the exact solution for this. PI version : 7.3.
    Thank you all in advance...

    Hi,
    please check the below links.
    http://wiki.scn.sap.com/wiki/display/XI/Step+by+Step+Mail+To+File+Scenario  -  Mail to File
    http://www.riyaz.net/sap/xipi-configuring-the-sender-mail-adapter/90/
    Regards
    srinivas

  • How can I delete my Icloud account when I don't know the password and no longer have the email address associated with it?

    How can I delete my Icloud account when I don't know the password and no longer have the email address associated with it?
    You need your password to delete it and I need the email address to reset the password.  I feel like I'm going in circles!!!  Please help!!!

    Go to https//appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Tap edit next to the primary email account, tap Edit, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address (you shouldn't need to verify the old account).  You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https//appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

Maybe you are looking for

  • AirTunes stopped showing up in iTunes but fine on mac.

    Hi, Have done a search but can't find this problem. We had a network with one PC, one mac, 1 x wireless router and 2 x airport express (for airtunes). After updating iTunes on the PC (maybe a coincidence), iTunes can no longer find any speakers. They

  • BLOB column in own tablespace, in partition, in table, tablespace to be moved

    Hi All, First off I am using Oracle Database 11.2.0.2 on AIX 5.3. We have a table that is partitioned monthly. In this table there is a partition (LOWER), this lower partition is 1.5TB in size due to a BLOB column called (ATTACHMENT). The rest of the

  • How can I apply curve fitting to simple BER measurement data?

    I am collecting simple BER data from a communications receiver for modulations such as PSK, CPM, etc. The data looks good but has the usual measurement noise, which I would like to spiffy-up for customer presentations. I have tried virtually all of t

  • BAPI_REQUISITION_CREATE with service detail

    Hi, Happy new year to all. I'm having a problem working with BAPI_REQUISITION_CREATE. I used that BAPI and was able to successfully create a PR. When I tried to view the PR in ME53N, the service detail was there. However, when I run the BAPI_REQUISIT

  • Can a swc be packaged with a CS Extension

    Hi, I'm creating a CS extension for Flash that loads a JSON file in any SWFs that are published via the CS Extension, but as JSON support is not native to Flash unless the swf is created against the latest Flash Player, I'd like to package up a third