How to block a spammer domain in exim configuration :: cPanel

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:

  1. Login to the server as root.
  2. Create a new file:
    # nano /etc/eximblacklist
    You can add the problematic domain inside this file without quotes. Save the file after adding the domain(s).
  3. Then we need to make some edits with the main Exim configuration file.
    # nano /etc/exim.conf
    Add the following line in the first session just below the line 'cPanel Exim 4 Config'
    domainlist exim_blacklist = lsearch;/etc/eximblacklist
  4. After that, add the following under '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.
  5. Save the file and then restart the Exim service:
    # service exim restart
  6. 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. 
  • exim, spamming
  • 0 utilizatori au considerat informația utilă
Răspunsul a fost util?

Articole similare

How To Install and Use Docker on Ubuntu 16.04

Introduction Docker is an application that makes it simple and easy to run application processes...

Change Main IP of the server :: Vesta Panel

If we are changing the main IP of a server installed with Vesta panel, we can use the following...

cPanel: Apache-FastCGI Data Timeout Error

If you are using a cPanel server and have FastCGI enabled in Apache, you might be facing the...

Domainkey installer in cPanel

You can use the following cPanel script to install domainkey for an account...

Email issues :: Common Troubleshooting Steps

Here I will discuss some common errors and their solution: We are using a mail relay setup for...