Blog
SavedSearch
Visit Hostlelo

Fix PTR, HELO and rDNS Before Spamhaus Enforces It

Spamhaus is phasing in DNS checks on sending IPs. Run three dig checks, fix your PTR with the IP owner, match the cPanel HELO, and confirm every result passes.

The short answer

From November 2026, Spamhaus is gradually enforcing basic DNS checks on every sending IP: a valid HELO, a PTR record and a matching A record. Your IP's PTR must point to a hostname on your domain that resolves back to the same IP, and the HELO name your server announces must resolve to that IP too. Only the IP owner can change the PTR, and on cPanel you rebuild the RDNS cache afterwards so Exim's HELO follows the new name.

Reading options

On this page

Every IP address that sends your email now needs three DNS details to agree with each other: a reverse DNS name, a forward record that points back to the same IP, and a HELO name that resolves to that IP. Spamhaus announced on 21 October 2026 that it is rolling out enforcement of these basic checks gradually from November 2026, and a cPanel server or VPS can quietly fail one of them for years without anyone noticing. By the end of this guide you will have run three dig checks on your own sending IP, fixed whatever failed, and written a short pass or fail list you can keep.

What PTR, HELO and rDNS actually are

Think of a courier at a gated office building. The guard looks up who owns the van's number plate, then checks the courier's ID card against that name. If they disagree, the parcel waits at the gate.

Email works the same way. When your server connects to another mail server, the receiving side only sees the IP address you are connecting from. It does a reverse lookup on that IP to get a name. That reverse lookup is called rDNS (reverse DNS), and the DNS record that answers it is a PTR record (pointer record), which maps an IP address to a hostname.

Then the receiver does a normal forward lookup on that hostname, using an A record for IPv4 or an AAAA record for IPv6, to check it points back to the same IP. When both directions agree, Spamhaus calls this forward-confirmed reverse DNS, often shortened to FCrDNS.

The third piece is the HELO name. When your server opens an SMTP conversation (SMTP is the protocol mail servers use to talk to each other), the first thing it says is EHLO or HELO followed by its own name. RFC 5321, the SMTP standard, says that argument is the client's fully qualified domain name if one is available. A fully qualified domain name (FQDN) is a complete hostname such as mail.example.com, as opposed to a bare word like server1 or localhost.

Spamhaus wants that HELO name to resolve to the IP you are connecting from, and to stay the same across connections from that IP.

Why this matters: Spamhaus says DNS problems are among the most common reasons for listings, and it lists an invalid HELO, a missing PTR or a missing matching A record as the usual culprits. Its announcement does not describe a specific penalty for the new checks, so treat this as fixing a known weak spot, and not as reacting to a published punishment.

Before you start

  • The public IP address your server actually sends mail from, IPv4 and IPv6 if you send over both.
  • Access to a terminal with dig installed, on the server or on your own computer.
  • Access to the DNS zone for your domain, so you can add or edit an A record.
  • The name of whoever owns the IP address: your VPS provider, data centre or ISP. Only they can change the PTR.
  • Root access to WHM if you run cPanel.
  • A test mailbox at an outside provider so you can read the headers of a message you send.

Quick tip: if you do not know your sending IP, send a test email from the server to your outside mailbox and open the full headers. RFC 5321 says the from part of a Received: header should contain the name the sender gave in EHLO and an address literal with the IP taken from the connection. That bracketed IP on the hop where your server handed the message over is your sending IP, and the name next to it is your current HELO.

Heads up: if your cPanel server relays all outgoing mail through a smarthost (a separate mail service that delivers on your behalf), the IP the world sees belongs to the smarthost, not to your server. cPanel's documentation notes that the reverse DNS section of Email Deliverability does not appear at all when smarthosting is configured. In that case, run the checks below against the smarthost's sending IP and raise any problems with that provider.

Run the three DNS checks

All three checks use dig, the DNS lookup tool that ships with BIND. The BIND manual describes -x as the option for simplified reverse lookups, mapping addresses to names, and +short as the option that gives a terse answer. If you leave out the record type, dig looks up an A record by default.

The examples use 192.0.2.10 as the sending IP and mail.example.com as the hostname. Swap in your own values.

Step 1: Check your PTR record

This command asks DNS which hostname the IP address points to.

dig -x 192.0.2.10 +short

You should see a single fully qualified hostname with a trailing dot, like the output below.

mail.example.com.

If the command prints nothing, the IP has no PTR record and you will need the IP owner to add one. If it prints something like static-203-0-113-25.hosting.example.net., you have a PTR, but it is a generic provider name. Spamhaus uses that exact style of name as an example of what not to use for dedicated IPs and recommends branded rDNS on your own domain instead.

