Does this affect me?
It depends on who runs the server that actually connects to the receiver.
- You send through Google Workspace, Microsoft 365, SendGrid, Amazon SES, Mailgun or a similar provider. Their servers make the connection, and they set the HELO and reverse DNS. There's usually nothing for you to change, though a test email (below) shows it in a minute.
- You run your own mail server, or your app sends mail directly from a VPS or cloud server. This is who the rule is aimed at. Postfix or Exim on a VPS, a WordPress site sending from its own server, a monitoring box sending alerts: each sending IP now has to pass on its own.
What Spamhaus checks
- Reverse DNS (PTR). The sending IP must have a PTR record pointing to a real hostname, and that hostname must resolve back to the same IP. This is called forward-confirmed reverse DNS (FCrDNS). For IPv4 the name needs an A record, for IPv6 an AAAA record.
- A real HELO. The name your server gives in HELO/EHLO must be a real hostname that resolves to the sending IP, and it should stay the same on every connection. Placeholders like
localhostor a bare server name don't pass. - A name of your own, ideally. Spamhaus says generic names assigned by the hosting provider can hurt reputation, so
mail.yourdomain.comis better than something likeip-203-0-113-7.provider.net. Making the HELO and the PTR the same name is recommended, not required. - IPv6. Senders on IPv6 should be in an allocation of /64 or larger, with valid reverse DNS.
How to fix it
- Pick one hostname for the server, for example
mail.yourdomain.com. - Add an A record for that name pointing to the sending IP (and an AAAA record if it sends over IPv6).
- Set the PTR record for the IP to that name. This is done where the IP comes from, not in your domain's DNS. Most VPS and cloud providers have a "reverse DNS" field in the server's network settings; otherwise ask their support.
- Set the HELO name on the mail server to the same hostname. In Postfix that's
myhostname(orsmtp_helo_name) inmain.cf; in Exim it'sprimary_hostname(orhelo_dataon the transport). - Send a test email to the check below and confirm all three pass.
If you can't set the PTR at all, for example on a home connection, send through your email provider's server with a login instead of directly. That is the fix Spamhaus expects for home and dynamic IPs anyway.
The mistakes I see most
- Adding a PTR record to the domain's own DNS zone. It does nothing. Reverse DNS lives with whoever owns the IP.
- A PTR that doesn't resolve back. The PTR names
mail.yourdomain.com, but that name has no A record, or points to an old IP after a server move. - The server's default hostname as HELO. A fresh VPS often says HELO with its own short name or
localhost. Set it once, and it stays right. - Checking only the website's IP. Mail often leaves from a different IP than the site. Check the one that actually sends, which is what a test email shows.
Spamhaus also has its own HELO and DNS checker, and its full guidance is in the Spamhaus sender guidelines.