Solved

Email Address Policy for Distribution Lists

Posted on 2014-12-24
3
1,159 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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:Satya Pathak
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
In this video we show how to create an email address policy 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 Mail Flow…
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…

688 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