Catching spam from the Return-Path: header

Matt Kettler mkettler at EVI-INC.COM
Mon Nov 1 18:26:28 GMT 2004


At 01:17 PM 11/1/2004, Matt Krause wrote:
>How would I go about doing this?
>
>Something like
>
>header   SAMPLE_RULE  Return-Path =~ blah at aol.com
>
>Would that work?

You need to include a few other things, but you're on the right path.

Escape punctuation with \'es. Begin and end the regex with /'es. Append an
i to make it case-insensitive:

header   SAMPLE_RULE  Return-Path =~ /blah\@aol\.com/i

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).




More information about the MailScanner mailing list