I am using Exim 4.14 and have tried using the following statement in my
ACLs:
deny sender_domains = /etc/exim/abuse/sender_domains
senders = /etc/exim/abuse/sender
The files are just a list of domains and sender addresses. I have tried
putting the lines under "acl_check_rcpt" and "acl_check_data" but both
don't work.
I tried testing it by typing the following on the command line:
exim -C exim.conf.test -d-all+acl -bs
After typing the following to simulate an incoming mail:
HELO test.blockeddomain.com
MAIL FROM:<test@???>
RCPT TO:<someone@???>
It fails even though "blockeddomain.com" is listed in my
"sender_domains" file.
I was reading through archives and some were saying that the above
should work but I also found the following in the FAQs. Section 8 on
Policy Controls, Q0801 says to use the following to block senders:
sender_reject_recipients = @@lsearch*;/name/of/the/file
How is this different to the deny ACL, and where should this go in the
config file?
Peter