HostSailor.
Beginner 2.0
If you notice one of the domains in your WHM installed server is doing some email spamming activities and you need to block his emails without suspending the account, you can follow these steps in your default Exim configuration. This will make sure the normal email services are working and the block is placed for the domains listed in the block file. You can watch the video tutorial by clicking here. The steps are provided below:
- Login to the server as root.
- Create a new file:
# nano /etc/eximblacklist - Then we need to make some edits to the main Exim configuration file.
# nano /etc/exim.conf
domainlist exim_blacklist = lsearch;/etc/eximblacklist - After that, add the following under the 'Routers Configuration' section:
reject_domains:
driver = redirect
# RBL Blacklist incoming hosts
domains = +exim_blacklist
allow_fail
data = :fail: Connection rejected: SPAM source $domain is manually blacklisted. - Save the file and then restart the Exim service:
# service exim restart - If you are finding more domains doing the spamming activities, you can simply add the domain name to '/etc/eximblacklist' and no further changes needed.