procmail
[Top] [All Lists]

Re: Recipe to block unqualified domains?

2006-05-25 13:08:25
On Thu, May 25, 2006 at 03:10:34PM -0400, Dave Waxman wrote:
Any ideas?  Any other tips for cutting down on an enormous amount of
SPAM?

I would start with this:

        :0 h
        CLEANFROM=|formail -IReply-To: -rtzxTo:
        # domain portion
        :0
        * CLEANFROM ?? @\/.*
        {
                FROM_DOMAIN=$MATCH
        }

        :0
        * ! FROM_DOMAIN ?? \.
        { handle-spam }

the first two rules are good, copied from somones store of variables,
and the last one should catch comains that are just one domain part.

And of course the handle-spam is how you would choose to handle it,
with the general problems of sending to /dev/null.

as for detecting the absence of .com|mil|gov|orc|etc....  The list
grows regulary so it'd be a riskier proposition.

-- 
Till Later, Jake <karrde+procmail(_at_)viluppo(_dot_)net>
-----------------------------------------------
Direct replys are likley to be flagged as spam.
Drop the +addy if you need to reply direct.

____________________________________________________________
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