Exchange 2007 - Email Address Policy based on OU?
Hello, Does anyone know ifthere is a way to create a new Email Address Policy in E2K7 that is based offof OU Membership? ie: All users under one OU get the same email address and all users under a second OU get a different email address. You can create Dynamic Distribution Lists this way using the -OrganizationalUnit parameter but I can't find any way to do it with the new-emailaddresspolicy cmdlet. Any suggestions or possible work-arounds? Thanks, Adam Westland
June 26th, 2007 5:38pm

Hi all, we have the same problem. We are also tring to create EAP based on domain membership (we have 5 different domain in our organization, each with different smtp address), but it seems to be not possible. Have anyone tried to create such EAP? Thanks, Nicola
Free Windows Admin Tool Kit Click here and download it now
July 11th, 2007 7:42pm

Hi again, maybe i found a solution for my EAP problem. It seems that the "new-emailaddresspolicy" PS command has some problem using the -recipientfilter parameter. If i run the following command: new-emailaddresspolicy -name "testpolicy" -includerecipients "mailboxusers" -enabledprimarysmtpaddresstemplate "%g_%s@newdomain.com"-recipientfilter {(department -like "*somedepartment") } iget error on the new-emailaddresspolicy command. But if i create a new policy without any filter, and then i modify it with che set-emailaddresspolicy command, it works!! set-emailaddresspolicy "testpolicy" -recipientfilter {(department -like "*somedepartment") } Now i'm looking for a way to identify users from different domains. The easyest (and working) way i've found is to query the UserPrincipalName attribute. I'm also interested on a way to apply EAP on OU belonging, but it seems that is not possible. Infact you cannot make a "like" query on distiguishedname attribute. Itried to use the canonicalname attribute as a workaround, but i get an error wen i run the update-emailaddresspolicy. I hope that this post will help someone having the same problem, and i'll appreciate any suggestion on the "OU query" problem. Bye, Nicola
July 12th, 2007 6:37pm

Actually you can create a Dynamic Distribution group based on the OU then apply the policy to that specific distribution group I am currently doing it in multiple environments. it works great but the syntax is a little touch I will try to post it later.
Free Windows Admin Tool Kit Click here and download it now
July 27th, 2007 12:42am

http://www.exchangeninjas.com/EAPAndALFilterUpgrades http://blogs.technet.com/evand/archive/2007/02/13/using-memberof-with-recipientfilter.aspx
July 28th, 2007 12:09am

I have worked through creating a Dynamic Distribution List, and applying a policy with the following command (names changed): New-EmailAddressPolicy "ExStudent2003" -RecipientFilter {((MemberOfGroup -eq "CN=ExStudent2003FA,OU=Student,DC=someschool,DC=edu") -and (RecipientType -eq 'UserMailbox'))} -EnabledPrimarySMTPAddressTemplate 'SMTP:%m@student.someschool.edu' The Exchange Management Shell accepts the command, and creates the policy, but when I apply the policy, I don't see changes in the accounts. Has anyone else had better luck?
Free Windows Admin Tool Kit Click here and download it now
August 20th, 2007 11:55pm

Hi Peter,I have done same and no change. Lasse can you please let me know any thing else I should check. Please help !!!!!!Monir
August 18th, 2009 1:57pm

Hi Lesse, I have tried this. Exchange seems accept the command. But the policy is not functioning. I can see the created policy, when I apply the policy, it shows its works fine. But the mail address does not creating according to the policy. I have deleted all other policy so that I can trace this is the only one on top priority. But no luck. Please help.Monir
Free Windows Admin Tool Kit Click here and download it now
August 18th, 2009 1:59pm

You shoudl use real attributes in AD such as company, extensionattributeX etc. to base recipient policy on. Dont use backlink or calculated attributes to filter on.http://support.microsoft.com/kb/304516http://blogs.technet.com/evand/archive/2007/02/13/using-memberof-with-recipientfilter.aspxthe reason is that although you can use other attribute such as memberof, it will only work sometimes depending on if the userobject is updated or not.lasse at humandata dot se, http://anewmessagehasarrived.blogspot.com
August 18th, 2009 3:26pm

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

Other recent topics Other recent topics