Block outgoing mail w/ bad addressing

Ed Wallig ewallig at aerocontractors.com
Wed Oct 18 19:55:17 IST 2006


Hi,
 
I have a number of users that seem to get amnesia when trying to send
email to other employees at work. Specifically, they forget what the
email domain extension is assigned to our email system and end up
sending messages that should be going to our domain to another domain
that is not associated w/ our company. Of course, they're getting
bounced but I would like to stop the messages from exiting the system
and bouncing off of this poor admin's email system.
 
Is there a way to write a rule in MailScanner that would basically do
this:

*	Check to see if the message is for a valid user (in terms of
username) for our domain
*	Check to see if the message has been addressed with an improper
email domain (username at maildomain .com instead of maildomain.net, etc)
*	If both previous checks are yes, bounce the message prior to it
leaving the MTA

Is this something that can be done w/ MS or should it be addressed by
the MTA (Postfix)?
 
 
Thanks,
 
 - Ed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20061018/cb8fee7e/attachment.html


More information about the MailScanner mailing list