ZeroLegacyDNSBL

Use the list on your mail server

How a lookup works

Reverse the four numbers of the connecting IPv4 address and add dnsbl.zerolegacy.ch. For 192.0.2.45 the name is 45.2.0.192.dnsbl.zerolegacy.ch. If the address is listed, DNS answers with an address starting 127.0.0.. If it isn’t, the answer is “no such name” (NXDOMAIN). IPv6 works the same way with the 32 reversed hex digits, and we list whole /64 networks.

AnswerMeaning
127.0.0.2Spam
127.0.0.3Phishing
127.0.0.4Malware / botnet

Check that your resolver can reach us. This name is always listed, so it must answer 127.0.0.2:

dig +short 2.0.0.127.dnsbl.zerolegacy.ch

Postfix

Reject mail from listed addresses. Put the check after reject_unauth_destination so it only applies to mail for your own users:

smtpd_recipient_restrictions =
    permit_mynetworks,
    permit_sasl_authenticated,
    reject_unauth_destination,
    reject_rbl_client dnsbl.zerolegacy.ch

With postscreen you can weigh it against other lists instead of rejecting on this list alone:

postscreen_dnsbl_sites = dnsbl.zerolegacy.ch*2
postscreen_dnsbl_threshold = 2
postscreen_dnsbl_action = enforce

SpamAssassin

header   RCVD_IN_ZEROLEGACY  eval:check_rbl('zerolegacy', 'dnsbl.zerolegacy.ch.')
describe RCVD_IN_ZEROLEGACY  Received from an address listed at dnsbl.zerolegacy.ch
tflags   RCVD_IN_ZEROLEGACY  net
score    RCVD_IN_ZEROLEGACY  1.5

Good to know