Skip to content

How to create email address policies based on group membership in Exchange 2010 and hybrid deployments

April 10, 2015

You cannot create email address policies in Exchange 2010 EMC that filter based on group membership. You can however create these policies via EMS:

New-EmailAddressPolicy "{policy name}" -RecipientFilter {((MemberOfGroup -eq "{distinguished name of group in Active Directory}") -and ((RecipientType -eq 'UserMailbox') -or (RecipientType -eq 'MailUser')))} -EnabledEmailAddressTemplates "SMTP:{primary email address template}","smtp:{proxy address template 1}","smtp:{proxy address template 2}" 

For example:

New-EmailAddressPolicy "HR Staff" -RecipientFilter {((MemberOfGroup -eq "CN=HR Staff,OU=Groups,OU=ExitCodeZero,DC=CONTOSO,DC=COM") -and ((RecipientType -eq 'UserMailbox') -or (RecipientType -eq 'MailUser')))} -EnabledEmailAddressTemplates "","","" 
Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: