Solved

Email Address Policy for Distribution Lists

Posted on 2014-12-24
3
931 Views
Last Modified: 2015-03-05
Hi All,

I have a slight issue that hopefully someone can help me with.

I want to create an Email Address Policy for Distribution Lists in Powershell, but I want to apply it to all my Distribution Lists.  Can anyone confirm if the following powershell command is correct or if i'm missing anything?

New-EmailAddressPolicy -Name "DL Email Address Policy" -EnabledEmailAddressTemplates "SMTP:%g%1s@domain.com" -RecipientFilter {(RecipientType -eq "MailUniversalDistributionGroup" -and RecipientType -eq "MailUniversalSecurityGroup")}

Thank you for your help in advance.

Novatek
0
Comment
Question by:novatekitsolutions
3 Comments
 
LVL 16

Accepted Solution

by:
Rajitha Chimmani earned 500 total points
ID: 40516525
Looks good but you can also try -IncludedRecipients instead of RecipientFilter unless you want to exclude non-universal mail enabled groups.

New-EmailAddressPolicy -Name "DL Email Address Policy" -EnabledEmailAddressTemplates "SMTP:%g%1s@domain.com" -IncludedRecipients MailGroups
0
 
LVL 9

Expert Comment

by:Veerappan Sundaram
ID: 40516593
Basically, you don't need a separate email address policy for DLs. because default policy applies.

%g%1s is not valid for Distribution lists. It is explained below:

%s : Surname (last name)
%g : Given name (first name)
%i : Middle initial
%d : Display name
%m : Exchange alias

You should either use it like "@domain.com" or %m@domain.com"

Thanks,
Veera.
0
 
LVL 20

Expert Comment

by:SatyaPathak
ID: 40517403
try below KB it might be help you to understand the email address policy.

http://exchangeserverpro.com/exchange-server-2010-email-address-policies/
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

"Migrate" an SMTP relay receive connector to a new server using info from an old server.
Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now