Hi,
Now, you can easily block a domain from being able to send or receive email. Here are the steps:
After you do the above, now log into WHM >> Service Configuration >> Exim Configuration Editor >> Advanced Editor. On this page, in the topmost box just add the following:
In the "ROUTER CONFIGURATION" section, look for the below lines in it.
After those lines just add below lines:
Once this is one and above lines are added, save the configuration and you are done with it.
Now, you can easily block a domain from being able to send or receive email. Here are the steps:
touch /etc/blockeddomains
echo "mydomain.com" >> /etc/myblockeddomains
echo "mydomain.com" >> /etc/myblockeddomains
domainlist blocked_domains = lsearch;/etc/myblockeddomains
democheck:
driver = redirect
require_files = "+/etc/demouids"
condition = "${if eq {${lookup {$originator_uid} lsearch {/etc/demouids} {$value}}}{}{false}{true}}"
allow_fail
data = :fail: demo accounts are not permitted to relay email
driver = redirect
require_files = "+/etc/demouids"
condition = "${if eq {${lookup {$originator_uid} lsearch {/etc/demouids} {$value}}}{}{false}{true}}"
allow_fail
data = :fail: demo accounts are not permitted to relay email
reject_domains:
driver = redirect
# RBL Blacklist incoming hosts
domains = blocked_domains
allow_fail
data = :fail: Connection rejected: SPAM source $domain is manually blocked.
driver = redirect
# RBL Blacklist incoming hosts
domains = blocked_domains
allow_fail
data = :fail: Connection rejected: SPAM source $domain is manually blocked.