Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: My ultimate anti-spam setup (for now...)

2006-12-22 by robert_schmidli

> That might be something to do with the local regexp library, since
> I am sure you did not forget the switch on the extendedregex option.

Duh.  I didn't have extendedregex on.  I have got these regexes now:

/[0-9]+([^0-9])[0-9]+\1[0-9]+\1[0-9]+/
/[0-9a-f]{2,2}([-.])?[0-9a-f]{2,2}\1?[0-9a-f]{2,2}\1?[0-9a-f]{2,2}/
/[0-9]{12,}/

I don't quite know how to test these, except that milter-greylist now
starts with no problems.  Perhaps somebody could eyeball them for me
and let me know if there's an obvious problem.  From the command line,
the following works:

$ egrep
"[0-9a-f]{2,2}([-.])?[0-9a-f]{2,2}\1?[0-9a-f]{2,2}\1?[0-9a-f]{2,2}"
testregex.txt
5f-8b-23-cd
253928028762
25392802876
2539280287


..where testregex.txt contains a number of strings.  It also picks up
9 and 10-digit strings with no separators - which may not be correct.
 I suspect that the third regex listed above is redundant.  I've
modified Oliver's suggestion - from what people are saying, it
sounds like backreferences are the way to go.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.