Block SPAM in Exim

Hi.

I added “spam-blocks.conf” domains to block spam from emails. It is not blocking. Need to do something else?

/etc/exim4/spam-blocks.conf

*@domain1.com
*@domain2.com

Try with blocklist_from in front of.
blocklist_from *@domain.tld

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.

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.