Skip to content

DNSBL for your mailserver

The standard Rspamd RBL module can query sending IP reputation. Provider access, terms and quota must fit your mail volume.

Setup

Prepare your values and Debian packages. Replace example domains and IPs with your own.

Install Rspamd. Debian's default profile includes RBLs. Use your own recursive resolver and confirm provider authorization. For Spamhaus DQS, configure your own credentials according to its guide; never reuse someone else's key. This block explicitly enables the module and checks configuration:

set -euo pipefail
install -d /etc/rspamd/local.d
printf 'enabled = true;\n' > /etc/rspamd/local.d/rbl.conf
rspamadm configtest
systemctl restart rspamd

Test

set -euo pipefail
rspamadm configtest
rspamadm configdump rbl > /root/mail-tests/rbl-config.txt
grep -F 'zen.spamhaus.org' /root/mail-tests/rbl-config.txt
systemctl is-active rspamd

One provider test, only if your usage is authorized:

External provider test
dig 2.0.0.127.zen.spamhaus.org A +short

The local test confirms the configured RBL, not provider authorization or a current listing. Responses in 127.255.255.x indicate provider or access errors and must not be treated as spam listings. Do not load-test DNSBL providers. Rspamd RBL documentation.