Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

powershell script for pulling DL properties

Posted on 2014-04-11
4
Medium Priority
?
218 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
2 Comments
 
LVL 84

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 2000 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

Lessons on Wi-Fi & Recommendations on KRACK

Simplicity and security can be a difficult  balance for any business to tackle. Join us on December 6th for a look at your company's biggest security gap. We will also address the most recent attack, "KRACK" and provide recommendations on how to secure your Wi-Fi network today!

Question has a verified solution.

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

In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
The viewer will learn how to dynamically set the form action using jQuery.
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)
Suggested Courses

876 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