Step by step process for adding multiple SMTP proxy addresses to office 365 groups (DL’s) or removing secondary proxies. Assuming cloud governance defines managing objects through the public cloud portal.

The Problem

There’s currently no option in the web interface to add multiple SMTP proxy addresses to cloud only office 365 distribution groups. Microsoft requires administrators to add extra proxy addresses through PowerShell.

Steps: Add Multiple Email Addresses to Distribution Groups

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

  1. To connect PowerShell to Office 365, open a 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 and we can run the command to add addresses to the distribution group.
  7. Set-DistributionGroup “Group Name” -emailaddresses @{Add=’’,’’}

$Cred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $Cred -Authentication Basic –AllowRedirection
Import-PSSession $Session
Set-DistributionGroup “Group Name” -emailaddresses @{Add=’’,’’}

To confirm this has worked run the following command:

  1. Get-DistributionGroup “Group Name” | select -ExpandProperty EmailAddresses

To remove an email address run the following command:

  1. Set-DistributionGroup “Group Name” -EmailAddresses @{Remove=’’}


0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply