Lesson 6 of 14 · 14m
Your IP Has a Résumé
Receivers gate on IP reputation and forward-confirmed reverse DNS before SPF or DKIM is even consulted — a cloud IP with no PTR is dead on arrival.
What Actually Happens
When your MTA opens a connection to Gmail's MX, the receiver runs a checklist that executes before your MAIL FROM is evaluated for SPF, before your DKIM signature is parsed — before content exists at all. In rough order:
- Does the connecting IP have a
PTRrecord?dig -x 40.160.82.139→mail.sudosecurity.org. - Does that PTR name resolve forward to the same IP?
mail.sudosecurity.orgA →40.160.82.139. Both directions agreeing is forward-confirmed reverse DNS (FCrDNS). - Is the IP in a blocklist? The receiver does a DNSBL lookup against the reversed octets —
139.82.160.40.zen.spamhaus.org— where Spamhaus ZEN bundles SBL (known spam sources), XBL (exploited hosts), and PBL (ranges that shouldn't send mail directly at all). - What is the IP's sending history? Gmail and Microsoft maintain per-IP and per-domain reputation from everything that address has ever sent.
Fail the PTR check and Gmail answers 550 5.7.25 — "The IP address sending this message does not have a PTR record" — and the conversation is over. Your perfect v=spf1, your RSA-2048 signature, your p=reject DMARC record: none of them were read.
The DNSBL lookup itself is worth understanding mechanically: reverse the IP's octets, prepend them to the list zone, and query for an A record. 40.160.82.139 becomes 139.82.160.40.zen.spamhaus.org — a 127.0.0.x answer means listed, with the last octet encoding which sub-list hit. Spamhaus ZEN bundles SBL (knowingly spammy operations), XBL (exploited/botted hosts), and PBL. The PBL is the interesting one: it's not a spam list, it's a "this range should not send mail directly" list — residential pools, dynamic allocations, ranges the ISP has declared end-user. Being on PBL is not an accusation; it's a routing statement. The self-removal link exists precisely because legitimate operators occasionally inherit a listed IP.
The Wrong Mental Model
"Authentication passed, so the mail is delivered." Authentication is evaluated only after reputation admits you to the evaluation. A fresh cloud IP is not a neutral starting point — it starts suspect, because the population of fresh cloud IPs consists disproportionately of spammers who burned the last one. Ranges in Spamhaus PBL are rejected on sight. That is not discrimination; it is the base rate.
This is also why "just rent another VPS" is not a deliverability strategy. AWS blocks outbound port 25 by default and makes you petition for it; Azure doesn't allow direct SMTP out of standard subscriptions at all. Providers built the wall because attackers were cycling disposable VMs through it. The IP you can actually send from is scarce, and scarcity is the point — reputation only works when identities are expensive to discard.
Evidence From Production
PTR records live with whoever controls the IP, not whoever controls the domain. On OVH, you set it in the panel: IP → Modify reverse → mail.sudosecurity.org. Only the account holder can do it — no DNS edit at Cloudflare will ever produce a PTR, because in-addr.arpa delegations belong to the address's allocator. Operators who forget this publish flawless SPF/DKIM/DMARC on a domain whose IP doesn't even claim a hostname, then wonder why every Gmail delivery fails.
The other half of the trap is consistency. The EHLO/HELO name your MTA announces, the PTR, and the banner hostname should be the same name. EHLO localhost from an IP claiming to be mail.sudosecurity.org is a small reputation ding that compounds with every other small one.
Correct Practice
Set the PTR to the exact hostname the MTA announces, confirm FCrDNS both directions, then check the IP against zen.spamhaus.org and mxtoolbox before the first send. Warm new IPs slowly — real users, real replies, doubling volume over weeks, never a cold burst. And accept the structural rule: if you cannot control the PTR for an IP, you cannot run a respectable mail sender on it.
Keep reading
Related articles from the SudoSecurity blog.
Self-Hosted Email in 2026: Mailcow vs Mailu vs Stalwart — Which Mail Server Should You Trust?
Self-hosted email in 2026 comes with more choices than ever. This guide compares Mailcow, Mailu, and Stalwart across security, performance, resource usage, scalability, administration, and deliverability to help you choose the right mail server for your needs.
Stalwart 1.0 Says It's the Fastest Mail Server on the Planet. Here Are the Numbers.
After five years, Stalwart hit its first stable release on October 26 with benchmarks claiming it beats Postfix and Dovecot in 35 of 38 head-to-head tests. Every one of those numbers was produced by the vendor.
How to Self-Host Your Own Email Server With Mailcow in 2026 — Complete Setup Guide
How to Self-Host Your Own Email Server With Mailcow in 2026 — Complete Setup Guide Meta Description: Stop letting Google and Microsoft read your email. This guide sets up a complete private email server with Mailcow on a NetCup VPS — DNS, SPF, DKIM, DMARC, TLS, webmail, and mobile clients.
What Self-Hosters Are Ripping Out of Their Stacks in 2026
Self-hosted email is losing to Gmail's hard SMTP rejections. Self-hosted password managers are split down the middle. And self-hosted music is doing the opposite of what you'd expect.