2007 Default Email Address Policy Applying to Mail Contacts
I can't figure out how to keep the Default Email Address Policy (EAP) from applying Mail Contacts. For example, I create a new mail contact with an external email address. When I check the email addresses I see a secondary smtp address that is in the format of my default EAP. Any tips or suggestions would be greatly appreciated. I've spent way too much time trying to figure it out and have pretty much run out of ideas. Monicola
January 8th, 2009 7:45pm
Please specific the PrimarySmtpAddress parameter to make EmailAddressPolicyEnabled attribute of the mail contact as $false, and the e-mail addresses of this mail contact will not be automatically updated based on e-mail address policies
For example:
New-MailContact -Name "Ted Bremer" -ExternalEmailAddress "ted@tailspintoys.com" -OrganizationalUnit "Marketing" -PrimarySmtpAddress "ted@tailspintoys.com"
Resource:
New-MailContact
Thread: Automatically update e-mail addresses based on recipient policy is checked in AD
Free Windows Admin Tool Kit Click here and download it now
January 9th, 2009 12:52pm
Hi James-Luo, thank you for your response! I'd like to make sure I understand correctly; are saying by specifying the Primary SMTP address"ted@tailspintoys.com" when the contact is created it prevents the email address policy from applying? When I create the contact thru EMS using the command you suggested it works great. The Default EAP doesn't get applied and 'Automatically update e-mail address...." is unchecked. When I use the GUI to create a contact the Default EAP is applied. Is there a way to prevent the default EAP from applying when I create a contact thru the GUI?
Monicola
January 9th, 2009 8:29pm
Are the contacts in the same OU as other users? If so, you may want to consider a separate OU for the contacts and not apply the EAP to the new OU.
Free Windows Admin Tool Kit Click here and download it now
January 9th, 2009 8:53pm
Hi scraigc, thank you for your question/input. My contacts are in a separate OU so maybe there is hope for me. Do you have a suggestion on how the recipient filter would look? My Default Email Address Policy, recipient filter is still Alias -ne $null. Monicola
January 9th, 2009 10:59pm
Per my knowledge, the task cant be done by GUI
I think that Scraigcs meaning was, you can disable default EAP to the existing mail-enabled contacts in a separate OU, not disable the policy when we add a mail contact
It also requires using EMS to disable default EAP for a OU:
Get-MailContact-OrganizationalUnit"xx xx" | Set-MailContact EmailAddressPolicyEnabled:$false
If you want to use GUI, please use ADModify. The idea is, create as many mail contacts as you want, and then remove all xxx@domain.com addresses once for all by using this tool
References:
Introduction to ADModify.net
Free Windows Admin Tool Kit Click here and download it now
January 12th, 2009 6:26am
Thank you James-Luo and Scraigc. This will work. Luckily we don't create very many contacts thru the gui. We have several that get auto-generated daily and Get-MailContact-OrganizationalUnit"xx xx" | Set-MailContact EmailAddressPolicyEnabled:$false works for them. Monicola
January 12th, 2009 9:51pm