Rule for blocking own domain spam?

Steven Andrews sandrews at
Thu Dec 18 15:06:37 GMT 2008

Assuming your ms box only handles inbound you could do an sa rule of
something like:

header	bad_inbound		From =~/domain\.com/i
score		bad_inbound		20

this is where is your domain.  Do yourself a favor and set
the score to be something like 0.1 to test the rule out first; don't
make it zero or it won't even trigger.

-----Original Message-----
From: mailscanner-bounces at
[mailto:mailscanner-bounces at] On Behalf Of Max
Sent: Wednesday, December 17, 2008 5:02 PM
To: MailScanner discussion
Subject: Rule for blocking own domain spam?

Hi All,

I've been trying to figure out the best method for blocking spam that
appears to be sent from my own domain. Is this best done through a
MailScanner rule, and if so, how? Or can it be done in Sendmail?

We've been getting tons lately.


MailScanner mailing list
mailscanner at

Before posting, read

Support MailScanner development - buy the book off the website! 

More information about the MailScanner mailing list