General Category > General Discussion

How to block a spammer domain server wide on a cPanel server.


Create a file named /etc/eximblacklist and add the entry "" (without quotes). That is, add the domains you need to blacklist.

Next, we need to open the Exim configuration file /etc/exim.conf

Add the below lines in the first section just below the line "#!!# cPanel Exim 4 Config"

--- Code: ---domainlist exim_blacklist = lsearch;/etc/eximblacklist
--- End code ---

Now add inside the section under "ROUTERS CONFIGURATION"

--- Code: ---reject_domains:

driver = redirect
# RBL Blacklist incoming hosts
domains = +exim_blacklist
data = :fail: Connection rejected: SPAM source $domain is manually blacklisted.

--- End code ---

Save the configuration and see the Exim error log. You can see the domain blocked.

We can add more domain manually to reject more if domains sending spam.


[0] Message Index

Go to full version