On 5/18/2011 8:54 AM, Steve wrote:

-------- Original-Nachricht --------
Datum: Wed, 18 May 2011 08:49:25 -0500
Von: Noel Jones<[email protected]>
An: [email protected]
Betreff: Re: Filtering spam with a partial pattern

On 5/18/2011 8:06 AM, Lima Union wrote:
Hi all! i'm seeing a huge quantity of spam during this week (~156K
messages) all from an smtp addresses that begins with '0-', like:

from=<[email protected]>
from=<[email protected]>
from=<[email protected]>
from=<[email protected]>
from=<[email protected]>
from=<[email protected]>

I tried to reject them by writing a simple rule in my
smtpd_sender_checks by simply appending 0- at the beginning of a new
line but for some reason it isn't matching the pattern, finally
getting rejected by my RBL provider. Anyway I want to avoid doing RBL
checks for this case, any ideas why my rule isn't working? any
suggetions on how to write a filter for this pattern?

Add to your smtpd_sender_checks.regexp file:

/^0-/  REJECT invalid sender address

Should that not be:
/^0\-/  REJECT invalid sender address


Not necessary.  The "-" is not special outside character classes.


  -- Noel Jones

Reply via email to