Exchange - Export only primary SMTP addresses

Hi SpiceHeads, 
I'm looking for a script or help to write a script that simply dumps all primary SMTP addresses to a text file, one per line.
Everything I've found or even using exchange powershell includes additional fluff like names or alias's.
Any help would be appreciated.
This topic first appeared in the Spiceworks Community

I'm seeing this same limitation and I'm needing to determine if it is an ActiveSync limitation from Exchange or if it maybe is a limitation of the mobile device. 
I have customers who are delegates for multiple exchange mailboxes.  For the sake of example I'll use the following:
John Smith ([email protected]) is a delegate on a shared mailbox ([email protected]) and a delegate for his boss, Cheryl Thompson ([email protected]). 
John has an Iphone 4S running IOS7.  He adds his exchange account ([email protected]) and accesses email/contacts/calendars on that account with no issues.
Next he adds the shared mailbox by putting [email protected] in as the email address of the account, but he uses jsmith with his password as his user credentials.  The account is added and John is able to access the shared mailbox and calendars for
this account.
When he trys to add the 3rd account for his boss, he uses his boss' email address ([email protected]) with his jsmith credentials and he gets the following error:  "Cannot Create Account:  An identical Exchange account already exists." 
Any idea of whether this is an Exchange 2010 limitation or an IOS limitation?  The infrastructure we are using is Exchange 2010.
Todd Boring
MD Anderson Cancer Center

