Yahoo Groups archive

Milter-greylist

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

Thread

acl regular expression: trailing brackets

acl regular expression: trailing brackets

2016-10-07 by Marcus Schopen

Hi,

I'd like to block all senders from .co.ua and bis.ua. A rule like this

racl "BL_UKRAINIA" blacklist from /\.co\.ua$/ msg "Bad reputation - 
sender addr <%f> listed on SPAM blacklist %a" flushaddr

does not work, because of ending bracket ">" in sender addresses. This 
works

racl "BL_UKRAINIA" blacklist from /\.co\.ua>$/ msg "Bad reputation - 
sender addr <%f> listed on SPAM blacklist %a" flushaddr

but is there a way to block ending /co.ua$/ with or without ending 
bracket?

Thanks
Marcus

Re: [milter-greylist] acl regular expression: trailing brackets

2016-10-08 by Bill Levering

Have you tried the expression:

/\.co\.ua>?$/

the ? after a character means it isn’t required

Bill
Show quoted textHide quoted text
> On Oct 7, 2016, at 2:55 PM, Marcus Schopen lists-yahoogroups@... [milter-greylist] <milter-greylist@yahoogroups.com> wrote:
> 
> Hi,
> 
> I'd like to block all senders from .co.ua and bis.ua. A rule like this
> 
> racl "BL_UKRAINIA" blacklist from /\.co\.ua$/ msg "Bad reputation - 
> sender addr <%f> listed on SPAM blacklist %a" flushaddr
> 
> does not work, because of ending bracket ">" in sender addresses. This 
> works
> 
> racl "BL_UKRAINIA" blacklist from /\.co\.ua>$/ msg "Bad reputation - 
> sender addr <%f> listed on SPAM blacklist %a" flushaddr
> 
> but is there a way to block ending /co.ua$/ with or without ending 
> bracket?
> 
> Thanks
> Marcus
> 
> 
>

Re: [milter-greylist] acl regular expression: trailing brackets

2016-10-08 by Marcus Schopen

On 2016-10-08 02:37, Bill Levering yidbill@... [milter-greylist] 
wrote:
> Have you tried the expression:
> 
> /\.co\.ua>?$/
> 
> the ? after a character means it isn\u2019t required

Thanks. I used /\.co\.ua[> ]*$/ which works too.

Ciao
Marcus

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.