Yahoo Groups archive

Milter-greylist

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

Message

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

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.