Add custom SMTP email address to the Default Address policy
We are using the default address policy in our exchange 2013 environment with primary email address as alias@contoso.com format. Recently I was asked to add one more addresses to the policy, one which I have added firstname.lastname@contoso.com I had no problem adding it since I just selected it from the precanned SMTP email addresses listed as one of the options in the policy. The problem is that management is not happy with the fact that if we have two users with the same firstname and lastname, it add a number to the second users email address (firstname.lastname2@contoso.com) They want that instead of a numbers the user's middle initial is added to look Firstname.M.Lastname@contoso.com. I have search everywhere on line and read several articles, but I have not found anything that can help me solve this issue. Is this something that is possible? any assistance will be greatly appreciated.
March 24th, 2015 9:16am

If I understand correctly, you just need to change the template:

Set-EmailAddressPolicy "bla bla" -EnabledPrimarySMTPAddressTemplate "SMTP:%g.%i.%s@contoso.com"

You can find all the variables here: https://technet.microsoft.com/en-us/library/bb232171(v=exchg.150).aspx

Free Windows Admin Tool Kit Click here and download it now
March 24th, 2015 5:16pm

Thank you for your response. One thing that I have to make sure is that the primary SMTP:Alias@contoso.com doesn't change because it will break access for users on certain systems and applications. Will this set of cmdlets only add the address "SMTP:%g.%i.%s@contoso.com" to the Default Policy we are currently using? I'm sorry I'm really bad when it comes to cmd line

Set-EmailAddressPolicy "Default Policy" -EnabledPrimarySMTPAddressTemplate "SMTP:%g.%i.%s@contoso.com"

March 24th, 2015 9:58pm

Hi,

If you just want to add the address "SMTP:%g.%i.%s@contoso.com" to the Default Policy and dont want to break the primary SMTP Email Address, please take the following steps:

  1. Navigate to Mail flow > Email address policies, double-click to Default Policy.
  2. Under email address format tab, click Add button.
  3. Click more options to enter a custom address type.
  4. In the first field, enter SMTP.
  5. In the second field, enter %g.%i.%s@contoso.com
  6. Click save to save this change.
  7. Click Apply link to update this policy on the right pane of Email Address list.

You can check this change by the following steps:

  1. Choose one user and double-click to properties.
  2. Under email address tab, you will find that the list contains the primary SMTP Email Address and the custom address type we created just now.

Best Regards.

Free Windows Admin Tool Kit Click here and download it now
March 25th, 2015 3:38am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics