Tutorial: Adding an email alias in Office 365, Exchange or Active-Directory

Tutorial: Adding an email alias in Office 365, Exchange or Active-Directory

There are several ways to add e-mail aliases in Office 365. In this blog I will walk through the possibilities of how to add an alias.

First, the most practical method is via Cloud only. This means that the identities, groups or mailboxes are not known in the on-premises exchange or on-premises Active Directory (AD).

I then explain how to set an alias in Exchange hybrid, where the identities are known in Active Directory. On-premises and synchronised to Azure AD via Azure AD Connect.

In Office 365 - Cloud only

Cloud Only means that you have no identities, distribution groups or shared mailboxes synchronised from the local Active Directory server.

Add an alias via Exchange Control Panel

Browse to the Exchange Control Panel: http://outlook.office.com/ecp

Select mailboxes

1

Choose a user, group, shared mailbox where you want to add an alias.

Thenselect e-mail address.

1

Select +

1

Select email address type: SMTP
Enter an email address
Select OK

1

Your alias has been successfully added.

Adding an alias via Microsoft's Admin Center

Navigate to: https://admin.microsoft.com/

Search for the desired user

1

Open the user settings by pressing the name.

1

Add the alias in the field below

1

Select Add.

This operation can also be used for a shared mailbox.

Add an alias in Exchange Online via PowerShell

Login to Exchange Online via these commands and add an alias via this command.

Connect-ExchangeOnline
Set-Mailbox "info" -EmailAddresses @{add="info2@365tips.be"}

On-premises, this can be done with the remote mailbox command:

Set-RemoteMailbox "info" -EmailAddresses @{add="info2@365tips.be"}

On-premises management of mail properties

If you sync users, groups from the local Active Directory servers then it is also necessary to do the recipient management there.

In a hybrid scenario, you have the Recipient management on-premises. And the rights of mailboxes online.

You can check in Azure AD if users are synchronised via: https://portal.azure.com /#blade/Microsoft_AAD_IAM/UsersManagementMenuBlade/MsGraphUsers

1

Or via Azure Active Directory - Azure AD connect Blade - https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/AzureADConnect

1

You may get these error messages:

  • An Azure Active Directory call was made to keep object in sync between Azure Active Directory and Exchange Online . However, it failed. Detailed error message: Unable to update the specified properties for on-premises mastered Directory Sync objects or objects currently undergoing migration. RequestId : 2b848154-0873-.... The issue may be transient and please retry a couple of minutes later. If issue persists, please see exception members for more information.
  • The operation on mailbox "First Last" failed because it's out of the current user's write scope. The action 'Set-Mailbox', 'EmailAddresses', can't be performed on the object 'First Last' because the object is being synchronised from your on-premises organisation. This action should be performed on the object in your on-premises organization.

You can then adjust these settings on the on-premises AD because recipient management is an on-premises competence.

Open the local Active Directory Users & Computers.

Select 'view' -> Advanced Featuresat the top

1

Open the desired user -> Select properties.

1

Add an alias via Active Directory.

Select on User Properties -> Attribute Editor

Add a smtp:test2@365tips.be at proxyAddresses .

1

Force a Azure AD Synchronisation via this blog - to ensure that the changes of the e-mail address to Office 365 will be synchronised.

The alias has been added. You can validate this via: https://outlook.office.com/ECP

Search for the user - Select e-mail addresses.

Validate that the aliases are set.

1

Add an alias in Exchange on-premises and sync it to Office 365

Browse on the on-premises exchange server to: the ECP URL.

https://localhost/ecp/

Select Mailboxes -> Choose the desired mailbox.

Changed e-mail addresses.

Do a Azure AD Sync:

Start-ADSyncSyncCycle -PolicyType Delta
1

The aliases are now synced to Azure AD / Office 365.

Add an alias in Exchange Online via PowerShell

Login to Exchange Online via these commands and add an alias via this command.

Connect-ExchangeOnline
Set-Mailbox "info" -EmailAddresses @{add="info2@365tips.be"}

On-premises, this can be done with the remote mailbox command:

Set-RemoteMailbox "info" -EmailAddresses @{add="info2@365tips.be"}

Also read

Restore a mailbox to another mailbox when deleting - Exchange Online
Restore Exchange e-mails - New Exchange Portal Online
Install the new Exchange Online PowerShell V2 module
Mailbox management via Hybrid Exchange

Jasper

Jasper

Welcome to 365tips.be. On this website you can read articles and experiences about Office 365 with focus on Microsoft Teams. Feel free to ask me a question and I will answer it in a blog post. Help others by giving feedback at the bottom of the articles. This blog is made in Dutch. The multilingual website is offered with best-effort machine translation.
0 0 votes
Product review
Subscribe
Please let us know if there are
guest
0 Reactions
Inline feedbacks
See all comments
0
Would love to know your thoughts, please leave a comment.x