Block outgoing mail w/ bad addressing

Ken A ka at pacific.net
Wed Oct 18 20:55:29 IST 2006



Ed Wallig wrote:
> 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

MTA should already be doing this.

> *	Check to see if the message has been addressed with an improper
> email domain (username at maildomain .com instead of maildomain.net, etc)

Yeah, our users have fatter fingers than your users! You can do this in 
sendmail access map. Postfix has something similar, I'm sure..

To:sbcgobal.com        ERROR:5.1.1:550 Please check spelling on 
recipient domain - should be sbcglobal.net

Ken A.
Pacific.Net


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


More information about the MailScanner mailing list