Block outgoing mail w/ bad addressing

Ed Wallig ewallig at aerocontractors.com
Wed Oct 18 22:00:12 IST 2006


Thanks, I'll look into Postfix options. 

I wish it were as simple as fat fingers but it's not - they sometimes
simply go off into their own world - in this world, all email sent to
"user a" goes to "user a" no matter where they send it :(


Thanks again...

 - Ed

-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info
[mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Ken A
Sent: Wednesday, October 18, 2006 3:55 PM
To: MailScanner discussion
Subject: Re: Block outgoing mail w/ bad addressing



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
> 
> 
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website! 


More information about the MailScanner mailing list