A new IP is only new to you
Which Spamhaus list matched changes everything
Checking the IP before you move anything
BASH
# Run on the new VPS or another server using its own recursive resolver
dig +short 45.113.0.203.zen.spamhaus.org A
# If an address comes back, fetch the reason text and listing reference
dig +short 45.113.0.203.zen.spamhaus.org TXT| Return code | Meaning |
|---|---|
| 127.0.0.2 | SBL |
| 127.0.0.3 | SBL CSS (snowshoe) |
| 127.0.0.4 to 127.0.0.7 | XBL |
| 127.0.0.9 | SBL DROP data |
| 127.0.0.10 / 127.0.0.11 | PBL, maintained by the network owner / by Spamhaus |
| 127.255.255.252 / .254 / .255 | Query error: malformed query, public resolver, or too many queries |
Clearing it depends on who owns the listing
The order that avoids the bounce wave
- Provision the VPS and note both its IPv4 and IPv6 addresses.
- Check each address against ZEN from a proper resolver, and cross-check with the Spamhaus web lookup. If it's on SBL or CSS, request a replacement IP now, before any DNS changes.
- Set the PTR record to the mail hostname, and make sure that hostname's A record resolves back to the same IP.
- Configure the mail server's hostname and HELO name to match.
- Add the new IP to SPF while the old one is still listed, so both servers are authorized during the overlap.
- Send test messages from the new server to mailboxes you control at major providers and read the headers and any rejections.
- Only then switch MX and outbound routing, and keep the old server able to send until the new one has delivered cleanly for a while.
