It's my first time digging into MS Exchange 2013 and I need to do something like this: Each group I create needs a distribution list. Here are the groups and their assigned users:
- Group1
- User1
- User2
- User3
- Group2
- User2
- User4
- User5
- Group3
- User1
- User3
- User5
Basically, if I send an email to group1@example.com, all the people in group 1 will receive the email. Although, if I add a user into AD, I want the distribution list to automatically update itself with the right group of users.
As you can see, one member can be part of multiple groups, so I can't use the department
field of Exchange. How can I do that? (Without Powershell as I know nothing of powershell)
Thanks!
Best Answer
I will tell you the way i have done this on my Exchange 2010, hoping it will also work for your Exchange 2013.
You absolutely need Powershell (Exchange Management Shell) to create the DDL :
Main points here are :
MemberOfGroup
:For this value you need to put the full DN of your AD Group.
RecipientContainer
parameter :This is the full DN where your AD users are stored.
Some explanations :
RecipientFilter
so that you can use theMemberOfGroup
attribute. The standardmemberOf
attribute exposed by Exchange will not work because you need a calculated back-link property from AD :RecipientFilter
parameter :https://technet.microsoft.com/en-us/library/bb125127(v=exchg.150).aspx
http://exchangepedia.com/blog/2007/02/memberof-attribute-can-now-be-used-in.html :
RecipientContainer
will be the standard Users DN :CN=Users,DC=domain,DC=local
. So when Exchange performs its query to determine membership, it can only see members that are in this OU. This is the reason why you need to specify the OU where your AD Users are actually stored.Finally, here is the link to the ressource that makes me able to make this work, and from i get most of the reference above : https://exchangemaster.wordpress.com/tag/recipientcontainer