For IPv6, the same option works with an IPv6 address, and Spamhaus suggests exactly this check.

dig -x 2001:db8::10 +short

You should again see one hostname, ideally the same one you use for IPv4. Spamhaus also requires IPv6 sending addresses to sit inside an allocation of /64 or larger with valid reverse DNS, so ask your provider what size block you were given if you are unsure.

Step 2: Check the forward lookup matches

This command takes the hostname from Step 1 and asks which IPv4 address it points to.

dig mail.example.com A +short

The output should be the exact sending IP you started with.

192.0.2.10

If you send over IPv6 too, check the AAAA record the same way.

dig mail.example.com AAAA +short

You should see your IPv6 sending address. Google's sender guidelines say the PTR hostname must have an A record for IPv4 or an AAAA record for IPv6 that resolves to the same public IP, and that the sending IP must match the IP of the hostname in the PTR record.

Step 3: Check your HELO name resolves

First find the name your server announces. Read it from the Received: header of your test message, on the hop where your server handed the message over. That name is your HELO.

Now check that name resolves to your sending IP.

dig server.example.com A +short

The result should be your sending IP, 192.0.2.10 in this example. If it prints nothing, or a different IP, the HELO check fails.

Spamhaus lists several HELO values that count as signs of a misconfigured or compromised server: placeholders such as localhost, generic names that point to the hosting company or ISP, auto-generated provider names, and names that change between connections. It also warns against pretending to be a big mailbox provider in your HELO.

Made-up example: a small travel agency runs a VPS at 192.0.2.10. The PTR says mail.example.com, which resolves correctly. The HELO, though, is vps-1234.provider.example, left over from the day the server was built, and that name has no A record at all. Mail has mostly arrived, so nobody looked. Under the new Spamhaus checks, that HELO is the weak point, and the fix is short once you know where to look.

Fix the PTR with the IP owner

You cannot set a PTR record in your own domain's DNS zone. The cPanel docs say that if you do not have authority to update the PTR, you contact the owner of the IP address. For a VPS, that is your provider, and some have a reverse DNS field in their control panel, so check there first.

Before you ask, create the forward record yourself: an A record in your domain's zone for the hostname you want, pointing at the sending IP. The cPanel docs note that a PTR record requires an associated A record.

This is what the record looks like in zone file format.

mail.example.com.    3600    IN    A    192.0.2.10

Once it is saved, Step 2's command should return 192.0.2.10 for the new name. The 3600 is a TTL (time to live, how long resolvers may cache the answer) in seconds and is only an example value.

If you send over IPv6, add a matching AAAA record for 2001:db8::10 the same way.

Now send the request. Here is a message you can paste into a support ticket and edit.

Subject: Please set reverse DNS (PTR) for 192.0.2.10

Hello,

Please set the reverse DNS (PTR) record for the following IP address on my service:

IP address: 192.0.2.10
PTR hostname: mail.example.com

The forward record is already in place: mail.example.com has an A record pointing to 192.0.2.10.

If my service also sends mail over IPv6, please set the PTR for 2001:db8::10 to mail.example.com as well, and confirm the size of my IPv6 allocation.

This is needed so the sending IP passes forward-confirmed reverse DNS checks used by Spamhaus and Gmail.

Thank you.

Once the provider confirms, Step 1's command should return mail.example.com. instead of the old value.

Quick tip: pick a hostname on your own domain that you will keep long term, such as mail.example.com or server.example.com. Spamhaus recommends branded rDNS, and it also suggests hosting a simple web page on the HELO domain that explains what it is for or redirects to your main site.

Make the Exim HELO match on cPanel

On a cPanel server, Exim is the program that sends your outgoing mail. cPanel's support article says cPanel automatically sets the Mail HELO to match the PTR of the server's outbound SMTP IP addresses, so once the PTR is right, the HELO usually follows. The catch is caching.

Back up first. These settings affect how every account on the server sends mail, so copy the two files cPanel uses for custom outbound HELO and IP choices. If one of them does not exist on your server, cp will say so, and you can skip it.

cp -a /etc/mailhelo /etc/mailhelo.bak
cp -a /etc/mailips /etc/mailips.bak

You should now have .bak copies next to the originals, and you can restore either file by copying it back. Also take a screenshot of the Domains and IPs tab described below so you can put any setting back exactly as it was.

Step 4: Check the HELO setting in Exim Configuration Manager

Log in to WHM as root and open WHM > Home > Service Configuration > Exim Configuration Manager. Select the Basic Editor and then the Domains and IPs tab.

