Block outgoing mail w/ bad addressing

mikea mikea at mikea.ath.cx
Wed Oct 18 23:31:04 IST 2006


On Wed, Oct 18, 2006 at 12:55:29PM -0700, Ken A wrote:
> 
> 
> 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

Next time you're in the OKC area, please let me know, and I'll buy the 
steak dinner! You just pointed out a way to fix some problems I've
been having with ineducable users -- and one that I _should_ have seen
for myself. 

-- 
Mike Andrews, W5EGO
mikea at mikea.ath.cx
Tired old sysadmin 


More information about the MailScanner mailing list