Exchange email adress policies are used to generate addresses since the early days of Exchange. Email address policies are used to automatically generate addresses for various protocols (SMTP, FAX, CCMAIL, MSMAIL). These overall use of address policies is well documented, but there is still some odd behaviour of the policies when it comes to language specific character handling.
The following list describes the common parameters:
All language specific characters and other non RFC 821/822 compliant characters are either translated or removed.
User without any language specific characters
Given Name: John
Last Name : Doe
Alias : JohnDoe
Email address policy results
%email@example.com = John.Doe@mcsmemail.de
%firstname.lastname@example.org = JohnDoe@mcsmemail.de
%email@example.com = J_Doe@mcsmemail.de
User with German language specific characters
Given Name: Michael
Last Name : Müller
Alias : Michael Mueller
%firstname.lastname@example.org = Michael.Mueller@mcsmemail.de
%email@example.com = Michael-Mueller@mcsmemail.de
%firstname.lastname@example.org = MiMueller@mcsmemail.de
User with Scottish language specific characters
Given Name: Ian
Last Name : O'Connell
Alias : IanOConnell
%email@example.com = Ian.O'Connell@mcsmemail.de
%firstname.lastname@example.org = IanOConnell@mcsmemail.de
%email@example.com = IanO'Con@mcsmemail.de
As you might have noticed, the apostrophe is not handled as a special character but an RFC compliant character. The address policy is applied without any issues at all.
But a SMTP address containing an apostrophe leads to email transport errors and must be removed.
You can use the replacement parameter to strip all apostrophes from the surname by using the following email address policy.
%firstname.lastname@example.org = Ian.OConnell@mcsmemail.de
This example will only remove apostrophes from the surname (%s) as the replacement parameter is placed in front of the surname parameter.