To block domains or email addresses that are sending SPAM, I have placed the following code in the config file /etc/exim4/exim4.conf.template
at the end of the acl_check_rcpt:
section, just above the accept
directive
# CUSTOM ACL START
deny senders = /etc/exim4/CUSTOM-BLACKLIST
message = You have been blacklisted for sending SPAM.
# CUSTOM ACL END
and of course I have placed all the blacklisted domains in that /etc/exim4/CUSTOM-BLACKLIST
file, like this (actual snippet):
fluor.webmedia.hr
[email protected]
bridestory.com
qq.com
I use Ubuntu. I hope this helps you.