procmail
[Top] [All Lists]

blocking SPAM mail based on header lines

1997-01-22 19:51:55
Hi,

The new sendmail check_* rulesets are great for blocking connections
from banned sites, and for not accepting mail if say the "From" address
does not pass a DNS lookup.

I would also like to globally reject or bounce mail that has certain
header lines in it, perhaps using a global procmailrc file.

Specifically, I want to reject all mail that comes with a header line
like this:

    X-mailer: Floodgate Pro 5.0


I would also like to scan the headers and block mail where any "Received:"
lines have any of the banned domains that I am also directly blocking with 
sendmail.


Has anyone done something like this?  Any problems?


-Mark


-- 
Mark G. Thomas (Mark(_at_)Misty(_dot_)com -- 
http://www.misty.com/misty/welcome.html)

<Prev in Thread] Current Thread [Next in Thread>