Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-13 23:57 UTC

Message

Re: [milter-greylist] racl greylist with extended regex

2019-04-10 by Johann Klasek

On Wed, Apr 10, 2019 at 10:08:03AM +0200, Christian P\ufffdlissier Christian.Pelissier@... [milter-greylist] wrote:
[..]
> 
> I want to greylist envelope from address like the following one
> 
> martinwbqxmgwlegros@...
> 
> 
> with the following  regex directes in greylist.conf
> 
> extendedregex
> racl greylist from /^[a-z]{4,16}[bcdfghjklmnpqrstvwxz]{6,10}[a-z]{4,16}@[a-z]{4,16}\.icu$/ delay 4h autowhite 10m
> 
> I found no line matching this regex :
> 
> # grep -i 'delayed for 04:' /var/log/maillog
> match nothing

I'm not sure, but you might consider the enclosing brackets of an e-mail address.
Try to use /^<?REGEXP>?$/ ...

> # grep -E '[a-z]{4,16}[bcdfghjklmnpqrstvwxz]{5,10}[a-z]{4,16}@[a-z]{4,16}\.icu' /var/log/maillog
> match a lots of lines.
[..]

This RE probably matches because it is not pinned down to the start and end of an address.


Johann

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.