Add multiple SMTP proxy addresses to contact objects in office 365. Assuming cloud governance defines managing objects through the public cloud portal.

The Problem

The Office 365 admin panel is limited in only allowing the admin to add a single email address to a mail contact. If you want to add multiple addresses, you have to use PowerShell.

Steps: Add Multiple Email Addresses to Mail Contacts

Use the following set of commands to add and verify the additional proxy addresses.

  1. To connect PowerShell to Office 365, open the PowerShell console
  2. Type the following command: $Cred = Get-Credential
  3. Enter the username / password of a valid O365 admin account
  4. Type the following command: $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $Cred -Authentication Basic –AllowRedirection
  5. Type the following command: Import-PSSession $Session
  6. Powershell is now attached to Office 365 Exchange and we can run the command to add addresses to the mail contact. Note that the primary address should have uppercase “SMTP:” prepended (there can be only one uppercase entry for the primary address. Additional secondary addresses must have lowercase otherwise there will be mail flow problems.)
  7. Set-MailContact “User Name” -EmailAddresses “”,””

$Cred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $Cred -Authentication Basic –AllowRedirection
Import-PSSession $Session
Set-MailContact “User Name” -EmailAddresses “”,””

To confirm this has worked run the following command:

  1. Get-MailContact “User Name” | select -ExpandProperty EmailAddresses
  2. Check the admin web interface and check the external email address is correct. This is the address receiving all incoming email for the contact.


3 replies
  1. feetsdr
    feetsdr says:

    Oh, and should the 2 addresses be visible in the admin panel? Or just the primary? If someone set up a secondary email for a contact like this, then months later, there’s troubleshooting about that secondary email address – somoene going into the exchange admin panel won’t know (won’t think?) to use powershell to see if there’s a 2nd email address for that contact.

    NOT that it’s anything you can control… just MS being a nuisance : )


Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply