SpamSwat: A DNS Blocklist for Mail Servers

SpamSwat is a DNS-based blocklist at dnsbl.mojvebsajt.com. Mail servers can query it to check whether a connecting IP address is listed.

The zone supports IPv4 and IPv6 and returns 127.0.0.2 for listed addresses.

SpamSwat is a DNS-based blocklist at dnsbl.mojvebsajt.com. Mail servers can query it to check whether a connecting IP address is listed.

The zone supports IPv4 and IPv6 and returns 127.0.0.2 for listed addresses. It contains SpamSwat’s local entries; it does not include UCEPROTECT data.

Adding SpamSwat to Postfix

Add the following restriction to your existing smtpd_recipient_restrictions, after permits for trusted networks and authenticated users:

reject_rbl_client dnsbl.mojvebsajt.com=127.0.0.2

Check the configuration and reload Postfix:

postfix check && postfix reload

Before enabling rejection, verify DNS resolution from the mail server:

dig +short 2.0.0.127.dnsbl.mojvebsajt.com A

The test record should return 127.0.0.2.

Checking an address

For IPv4, reverse the address octets and append the DNSBL zone. For example, to check 203.0.113.8:

dig 8.113.0.203.dnsbl.mojvebsajt.com A

A 127.0.0.2 response means the address is listed. NXDOMAIN means it was not found. A timeout or SERVFAIL is a DNS error, not confirmation that the address is clear.

IPv6 queries use all 32 hexadecimal digits in reverse order, separated by dots. Alternatively, use the public lookup form at https://spamswat.mojvebsajt.com/.

Operational considerations

DNS lookups do not add addresses to the list. Updates are published periodically, and DNS caching can delay their visibility.

As with any blocklist used for SMTP rejection, monitor mail logs and consider the consequences of false positives. SpamSwat is one signal for mail filtering, not a complete spam prevention system.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.