MTA/Perl script for relaying only to Exchange-users

Philip Parsons pparsons at
Thu Nov 22 00:24:54 GMT 2012

There are 2 scripts needed one called which connects to the AD and pulls a list of all the e-mail addresses and then which adds the email addreses to the mailhost db..

From: mailscanner-bounces at [mailto:mailscanner-bounces at] On Behalf Of Jonas Lilja
Sent: Wednesday, November 21, 2012 1:59 PM
To: mailscanner at
Subject: MTA/Perl script for relaying only to Exchange-users

Hi, for a couple of years ago there was a guide on about restricting the MTA (Sendmail) to only deliver email to valid users in an Exchange environment. This made the performance of the server much better because either MailScanner or Spamassassin need to process invalid emails.

I remember that there was a perl-script which picked up the content from a textfile (with all smtp-addresses in the domain) and then build a special file in /etc/mail/

I can't find this guide on the site. Anyone who can help me?

BR /Jonas Lilja

This message has been scanned for viruses and
dangerous content by MailScanner<>, and is
believed to be clean.
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the MailScanner mailing list