Email Address Policies
Consider this scenario: You have decided on using a UPN suffix of companyname.com while using an AD domain name of companyname.local. This will enable your users to have a single log in name that matches their email address. As the domain name is companyname.local the default email address (smtp address) will be based on the same name. User Andrew would have therefore an email address of email@example.com
This of course is not suitable for Internet messaging and also does not match the upn suffix. To make this right we need to configure a second email address policy. In this policy, we would define an email address of @companyname.com and apply it to user mailboxes. That's recipients with mailboxes in your Exchange organization. Here's how to do it:
1. Configure an accepted domain based on the address (see earlier posts)
2. Use the following cmdlet to create an email address policy called compulinx.com
[PS] New-EmailAddressPolicy "compulinx.com" -IncludedRecipients MailboxUsers -EnabledPrimarySMTPAddress "SMTP:%firstname.lastname@example.org"
The variables used above will create a policy that uses firstname (g) and last name (s). Other variables are shown below
To apply a policy once created use the following cmdlet
[PS] Update-EmailAddressPolicy "Compulinx.com"