I’ve been doing a lot with Exchange recently and found an interesting quirk.
If you use the New-mailbox cmdlet with the –PrimarySMTPaddress parameter the mailbox doesn’t get email address policies applied.
You need to use set-mailbox to turn policy application on – after the mailbox has finished creating
Odd. When I perform a Connect-Mailbox and directly afterwards set the AD ‘mail’ attribute (a.k.a. PrimarySMTP Adddress) via ADSI PUT() I get an error “Value does not fall within the expected range.”.