Solved

powershell script for pulling DL properties

Posted on 2014-04-11
4
198 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 80

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

713 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