On Fri, Nov 08, 2002 at 09:48:14AM -0500, Marc Hughes wrote:
:0: * ^From.*jenny@axte84\.com * ^Subject.*MILLION OPT-IN EMAIL ADDRESSES Badspam
This will do an AND between the two conditions ... Is there an easy way to OR between them? ... Or do I need to make a separate rule for each
There's a way, although it's really not straightforward... One of my old procmail-only anti-spam rules looked for 8-bit chars in the body: :0BDfh * -1^1 . * 2^1 =[0-9A-F][0-9A-F] * 20^1 [��������������������������������] * 20^1 [��������������������������������] * 20^1 [��������������������������������] * 20^1 =[A-F][0-9A-F] | formail -A "X-Reject: Too many foreign charcters." (from http://www.vex.net/~wadialix/email/chinese/link.html) Which basically says that for any 8 bit char, add 20 "points" to the rule. If there's a quoted-printable char (=XX), add 2 points, and for anything else add -1 points. As long as the rule scores 1+ points (ie: it's positive), it matches. So an or for you would be: :0: * 1^1 ^From.*jenny@axte84\.com * 1^1 ^Subject.*MILLION OPT-IN EMAIL ADDRESSES Badspam I belive, haven't tested it. :) Look at the procmailsc man page for more info.
and every condition? And an even further note... What are the thoughts on some of these anti-spam tools that work with procmail? Any favorites?
SpamAssassin, hands down. :) http://www.spamassassin.org/ Sucessfully catches >98% of the spam I receive, currently at ~2100 a month (with ~5000 blocked at the SMTP level, grrr, stupid spammers!) I used to do a lot of procmail stuff, and now it's just SA. (warning: I'm a SA developer, so I'm a little biased. ;)) -- Randomly Generated Tagline: "It's always darkest before dawn. So if you're going to steal your neighbour's newspaper, that's the time to do it." - Zen Musings