Block emails from a specific domain in Exim

To block all emails sent from a specific domain:

-go to WHM/Service Configuration/Exim Configuration and switch to Advanced mode

-at begin ACL form put:

if $header_from: contains “@domain_name.com”
then
fail text “What message do you want.”
seen finish
endif

Leave a Reply