Solved

powershell script for pulling DL properties

Posted on 2014-04-11
4
187 Views
Last Modified: 2014-10-25
We are getting too many spams to the DL SMTP address from outside. We are using Exchange 2007.

Is there any way we can stop those ...Keep the SMTP address of the DL but stop spam from outside...

Otherwise our plan is to pull all the DL with "SMTP address" and the "owner" with "notes" field of DL. In the note field we have some alternate administrator names.


Once we have that then we will ask the owner/administrator to confirm whether they require SMTP address for the DL ? Based on their input we will remove the SMTP and only use the DL for internal e-mails.

Appreciate your help...
0
Comment
Question by:principiamanagement
4 Comments
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
ID: 39995641
check to make sure you are not an open relay mxtoolbox.com

What does the short form DL stand for?
0
 
LVL 12

Accepted Solution

by:
Carlo-Giuliani earned 500 total points
ID: 39996233
You don't need to remove the SMTP addresses.  You can configure delivery restrictions on each mailbox to "require all senders are authenticated", which will prevent external senders from using the DL.  This is actually set be default in Exchange 2010 and 2013, but not in Exchange 2007.

Set-Mailbox -Identity "DL name" -RequireSenderAuthenticationEnabled $true

Open in new window


To do it for all distribution lists:
Get-DistributionGroupMember | Set-Mailbox-RequireSenderAuthenticationEnabled $true 

Open in new window


To get a listing of status of the DLs:
Get-DistributionGroupMember | ft name,managedby,notes,RequireSenderAuthenticationEnabled

Open in new window

0

Featured Post

Swamped with email signature updates?

Have you been given a load of changes to make to your users’ email signatures? Having to manually implement multiple signatures for every department? Let Exclaimer save you from being swamped with email signature updates!

Question has a verified solution.

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

"Migrate" an SMTP relay receive connector to a new server using info from an old server.
A procedure for exporting installed hotfix details of remote computers using powershell
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

910 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