Skip to content
RBL.AF IP & Domain Reputation Intelligence

Integration guide

WHM and Exim integration

Reject a message with SMTP 550 only when a lookup returns the listed answer for that zone. If DNS fails or times out, accept the message. Test every change on the Exim and cPanel versions you run before enabling it in production.

Overview

ListZoneQueryListed answer
IP blocklistbl.rbl.afReversed IPv4 octets or IPv6 nibbles127.0.0.2
Domain blocklistdbl.rbl.afDomain name as-is (not reversed)127.0.1.2

Every listed name also has a TXT record with the public reason and a link to the lookup page. Names that are not listed return NXDOMAIN.

WHM custom RBL (IP addresses)

  1. Open WHM → Service Configuration → Exim Configuration Manager → Basic Editor → RBLs.
  2. Choose Manage Custom RBLs and add a new RBL.
  3. RBL name: RBL.AF. DNS list: bl.rbl.af. Information URL: https://www.rbl.af/lookup.
  4. Enable the new RBL for incoming mail and save the configuration.

Exim reverses IPv4 and nibble-reverses IPv6 itself. The WHM control uses Exim dnslists, which defers (a temporary 4xx, not a rejection) when DNS fails. Deferral delays mail. For a strict fail-open policy, use the ACL stanza below instead.

IP ACL with fail-open behaviour

Place this in acl_smtp_rcpt after the accept rules for authenticated and trusted senders (Advanced Editor, custom ACL section).

deny
  message   = 550 Rejected: $sender_host_address is listed by RBL.AF - see https://www.rbl.af/lookup
  !authenticated = *
  !hosts    = : +relay_from_hosts
  condition = ${if eq{${lookup dnsdb{defer_never,a=<; ${reverse_ip:$sender_host_address}.bl.rbl.af}}}{127.0.0.2}{yes}{no}}

defer_never turns a DNS failure into an empty answer, so the condition is false and the message continues.

Sender domain ACL

WHM custom RBLs only check the connecting IP address. To check the envelope sender domain, add a second stanza in the same place. It skips the empty (bounce) sender and does not apply to authenticated submission or mail generated on the server.

deny
  message   = 550 Rejected: sender domain $sender_address_domain is listed by RBL.AF - see https://www.rbl.af/lookup
  !authenticated = *
  !hosts    = : +relay_from_hosts
  condition = ${if eq{$sender_address_domain}{}{no}{yes}}
  condition = ${if eq{${lookup dnsdb{defer_never,a=<; ${lc:$sender_address_domain}.dbl.rbl.af}}}{127.0.1.2}{yes}{no}}

A hit is the A record 127.0.1.2. Listings are exact: listing example.net does not list mail.example.net, and the reverse is also true.

Verification

The RFC 5782 test point is always listed and can be used to confirm the configuration:

Positive test (expects 127.0.0.2)

dig +short 2.0.0.127.bl.rbl.af A

Negative test (expects no answer / NXDOMAIN)

dig +short 1.0.0.127.bl.rbl.af A

Domain test point (expects 127.0.1.2)

dig +short test.dbl.rbl.af A

Public reason

dig +short 2.0.0.127.bl.rbl.af TXT

Operational notes

  • The allowlist in this service only prevents an entry from being published on RBL.AF. It does not override other blocklists or hand-written Exim rules.
  • Listing changes are published within about a minute. Resolvers may cache answers for the record TTL (60 seconds by default) and negative answers for the SOA minimum.
  • Use a local caching resolver on each mail server. Do not query through public resolvers that may rate-limit DNSBL traffic.
  • Questions about a listing: use the lookup and, if needed, request delisting.