Hi, In a multi-domain forest, where each domain has their own SMTP ( country based ) domain, is there an easy way to configure Email Address policies so that if user is in domain A, they will get company.com, and user b is in domain B, they will get company.uk... So is there a way to have the SMTP email address be decided via user's AD domain. Thanks !!! --
Forgot to say this is an Exchange 2007 Org with still Exchange 2003 Admin groups left in it.. Thanks !!! "Thinkpad21" wrote in message news:%23IsrFQSsIHA.5580@TK2MSFTNGP04.phx.gbl... > Hi, > > In a multi-domain forest, where each domain has their own SMTP ( country > based ) domain, is there an easy way to configure Email Address policies > so that if user is in domain A, they will get company.com, and user b is > in domain B, they will get company.uk... > > So is there a way to have the SMTP email address be decided via user's AD > domain. > > Thanks !!! > > -- > >
Hi the logon domain is not a filterable attribute and the distinguished name attribute is filterable but doesn't accept wildcards. so the answer is NO. but may be: the user principle name can be used with wildcards if you have UPNs per domain? you could use this attribute Set-EmailAddressPolicy -id Test -RecipientFilter {RecipientType -eq 'UserMailbox' -and userprincipalname -like "*@domainA.com"} or you take two steps to reach your aim: in the first step you ask for users in your domain get-user | where-object {$_.DistinguishedName -like "*DC=domainA,DC=com"} pipe this into a set-user and write a special attribute (i.e custom attribute 1-15) that you than use in your emailaddresspolicy later. Henry "Thinkpad21" wrote: > Hi, > > In a multi-domain forest, where each domain has their own SMTP ( country > based ) domain, is there an easy way to configure Email Address policies so > that if user is in domain A, they will get company.com, and user b is in > domain B, they will get company.uk... > > So is there a way to have the SMTP email address be decided via user's AD > domain. > > Thanks !!! > > -- > > >