Yahoo Groups archive

Milter-greylist

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

Thread

combining from and rcpt lists in one ACL

combining from and rcpt lists in one ACL

2016-09-07 by Marcus Schopen

Hi,

as a test I'd like to block all mails from sender @... to my
recipient domains mydomain1.de and mydomain2.de. All other mails from
@... to other recipient domains should not be blocked. I thought
I could combine two lists in one ACL, but this seems not to work:

list "SPAMSENDER" from { \
          /.*@spammer\.com/ \
}

list "MYDOMAINS" rcpt { \
          /*.@mydomain1\.de/ \
          /*.@mydomain2\.de/ \
}

racl "TESTLIST" blacklist list "SPAMSENDER" list "MYDOMAINS" msg "Bad
reputation - sender addr <%f> listed on SPAM blacklist %a" flushadd

This line works, but blocks @... sender addresses to _all_
recipient domains on that host:

racl "TESTLIST" blacklist list "SPAMSENDER" msg "Bad reputation - sender
addr <%f> listed on SPAM blacklist %a" flushadd

Any ideas?

Thanks
Marcus

Re: [milter-greylist] combining from and rcpt lists in one ACL

2016-09-08 by Marcus Schopen

On 2016-09-07 20:31, Marcus Schopen lists-yahoogroups@... 
[milter-greylist] wrote:
> Hi,
> 
> as a test I'd like to block all mails from sender @... to my
> recipient domains mydomain1.de and mydomain2.de. All other mails from
> @... to other recipient domains should not be blocked. I
> thought
> I could combine two lists in one ACL, but this seems not to work:
> 
> list "SPAMSENDER" from { \
> /.*@spammer\.com/ \
> }
> 
> list "MYDOMAINS" rcpt { \
> /*.@mydomain1\.de/ \
> /*.@mydomain2\.de/ \
> }
> 
> racl "TESTLIST" blacklist list "SPAMSENDER" list "MYDOMAINS" msg "Bad
> reputation - sender addr <%f> listed on SPAM blacklist %a" flushadd
> 
> This line works, but blocks @... sender addresses to _all_
> recipient domains on that host:
> 
> racl "TESTLIST" blacklist list "SPAMSENDER" msg "Bad reputation -
> sender
> addr <%f> listed on SPAM blacklist %a" flushadd
> 
> Any ideas?

Seems to work now. I forgot to enable extendedregex on my fresh set up 
testing host. ;)

Ciao
Marcus

Re: [milter-greylist] combining from and rcpt lists in one ACL

2016-09-08 by Johann Klasek

On Thu, Sep 08, 2016 at 09:15:56AM +0200, Marcus Schopen lists-yahoogroups@... [milter-greylist] wrote:
> On 2016-09-07 20:31, Marcus Schopen lists-yahoogroups@... 
> [milter-greylist] wrote:
> > as a test I'd like to block all mails from sender @... to my
> > recipient domains mydomain1.de and mydomain2.de. All other mails from
> > @... to other recipient domains should not be blocked. I
> > thought
> > I could combine two lists in one ACL, but this seems not to work:
> > 
> > list "SPAMSENDER" from { \
> > /.*@spammer\.com/ \
> > }
> > 
> > list "MYDOMAINS" rcpt { \
> > /*.@mydomain1\.de/ \
> > /*.@mydomain2\.de/ \
> > }
[..]

> Seems to work now. I forgot to enable extendedregex on my fresh set up 
> testing host. ;)

Beside this, I'm wondering if /*.@mydomain.... does really make any
sense either. Was /.*@mydomain meant? Incidentally it might work because "*" is
ignored in the regex?

Johann K.

Re: [milter-greylist] combining from and rcpt lists in one ACL

2016-09-08 by Marcus Schopen

On 2016-09-08 12:47, Johann Klasek johann@... [milter-greylist] 
wrote:
> Beside this, I'm wondering if /*.@mydomain.... does really make any
> sense either. Was /.*@mydomain meant? Incidentally it might work
> because "*" is
> ignored in the regex?

Johann, right! This is a typo. :o I meant "/.*@mydomain\.de/".

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.