How to enable RBL(real-time blacklists) in Exim

Real-time blacklists (or real-time blocklists or real-time blackhole lists) are lists of malicious/spammer IPs. These lists are maintained by organizations like The Spamhaus Project . The EXIM server will check the sender of emails against the selected lists. If the IP is on a list, the message will be discarded.

To enable BRL feature in DirectAdmin:

1. Log into your admin account

2. Navigate to Server Manager >> Administrator Settings

3. On the E-mail Settings tab, enable the Use RBL Blocking option. The feature is now enabled and future emails will be filtered.

rbl exim directadmin
Enable RBL Blocking

The RBL list is set in /etc/exim.conf The default list is:

RBL_DNS_LIST=\ : \ : \

Here you can consult a list of RBLs

If you want to modify the DA default list – add or remove RBL servers – do not edit the exim.conf file, as it can be overwritten by DirectAdmin. Instead, list the desired RBLs in /etc/exim.strings.conf.custom . Create the file if not already present. For example, we want to add the server to the list: : : :

Do not forget to restart exim service after each modification.

service exim restart

The rejected messages will be logged in /var/log/exim/mainlog

grep "Email blocked" /var/log/exim/mainlog


2022-02-02 01:38:03 [xx.xx.xx.xx] F=<> rejected RCPT <>: Email blocked by

Exim Internet Mailer

Leave a Reply