Afficher un message
Vieux 26/09/2006, 05h12   #1
Chris Martin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut milter-regex config doesn't seem to work

I have recently taken over a spam elimination project at my work. We're
doing well, and so far has been very successful, but we are expecting a
lot of growth in the amount of mail hitting the filters, so I thought it
may be a good idea to pre-process a the mail and drop some of the more
common crap before letting spamassassin handle the rest.

Milter-regex seemed like a good solution, and I have mocked up the
following config file as a trial:

reject "Spam not welcome"
header /Subject:/ /\b(PHA)+([a-zA-Z]+(RMA))\b/

reject "Spam not welcome"
header /Subject:/ /\b(PHA)+([a-zA-Z]+(RMACY))\b/

discard
header /Subject:/ /TESTSTRING45819203/

# reject "Spam not welcom"
# body ^\S(ubject\:|UBJECT\ \b(PHA)+([a-zA-Z]+(RMACY))\b

# reject "Spam not welcom"
# body ^\S(ubject\:|UBJECT\ \b(PHA)+([a-zA-Z]+(RMA))\b

I have tried sending mails with the test string (TESTSTRING45819203) but
they get through. Are my rules wrong? I am very much a regex newbie, so
I suspect my rules are wrong, but I need someone's !

Thanks,

Chris
  Réponse avec citation
 
Page generated in 0,04573 seconds with 9 queries