procmail
[Top] [All Lists]

Re: catching spam with invalid users

2006-07-10 12:50:56
----- Original Message ----- 
From: "R.G. Ball"
I'd be pretty upset if my sysadmin dumped legit mail to me just because
the sender
typed eirc(_at_)myorg rather than eric(_at_)myorg in the cclist.

But I have far more people upset about the inverse situation.  The majority 
rules in my environment.

So I'm experimenting with this and am having good results so far:

* ? formail -x"X-Apparently-To:" -x"Delivered-To:" -x"To:" -x"From:" \
-x"Sender:" -x"Reply-To" -x"Return-Path:"  | awk 'BEGIN { RS=" " } { 
print }' \
| sed -e '/mydomain\.com/!d;s/<//g;s/>//g;s/,//g;s/@mydomain\.com//g' \
| grep -i -v -f /etc/vmail/valid_users.mydomain.com


-eric 


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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