Find the setting Use the reverse DNS entry for the mail HELO/EHLO if available. cPanel's Basic Editor documentation lists it as On by default and says it only applies during the HELO/EHLO request. Leave it On if you want the HELO to follow your PTR, which is the simplest way to keep the two consistent.

At the time of writing (27 November 2026), that Basic Editor page says it is valid for cPanel versions 138 through the latest version, so labels may differ on older servers.

Two related settings on the same tab are worth knowing about.

  • Reference /etc/mailhelo for custom outgoing SMTP HELO sends a HELO based on the domain in /etc/mailhelo. It is Off by default and is disabled when the reverse DNS HELO setting or Send mail from the account's IP address is enabled.
  • Send mail from the account's IP address is Off by default. When it is on, cPanel fills /etc/mailhelo and /etc/mailips automatically and overwrites manual edits.

Heads up: if you use per-account IPs, each of those IPs needs its own PTR and matching A record. Spamhaus asks for a consistent HELO for each sending IP, so each IP should always announce the same name, and that name must resolve back to it.

Step 5: Rebuild the RDNS cache

cPanel caches PTR lookups. Its support article explains that after you change a PTR, the Email Deliverability page can keep showing the old record, and Exim can keep using the old name as its HELO. Rebuilding the cache fixes both.

Go to WHM > Home > Service Configuration > Exim Configuration Manager, open the Domains and IPs tab, and click the rebuild button. The cPanel support article labels it Rebuild RDNS Cache, and the Basic Editor documentation calls the same action Rebuild Reverse DNS Cache and Update Mail HELO, so look for either wording.

The docs say this button only appears when Use the reverse DNS entry for the mail HELO/EHLO if available is enabled. If you cannot see it, check that setting first.

Once the rebuild finishes, send a fresh test message and read the HELO name in its Received: header. It should now match your new PTR hostname.

Then open the Email Deliverability interface in WHM (the WHM search box finds it). The cPanel docs say its reverse DNS section shows and verifies the current PTR and explains any problem, so it should now show the new hostname without a warning.

How to check it worked

Once the PTR change is confirmed, run each check again and write down the result. This is your pass or fail list.

  1. PTR: dig -x 192.0.2.10 +short prints exactly one FQDN on your own domain, such as mail.example.com., and no generic provider name.
  2. Forward match: dig mail.example.com A +short prints 192.0.2.10, the same IP you started from.
  3. IPv6 PTR, if you send over IPv6: dig -x 2001:db8::10 +short prints a hostname, and dig mail.example.com AAAA +short prints 2001:db8::10.
  4. IPv6 allocation, if you send over IPv6: your provider confirms a /64 or larger.
  5. HELO name: the name in the Received: header of a fresh test message resolves to your sending IP with dig server.example.com A +short (using your own HELO name).
  6. HELO quality: the HELO is not localhost, not a provider default, and not a name that changes from one message to the next.
  7. cPanel view: Email Deliverability shows the new PTR hostname with no reverse DNS warning.

If every line passes, you have done what Spamhaus and Gmail both ask for on the DNS side. Authentication records are a separate layer, and our guide to SPF, DKIM and DMARC for small business email covers that part.

Troubleshooting

The reverse lookup returns nothing

Symptom: dig -x 192.0.2.10 +short prints an empty line.

Likely cause: no PTR record exists for the IP.

Fix: create the A record for your chosen hostname, then send the ticket above to the IP owner or use their panel's reverse DNS field.

The PTR is a generic provider name

Symptom: Step 1 prints something like static-203-0-113-25.hosting.example.net..

Likely cause: the provider's default reverse DNS was never changed.

Fix: Spamhaus says not to use generic or auto-generated rDNS that points to the hosting provider for dedicated IPs. Ask the provider to change it to a hostname on your own domain, with the matching A record already in place.

Email Deliverability still shows the old PTR

Symptom: dig -x shows the new hostname, but WHM still shows the old one, and outgoing mail still uses the old HELO.

Likely cause: cPanel's cached PTR data, which its support article describes as the reason the old record lingers.

Fix: run the rebuild from Step 5 on the Domains and IPs tab, then send a fresh test message and check its Received: header.

The rebuild button is missing

Symptom: you open the Domains and IPs tab and there is no rebuild option.

Likely cause: Use the reverse DNS entry for the mail HELO/EHLO if available is turned off. The docs say the rebuild setting only appears when it is enabled.

Fix: turn that setting on, save, and the rebuild option should appear. If you had a custom HELO set through /etc/mailhelo on purpose, make sure that custom name passes Step 3 before switching.

