how to block all email sent to outside email account?

Michael Huntley michael at huntley.net
Fri Nov 14 23:55:20 GMT 2008


Hugo van der Kooij wrote:
> Jorge Luis Costinha wrote:
> > Hello all,
>
>
> >               i wish to prevent outgoing email to a specific outside
> > world account.  I try to use the blacklist feature on MailScanner, but
> > only works from incoming email  to be delivery on internal accounts... i
> > also try to catch outgoing emails with procmail, without success...
>
> Pardon me but any MTA can do this for you.
>
> Please consult your sendmail manual in regard to access tables and such.
>
> Hugo.
>
>
That is not what Jorge asked, I'm sure he is aware of what he can do at 
the MTA level.

Jorge -

you can use the Non Spam Actions within Mailscanner.conf

Set it to a rule such as:

Non Spam Actions = %rules-dir%/nonspam.rules   

inside of nonspam.rules make an entry for the default and the naughty 
address:

FromOrTo:   naughty at naughty.com   delete
FromOrTo:    Default    deliver header "X-Spam-Status: No"

That's it.

Cheers!

m




More information about the MailScanner mailing list