Similar Messages

  • Contact Objects and Primary SMTP address changes

    We are going to be changing the primary SMTP address on a large number of contact objects. Does anyone know if simply removing the SMTP address of contacts will cause any issues?

    Hi,
    Please confirm if the “contact objects” in your posting mean the
    Mail Contact in Exchange. Generally, the Primary SMTP address for the mail contact is the external email address for the contact.
    If you want to change it to a different external email address, we can use EMS with "-PrimarySmtpAddress" parameter to change it. If you want to change the primary SMTP address for multiple mail contacts, we can create a .csv file with all changed
    external e-mail addresses for these contacts. Then imports and uses the data in the .csv file to set the mail contact.
    Import-CSV "C:\ChangedContacts.CSV" | ForEach-Object {Set-MailContact -Identity $_.Name -PrimarySmtpAddress $_.EmailAddress -EmailAddressPolicyEnabled $False}
    Regards,
    Winnie Liang
    TechNet Community Support

  • Powershell script to get all the AD accounts with multiple primary SMTP addresses

    I require a script to be run in powershell for Win Server 2008 R2, to look to AD accounts with multiple primary SMTP addresses ?
    Description: In my Organization, there can be a configuration error which might have resulted in multiple primary SMTP addresses to be assigned to a user. I want to get the list of these AD accounts which have multiple primary SMTP addresses

    Hi,
    You can use the PowerShell command given below to get the AD User name and primary smtp address in a OU,
    Get-ADuser -filter {proxyAddresses -like "*"} -searchbase "ou=testOU,dc=MyDomain,dc=local" -properties * | select name,proxyaddresses | fl
    NOTE: proxyAddresses attribute in AD User matches the primary SMTP address.
    Regards,
    Gopi
    JiJi
    Technologies

  • Exchange Activesync and multiple smtp addresses in same domain

    Hi,
    Could anyone help with this if it is possible via Exchange Activesync or a third party software?:
    I have a domain user called UserA with three smtp addresses in exchange server 2007SP3 (1 primary -
    [email protected] ) and 2-secondary -
    [email protected] and
    [email protected] ).
    The user has been  successfullly setup on an iphone with Exchange Activesync using the primary address. Now, the management wants UserA to be setup to receive mails for the other two secondary addresses using the Domain username
    UserA on the same iphone.
    Our Exchange team have tested the practicality of this on the iphone and doesn't seems possible; the error was ''Can't create account- An identical Exchange account already exists'' 
    when this was attempted on iphone. Is this error IOS related or EAS.
    I have searched everywhere for any documentations from microsoft  or any of the smart phone vendors (please point to any link that may exist) to confirm this as a proof to the management.
    Thanks.
    Ajagbe T.I.

    I'm seeing this same limitation and I'm needing to determine if it is an ActiveSync limitation from Exchange or if it maybe is a limitation of the mobile device. 
    I have customers who are delegates for multiple exchange mailboxes.  For the sake of example I'll use the following:
    John Smith ([email protected]) is a delegate on a shared mailbox ([email protected]) and a delegate for his boss, Cheryl Thompson ([email protected]). 
    John has an Iphone 4S running IOS7.  He adds his exchange account ([email protected]) and accesses email/contacts/calendars on that account with no issues.
    Next he adds the shared mailbox by putting [email protected] in as the email address of the account, but he uses jsmith with his password as his user credentials.  The account is added and John is able to access the shared mailbox and calendars for
    this account.
    When he trys to add the 3rd account for his boss, he uses his boss' email address ([email protected]) with his jsmith credentials and he gets the following error:  "Cannot Create Account:  An identical Exchange account already exists." 
    Any idea of whether this is an Exchange 2010 limitation or an IOS limitation?  The infrastructure we are using is Exchange 2010.
    Todd Boring
    MD Anderson Cancer Center

  • Messages, being retrieved via POP3, are having their alias being replaced by its primary smtp address

    We use a CRM tool (Deerfield's VisNetic Mailflow) that POP's into Exchange 2007 to access their mailboxes.  Senders of email to this mailbox use one of many alias' assigned to the mailbox.  The issue we are having is that the alias (ie secondary address) is being replaced by the mailbox's primary address.
    NB When I perform a test without POP'ing  (ie send\receive testing directly between a private external email address and my Exchange mailbox, back and forth), I am successful in retaining the secondary address.
    Any idea what is causing the address to change from the alias (ie secondary) to the primary address when POP'ing?  POP does seem to be the variable here...just not sure what I should be looking at in order to fix this issue.
    Regards,
    Andrew

    Following up on Andrew's post we're seeing some confirmation of a behaviour change in Exchange 2007:
    Dear Colin,
    Based on our lab test, it is confirmed that the behavior has changed in Exchange 2007. If a mail is received by Exchange 2007 store, the To field will remain as the intended recipient if you view the mail in Outlook 2003/2007. But the To header will always be changed to primary address if you view the mail in Windows Mail, Outlook Express via POP3 or IMAP. This is the reason that the same copy of a mail will exhibit the different address in header. In Exchange 2007, the real P2 address will be written to email to header only when it is transferred to MAPI format.
    Below is the final test report in our lab
    1: Exchange 2003 situation:
    Mailbox Name: Test1, Test2.
    Primary email address: [email protected], [email protected]
    Secondary email address: [email protected], [email protected]
    Use the Test1’s primary email address to send the message to its secondary email address and Test2’s secondary email address, then no matter which type of method we use to open these two mailboxes, the secondary email address will be listed in “to” field in this message’s message header. In the other word, the email address in the “to” field will not be changed to the recipient’s primary email address.
    2: Exchange 2007 situation:
    Mailbox Name: AA,BB.
    Primary email address: [email protected], [email protected]
    Secondary email address: [email protected], [email protected]
    use aa’s primary email address to send the message to its secondary email address and bb’s secondary email address, then if we use pop3 method to open the message, then we will see the recipient’s Primary email address in the “to” field in this message’s message header. However, if open the message by using Outlook MAPI method, then the recipient’s secondary email address in the “to” field in the message’s message header.
    In Exchange 2003 , if send the message to recipient’s secondary email address, then this secondary email address will be shown in the message’s message header without any change.
    However in Exchange 2007 situation, once you send the message to the recipient’s secondary email address, then open and view this message’s message header by Outlook MAPI, then the recipient’s secondary email address will still be shown in the “to” field. If we open and view this message’s message header by the POP3 or IMAP method, then the recipient’s primary email address will be shown in the “to” field in Message header instead of its secondary email address. This behavior is the new change in Exchange 2007 situation.
    Meanwhile, I have reviewed your replies again and I know that we open the message to your tickets message from the General delivery mailbox using Windows Mail on Vista and an IMAP connection. However, you opened the message to your person mailbox using Outlook 2007 on Vista using a MAPI connection. Hence, we will encounter two different behavior in “to” list in the message header.
    I understand that the VisNetic MailFlow application is probably a critical application in your organization. However, it seems this application work with POP3 or IMAP4 method. If so, it may not be able to get the secondary email address in the message’s message header. I am wondering if there is a MAPI versions of this utility so that it can recognize the original header.
    I hope my explanation can clarify this issue more explicitly. If you have any question about my explanation, please let me know.
    Thanks.
    Best regards,
    Jeff Zeng
    Microsoft Messaging Support Service

  • How can I change or delete primary SMTP address of mail contacts?

    By mistake, one of our Admin has applied default email address policy (we can say test.ad) for all
    recipient. There were 15000 mail contacts from different domains or companies. Policy has been applied to all those. How can i revert to old or delete the primary SMTP (test.ad) in one command.<o:p></o:p>
    Saifudheen

    Moreover, here are another two posts (Post A &
    Post B) for reference. Hope helps.
    Noya Lau
    TechNet Community Support

  • Should you use only one smtp address for all email accounts?

    My iPhone and iPad will not send mail from either of two email accounts. Ive checked the smtp settings and passwords several times. I have several email accounts with different providers/servers though, so should there only be one server chosen for all? Cant figure out why my email won't send! Anyone know an answer?

    No.  Each mail provider has its own SMTP server. And you won't be able to send email from one provider's email account through another provider's smtp server.
    Each account should have its provider's SMTP server set as its Primary Server.  And The rest of the smtp servers should be turned off for that particular account. 

  • Exchange - Directory only shows email address field

    My calendar and mail work great. The account contacts sync just fine (phone numbers, address, email, etc.) but when I look at the Directory for all employees it only shows the email field for each contact
    any ideas?

    Hi and welcome to the forums!
    Read the article attached, is this what you are seeing?
    Thanks,
    Bifocals
    KB16346 When replying to an email on the BlackBerry smartphone using a BlackBerry Internet Service account the wrong email address is displayed to the recipient
    Click Accept as Solution for posts that have solved your issue(s)!
    Be sure to click Like! for those who have helped you.
    Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure.

  • Missing SMTP address and SELF AUTHORITY for a few mail boxes

    Hello Everyone,
    This is Jay. I am seeing a strange thing in exchange 2010. Primary SMTP addresses are missing from the User mailboxes.
    Below is the required information.
       *  We are creating user mailboxes through CA Identity Manager tool.
    It happens randomly for a few mailboxes sometimes.
    I have checked the logs on exchange server but NOTHING FOUND related.
    Any help would be highly appreciated.
    Thanks in Advance.
    Regards,
      Jay.

    Sometimes when a 3rd party solution is used to create a user and its associated mailbox, all of the processes are not run.  In those scenarios, it is common to setup reporting to identify if there are any mail-enabled objects that are not properly configured
    or if processing has not completed.
    I agree that  the Automatically update...checkbox should be checked for most configurations.  If it is not, that might explain why there is no primary reply address listed.

  • Exchange 2013 mail contact in Active Directory missing SMTP email address but has a primary email address

    Outlook 2010 Distribution Group contact member "Al" is not showing an email address. In Active Directory "Al" is showing an email address but it's not a SMTP email address that is created when you add a new Mail contact using EAC. 
    When the DG owner sends out an email using DG email account, the mail bounces back as undeliverable.
    Exchange Admin Center is not showing the member.  The only way to fix the member is by deleting the contact. Re-add contact in EAC then add to Distribution Group.  We have over 30 DGs that are missing the SMTP email addresses.
    Can a Powershell command fix this issue or is there a sync issue between AD and Exchange?

    Hi,
    From your description, the contact you specified should be contact not mail contact. Contact and mail contact are two different things. If you create a contact in ADUC, you need to mail-enable it and then set the primary SMTP address for it.
    For more information, here is an article for your reference.
    Recipients
    http://technet.microsoft.com/en-us/library/bb201680(v=exchg.150).aspx
    Hope my clarification can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • Problem handling SMTP address with OIM 11gR2 Exchange connector

    Hello,
    I have a problem in regarding the primary SMTP address with the Exchange connector. The connector doesn't seem to be able to update it. Changing a user's primary SMTP address from its account details in OIM creates a new secondary address in Exchange. It does not change the current primary SMTP address. This does not look like a normal behavior... Any ideas on how to fix this?
    I'm using OIM 11gR2 with BP10 with AD 11.1.1.5.0A and Exchange 11.1.1.5.0.
    Thanks,
    --jtellier

    Yes, you can try out few things suggested in below thread
    Re: Exchange Provisioning
    The error looks like form exchange server side but still not sure about it.
    Meantime open Service Request with oracle about the same as I can see other developers are also facing same issue.

  • Using Spiceworks Help Desk with mixed primary smtp email address users

    Hello, our current spiceworks help desk environment is configured for ourone domain (we'll call it domain1.com). Everything with help desk works as expected with this domain. We have recentlypurchased a second domain (domain2.com) and configured a few of our users to use domain2.com as their primary email address. They are still using their original AD account, we just chose domain2.com as the primary smtp address.When these users try to create a trouble ticket, spiceworks seems to not recognize them and will not let them create a new ticket. Normally our users are automatically logged in when the go to the help desk portal, with the domain2.com email users spiceworksprompts for theirusername and password.When they enter it in it says that their account has not been activated yet. Is there anything I can do to get around this?Thank...
    This topic first appeared in the Spiceworks Community

    Until now, a major problem faced by bomb disposal experts was that robots designed to deal with larger bombs didn't have the dexterity to deal with smaller ordinances in tight spaces, like a pipe-bomb under a car; while smaller robots did not have sufficient range, putting operators in danger as they were forced to move closer to dangerous scenes."To get under a car a robot has to be under four inches high; the problem that creates is that the robot can't even get over a curb, and as the antenna is so close to the ground, the range is poor," said managing director Padraig Roche."The Reacher is the first robot in the industry to have a cargo-bay to store a smaller robot designed to get under a car to destroy pipe bombs and the like...Read More
    Read More

  • Message Tracking logs for secondary smtp address

    Hi,
    There are many people sending mails to secondary smtp address instead of primary smtp address. How can i pull the report of message tracking logs if they sent it to secondary smtp address using get-messagetrackinglog cmdlet?
    Sankar M http://messagingdevelopment.blogspot.in/

    Hi Sankar,
    If I don't understand your description, it seems that you want to get the message tracking log on an mailbox with primary SMTP address and secondary SMTP address.
    If it is the case, please add both primary SMTP address and secondary SMTP address to the "Recipients" parameter. More details to see:
    http://technet.microsoft.com/en-us/library/aa997573(v=exchg.150).aspx
    Thanks
    Mavis Huang
    TechNet Community Support

  • How do we deduce (if we can) SMTP address for an exchange account with only x500 address available? In what cases SMTP address is not available for exchange accounts (please see details below)?

    I am using PR_SENDER_EMAIL_ADDRESS to retrieve sender's email address for exchange mails, but for some mails I only get the exchange X500 addresses. In such case, I can use PR_SENDER_ADDRTYPE
    to check the type but when I detect an X500 address instead of an SMTP one, is there a way I can enhance SMTP lookup? What might be the reasons that SMTP address is available for some External senders and not for others, as in my case? I am using MAPI CDO
    1.2.1 with Exchange Server 2010.
    MSDN Question

    If you getting an X500 Address that generally means there is Directory object (in Active Directory) for that sender, if its an external sender then it most probably there is an AD Contact from that Sender. The best thing to do is just use resolve method
    in CDO to resolve the X500 Address to the Directory object and you should then be able to get the associated SMTP Address from the recipient object. (you also just use LDAP to lookup Active Directory directly).
    Cheers
    Glen

  • Exchange 2010 add new email address space and additional smtp address to all recipients

    HI
    Our company is being bought and we need to change the email address for every recipient within the business group/user.
    I have added the new domain to the Accepted Domains and have confirmed that if I manually change a users smtp address that mail flow works and the postmaster account receives email.
    looking in the E-mail address policies section within the EMC we currently have 2 polices one for the current company policy call company.co.uk with a priority 1 and one called Default policy.
    when I try to edit these I get a warning message which states that this policy was created with an earlier version of exchange I have looked on our exchange 2003 environment and have found the polices and can edit them.
    Now my questions are 
    1. should I create the policy on the exchange 2003 environment or 2010
    2. if I create a new policy on the exchange 2010 environment what will happen to the old addresses?
    3. I must be able to preserve the old addresses and must make the new address space the primary address?
    if anyone could help with the steps required or if there are any gotcha to avoid.
    thanks

     1. should I create the policy on the exchange 2003 environment or 2010
     You have to create in Exchange2010
    2. if I create a new policy on the exchange 2010 environment what will happen to the old addresses?
    Email address policy will change the email address if applied immediately except for the users which has "Automatically update email addresses based on e-mail address policy" option turned on
    You will get the list of users with "Automatically update email addresses based on e-mail address policy" option turned off by the below command.
    Get-Mailbox -ResultSize Unlimited | Where {$_.EmailAddressPolicyEnabled -eq $False}
    3. I must be able to preserve the old addresses and must make the new address space the primary address?
    Yes but you can keep only one as replying address.
    Please keep both address in the email address policy to preserve old email address to the users.
    If you want an autoreply, then use a hub transport rule in Exchange an Outlook rule and allow auto-replies to the internet. (auto-replies to the outside network is not a good idea)
    Here is a similar case
    http://exchangeserverpro.com/email-address-policies-in-mixed-exchange-20032007-organisations/
    Thanks, MAS
    Please mark as helpful if you find my comment helpful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.

Maybe you are looking for