Solved

powershell script for pulling DL properties

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
Synchronize a new Active Directory domain with an existing Office 365 tenant
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

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

20 Experts available now in Live!

Get 1:1 Help Now