The reverse DNS section is missing in Email Deliverability

Symptom: WHM's Email Deliverability page has no PTR section at all.

Likely cause: a smarthost is configured. The cPanel docs say this section does not appear when smarthosting is set, because the smarthost delivers the mail.

Fix: check the smarthost's sending IP instead, and ask that provider about its PTR and HELO.

Gmail rejects mail over IPv6

Symptom: a bounce with the text Message does not meet IPv6 sending guidelines regarding PTR records and authentication.

Likely cause: your server is sending over IPv6 and its PTR record is not an IPv6 one. Google's guidelines say an IPv6 authorization error could mean this, and the message also mentions authentication, so check your SPF and DKIM records too.

Fix: ask the IP owner for an IPv6 PTR pointing at your hostname and add the matching AAAA record. Until that is done, talk to whoever manages your server about how outgoing mail should be handled on IPv6.

The HELO name does not resolve

Symptom: dig server.example.com A +short returns nothing, or a different IP.

Likely cause: the HELO is an old build-time name, or a name on a domain you no longer control.

Fix: on cPanel, get the PTR right and rebuild the cache so the HELO follows it. Spamhaus also warns against pointing your HELO at infrastructure that does not send mail.

Pro tip: treat reverse DNS as part of DNS hygiene

Spamhaus asks senders to audit DNS regularly and remove records for hosts and IP space they no longer use, because a dangling record pointing at a former provider can be claimed by someone else. When you move servers, set the PTR on the new IP, delete the old A record, and rerun the checks.

Security note: Spamhaus notes that upstream DNS records are often used to hide identity, so a PTR on your own domain shows receivers who is actually sending.

If you are still choosing where to host mail, ask whether you can set reverse DNS before you sign up. Our VPS sizing guide and small business hosting checklist are good places to add that question.

The one message worth forwarding

If someone else manages your server or IP, send them this.

Hi, Spamhaus is rolling out checks on sending IPs that started in November 2026. Can you confirm three things for our mail server IP 192.0.2.10: it has a PTR record pointing to a hostname on our domain, that hostname has an A record pointing back to 192.0.2.10, and the HELO name the server sends resolves to the same IP. If we send over IPv6, the same applies to that address. On cPanel, please also rebuild the RDNS cache in Exim Configuration Manager after any PTR change. Thanks.

If the PTR, the forward record and the HELO all point to the same IP and the same name on your own domain, you have passed the part of this check that is in your hands.

Reader questions

When does Spamhaus start enforcing the new DNS requirements?

Spamhaus said in its 21 October 2026 announcement that enforcement starts in November 2026 and is rolled out gradually over several months. It did not give an exact day.

Can I add a PTR record in my own domain's DNS zone?

No. The PTR lives in the reverse zone controlled by whoever owns the IP address, usually your VPS provider, data centre or ISP. You add the matching A record yourself and ask them to set the PTR.

Does the HELO name have to be the same as the PTR hostname?

Spamhaus requires the HELO name to resolve to the sending IP and stay consistent, and it recommends keeping it consistent with the rDNS hostname where possible. Using the same name for both is the simplest way to pass.

Do I need reverse DNS for IPv6 as well?

Yes, if you send mail over IPv6. Google asks for an IPv6 PTR in that case, and Spamhaus requires IPv6 sending addresses to sit in a /64 or larger allocation with valid reverse DNS.

I use a smarthost. Do these checks apply to my server?

The checks apply to the IP that actually delivers your mail, which is the smarthost's IP. cPanel hides the PTR section of Email Deliverability when a smarthost is configured, so check with the smarthost provider instead.

Is it fine to use the reverse DNS name my provider gave me by default?

Spamhaus advises against generic or auto-generated rDNS names that point to the hosting provider for dedicated IPs. It recommends a branded hostname on your own domain.

Sources & further reading

  1. Spamhaus: Spamhaus Sender Guidelines announcement
  2. Spamhaus Sender Guidelines
  3. Google: Email sender guidelines
  4. RFC 5321: Simple Mail Transfer Protocol
  5. cPanel Support: Rebuild PTR Reverse DNS Cache and Update Mail HELO
  6. cPanel Docs: Email Deliverability in WHM
  7. cPanel Docs: Exim Configuration Manager Basic Editor
  8. BIND 9 manual pages: dig

Originally published . About our editorial updates.

Your next project deserves a better foundation.

Explore hosting built for your next chapter.

Explore hosting

Find your next answer.

Search published guides and articles.

Ctrl / ⌘ K to open · Esc to close