For a start, you could go to the max hourly mail limit and set it to 1.
Will try out something and post.
Will try out something and post.
Ok! this solution is work, thank youremoving the domain from /etc/localdomains will also block the domain from sending.
What steps have you taken thus far, and what method is being used when sending from this domain name?I was do all this instruction , but email still sending !
domainlist blocked_domains = lsearch;/etc/blockeddomains
reject_domains:
driver = redirect
domains = +blocked_domains
allow_fail
data = :fail: Connection rejected: SPAM source $domain is manually blacklisted.
touch /etc/blockeddomains;chown root:mail /etc/blockeddomains;chmod 640 /etc/blockeddomains
You may find this post helpful:I completed all of the steps listed by s.a. above. Now what do I need to do to block a specific domain from sending? In our case, the spammers are aol.com senders, and we don't want to allow an aol address to send email through our server.
You can try the following steps. First, in root SSH, run these commands:
Please replace domain.com with the domain name. Do not replace the "" part as that's required, only the domain.com part with the right domain name.Code:touch /etc/blockeddomains echo "domain.com" >> /etc/blockeddomains
In WHM > Exim Configuration Editor > Advanced Editor, put the following in the topmost box:
Locate the "ROUTERS CONFIGURATION" section, and right below these lines:Code:domainlist blocked_domains = lsearch;/etc/blockeddomains
Put the following lines:
Code:reject_domains: driver = redirect # RBL Blacklist incoming hosts domains = blocked_domains allow_fail data = :fail: Connection rejected: SPAM source $domain is manually blacklisted.
domains = blocked_domains
domains = +blocked_domains
#[email protected] block test
if first_delivery
and
$h_from: contains "[email protected]"
then
headers add "SpamRule: EXIM FILTER [email protected] (was: $h_subject:)"
deliver "SpamTest <[email protected]>"
seen finish
endif
or
$h_to: contains "[email protected]"