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
>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 with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ ( and
the archives (

More information about the MailScanner mailing list