Why Does Your Email Keep Landing in the Spam Folder?

You sent a perfectly crafted message. Your list is clean. Your content avoids spam triggers. Yet your emails keep ending up in the junk folder—or worse, never arriving at all.

That’s not a content problem. It’s a technical one. One of the most overlooked culprits? A missing or misconfigured reverse DNS (PTR) record.

Without a proper PTR record, your sending server appears anonymous to receiving mail systems. Spam filters see that as a red flag. Even the best email campaigns will fail if the infrastructure behind them isn't trusted.

This email deliverability guide explains how reverse DNS (PTR) records and the sending hostname work together to determine whether your messages get accepted—or blocked. You’ll learn how to check them, fix common issues, and ensure your sender reputation stays intact.

Key takeaways

  • A missing or incorrect PTR record can trigger spam filters even with clean content and a valid sender IP.
  • Reverse DNS must match your sending hostname and be configured on the IP address’s hosting provider or cloud service.
  • MailTester’s inbox-placement testing verifies both PTR and hostname alignment in real-world email clients.

What Is a Reverse DNS (PTR) Record?

A reverse DNS (PTR) record maps an IP address back to a domain name — the opposite of a standard DNS lookup. When an email server receives a message, it checks the sending IP’s PTR record to verify that the IP is legitimately assigned to a known domain, reducing spoofing risks. Missing, mismatched, or incorrect PTR records are common reasons why emails end up in spam folders or are rejected outright.

Why PTR Records Matter for Email Deliverability

Think of the PTR as a digital fingerprint. If your sending IP doesn’t have a PTR record, or if it points to a domain that doesn’t match your sending hostname, email providers like Gmail and Outlook treat that as a red flag. This is because spoofing often relies on sending IPs without proper reverse DNS. Without it, your mail server looks suspicious — like a stranger showing up at a private event with no name tag.

Major ISPs and filtering services routinely check PTR records as part of their reputation scoring. A valid, consistent PTR setup is a baseline requirement for good sender reputation. According to RFC 1035 — the foundational specification for DNS — reverse DNS is explicitly defined as a way to correlate IPs with domains. While the protocol is ancient, its role in modern email delivery hasn’t changed.

Even if your domain has SPF, DKIM, and DMARC correctly configured, ignoring PTR can still sink your deliverability. The combination of all three is ideal, but PTR is often the overlooked piece. When your sending infrastructure lacks a valid PTR, you’re handing ISPs a reason to distrust you — even if your content is perfect and your list is clean.

How to Validate Your PTR Record

Let’s walk through a simple check. Ask: does your sending IP have a PTR record that resolves to your sending domain? For example, if your IP is 5.5.5.5, does 5.5.5.5.in-addr.arpa point back to mail.yourdomain.com? This check is usually done through your hosting provider or cloud services (AWS, Google Cloud, etc.), which manage reverse DNS permissions.

For teams using tools like SendGrid, Mailgun, or Amazon SES, PTR records are managed by the provider, but you still need to confirm it’s set up properly. If you're running your own mail server, you’re responsible for it. You can verify it using command-line tools like dig or online checkers like MxToolbox.

Don’t assume you’re safe just because your email sends. A single misconfigured or missing PTR can cost you inbox placement over time. Use tools like MailTester’s email checker to validate sending infrastructure health before you send — it checks for common red flags like missing PTR records, incorrect hostnames, or invalid DNS entries. Catching these early avoids wasted sends and protects your sender reputation.

Why Is the Sending Hostname Critical for Deliverability?

You can have a perfect domain, flawless SPF, and clean sender reputation—but if your sending hostname doesn’t resolve correctly or lacks a valid PTR record, recipient servers will reject your messages. This hostname is the first thing a receiving mail server checks during the SMTP handshake. Even if your domain is trusted, a weak or invalid sending hostname breaks trust at the protocol level and triggers filters.

The Sending Hostname Is the First Impression

When your mail server connects to a recipient’s server, it announces itself with a HELO or EHLO command. That name—your sending hostname—is logged in the email’s metadata and scrutinized by receiving systems. If the hostname doesn't match a real, resolvable domain, or if it lacks a reverse DNS (PTR) record, it’s treated as suspicious. Spam filters and security systems view this mismatch as a red flag, often flagging the entire sending session.

Let’s say your server uses smtp.example.com as the sending hostname. That name must resolve through DNS to an IP address that also points back to the same hostname via PTR. If you omit the PTR record or use a generic name like mail01.company.net, you create a mismatch. This isn’t just technical—it’s a reputational signal. Mail providers like Gmail and Outlook use this to assess trustworthiness early in the connection process.

Even Reputable Domains Can Fail Here

It’s a common mistake to assume a well-known domain will automatically pass. But your sending hostname lives independently of your branding. A corporate domain may be trusted, but if the hostname isn't verified with proper DNS alignment, your messages won’t pass initial checks. This is especially risky when using third-party services, where the sending hostname might be shared across thousands of senders. If someone else’s abuse affects the IP or hostname, you may suffer collateral damage.

One widely trusted source, the IETF's RFC 5321, defines the HELO/EHLO command as a foundational part of SMTP, requiring valid hostnames to prevent forged sender identities. RFC 5321 explicitly states that misconfigured hostnames should not be accepted. This isn’t guidance—it’s a rule. The most secure systems enforce it without exception.

If you're running campaigns at scale, verifying your sending hostname is part of your deliverability hygiene. Use MailTester’s email checker to validate both the syntax and DNS alignment of your sending hostname before sending. Ensure it resolves, has a matching PTR record, and isn’t associated with open relays or spam traps. It’s a small step—but one that keeps your inbox placement intact.

How Do PTR Records and Sending Hostnames Work Together?

You send email from an IP address. The recipient’s server checks if that IP has a reverse DNS (PTR) record, and whether that record resolves to a hostname matching your sending domain. If it doesn’t—no PTR or a mismatch—the email is treated as suspicious. This can trigger spam filters, hurt deliverability, or result in outright blocking.

Reverse DNS: The Server’s First Check

When you send an email from a specific IP, the receiving mail server performs a reverse DNS lookup. It asks: "Which domain does this IP belong to?" That query returns the PTR record associated with the IP. If there’s no PTR record, the server sees your email as coming from an unverified or anonymous source.

According to RFC 1918 and RFC 2317, properly configured reverse DNS is a standard part of internet infrastructure. A missing or incorrect PTR record undermines your sender credibility, even if other elements like SPF are correctly set.

Hostname Matching: The Final Verification

Even if a PTR record exists, it must point to a domain that matches your sending hostname—typically the domain you're sending from, like mail.example.com. If the PTR resolves to a different domain, like mail.vps-hosting.net, the server flags it as a sign of potential abuse.

Let’s say your email system sends from mail.example.com, but the PTR points to host123.somesharedhost.com. That mismatch signals someone might be spoofing their origin. Modern spam filters, including those used by Google and Microsoft, evaluate this inconsistency. The result? Your message may land in spam, be delayed, or blocked entirely.

Consistency between your sending hostname and reverse DNS is non-negotiable. It’s not a minor technical detail—it’s a signal of intent. You’re not just sending email; you’re announcing who you are.

If you’re managing bulk sends, verify your infrastructure’s alignment with real-world expectations. Use tools that check both your IP’s reverse DNS and how your sending hostname maps to it.

Before sending, test your setup with a real inbox placement tool. MailTester’s inbox placement tester simulates real delivery conditions across major inboxes. It checks whether your email reaches the inbox, not just the spam folder.

For high-volume senders, ensure your IP range has correct PTR records, and audit them regularly. You’re not just protecting deliverability—you’re protecting your sender reputation.

How to Check Your PTR Record and Sending Hostname Configuration

You can verify your reverse DNS and sending hostname by using dig -x <IP> in your terminal to check the PTR record for your sending IP. The returned hostname should match your mail server (like mail.yourcompany.com) and resolve back to your IP via an A record. If it doesn’t, email providers may reject or throttle your messages. Use tools like MxToolbox or MailTester’s inbox placement tests to validate real-world results.

Step-by-Step Verification Process

  1. Run dig -x <your-sending-IP> from your terminal. This queries the reverse DNS (PTR record) for your IP address. A properly configured mail server will return a hostname like mail.example.com.
  2. Check that the returned hostname resolves to your IP via forward DNS. Use dig mail.example.com or nslookup mail.example.com and confirm the A record points back to your sending IP. This round-trip validation is required by most major providers.
  3. Verify your hostname is tied to a legitimate domain. Your server’s hostname must be part of your domain (e.g., smtp.yourcompany.com), not a public cloud service or third-party host. Using a mismatched or generic hostname (e.g., server-123.hostingprovider.com) can trigger spam filters.
  4. Test in real-world conditions using inbox simulation tools. Tools like MxToolbox offer free DNS checks, but they don’t simulate actual delivery. For a realistic test, use MailTester’s inbox placement feature to see how your message lands in real inboxes across Gmail, Outlook, and Yahoo.

Why This Matters for Deliverability

When your PTR record doesn’t align with your domain and IP, spam scoring tools like Spamhaus or the Return Path network flag your IP as suspicious. You may get low inbox placement even with clean content. A well-paired PTR + forward DNS reduces the risk of being blocked by major providers.

Step-by-Step Verification ProcessThe 4 steps described in “Step-by-Step Verification Process”, in order.1Run dig -x from your terminal. This queries the reverse DNS (PTR record)for your IP address. A properly configured mail server will return ahostname like mail.example.com.2Check that the returned hostname resolves to your IP via forward DNS.Use dig mail.example.com or nslookup mail.example.com and confirm the Arecord points back to your sending IP. This round-trip validation isrequired by most major providers.3Verify your hostname is tied to a legitimate domain. Your server’shostname must be part of your domain (e.g., smtp.yourcompany.com), not apublic cloud service or third-party host. Using a mismatched or generichostname (e.g., server-123.hostingprovider.com) can trigger spam…4Test in real-world conditions using inbox simulation tools. Tools likeMxToolbox offer free DNS checks, but they don’t simulate actualdelivery. For a realistic test, use MailTester’s inbox placement featureto see how your message lands in real inboxes across Gmail, Outlook, an…
The 4 steps described in “Step-by-Step Verification Process”, in order.

According to industry standards (RFC 5321), proper reverse DNS is a core component of sender reputation. It’s not just a formality — it’s a foundational signal that you’re a legitimate sender.

“Consistent DNS alignment between PTR and forward DNS is a widely recognized best practice for maintaining sender trust.”

The Consequences of a Misconfigured PTR Record

When your PTR record doesn't match your sending hostname, ISPs see you as suspicious or anonymous. This leads to higher bounce rates, poor inbox placement, and a damaged sender reputation that can take weeks to fix—even after correction. You’re not just delaying delivery; you’re actively lowering trust with email providers.

Key Risks of an Incorrect PTR Record

  • High bounce rates from major ISPs due to connections being flagged as untrusted or originating from an unknown server.
  • Increased likelihood of messages being routed to spam folders or rejected silently—especially with Gmail and Outlook—because reverse DNS fails to validate your sending identity.
  • Higher chance of being blacklisted by services like Spamhaus or Cisco Talos, which use PTR mismatch as a signal of potential spam activity.
  • Damage to your sender reputation that can persist for days or weeks, even after the PTR is corrected. ISPs may continue to treat your IP with caution based on historical behavior.

Why This Matters in Practice

Let’s be clear: a broken PTR record isn’t a minor config quirk. It’s a red flag to email gateways. According to RFC 5321, the standard for SMTP, proper reverse DNS alignment is a foundational part of sender validation. Without it, your server can’t prove it’s not spoofing.

For example, if your email is sent from a host named mail.example.com but the PTR for your IP resolves to hosting-provider.net, that mismatch makes your message look suspicious. Gmail, Microsoft, and other providers will evaluate this during their rejection decisions. The result? Even valid messages may never reach the inbox.

If you're sending transactional or marketing emails at scale, this isn’t “just a technical detail.” It’s a delivery risk. You’re not just losing a few messages—you’re undermining the foundation of deliverability.

But there’s a solution. You can catch this before sending. Use a real-time verification tool to check the full sending context—hostname, IP reputation, and reverse DNS alignment—before every campaign. Try an inbox placement test to see how your messages land with real inbox providers, or verify individual addresses for correctness, including validity of the sending host relationship. For high-volume senders, integrate the verification API into your workflow to prevent misconfigurations from slipping through.

Why Sending Hostnames Must Match Your Brand Domain

Using a sending hostname that matches your brand domain—like mail.yourcompany.com—proves ownership, reduces spam suspicion, and strengthens authentication across SPF, DKIM, and DMARC. Generic names like smtp-01 or mail-server-123 scream automation or abuse, triggering filters at major providers like Gmail and Outlook. When your hostname reflects your actual domain, you build consistent sender identity, which systems like Return Path and Google’s postmaster tools use to assess trustworthiness.

Generic Hostnames Trigger Security Flags

Receiving email servers don’t just check the envelope sender—they inspect the connecting hostname. If you send from a host named mail-prod-7211.example.net, it looks like an unaffiliated third party or a compromised system. This mismatches expected patterns: real companies use predictable, branded hostnames tied to their DNS records. A hostname like smtp1.company.com may pass some tests, but it doesn't signal control or intent like mail.yourcompany.com does.

Mail servers use this information during reputation scoring. When your hostname doesn’t resolve to a legitimate domain or lacks a reverse DNS (PTR) record, it raises red flags. According to RFC 5321, the receiving server expects the sending host’s IP to have proper reverse DNS matching. Without that, the message may be flagged for inspection or outright rejected, especially if combined with other weak signals like a poor sender reputation.

Consistency Builds Sender Identity

When your sending hostname aligns with your domain, it creates consistency across all layers of email authentication. SPF records reference the sending domain; DKIM signs with a selector in that domain; DMARC policies enforce these checks. A mismatched hostname—say, using smtp.yourdomain.com when the domain is actually yourcompany.com—isn’t just inconsistent—it’s a technical inconsistency that breaks alignment between your email identity and your infrastructure.

Let’s say you send from mail.yourcompany.com with a valid SPF record for yourcompany.com. That’s clean. Your DKIM signature can be verified against your DNS records. DMARC reports will track alignment. Everything matches. If your sending hostname is something like mail123.zw02.net, even if SPF allows it, the lack of a branded reverse DNS record breaks the chain. Email providers see that as a risk signal.

Use tools like inbox placement tests to validate how your messages land—not just in spam folders, but how infrastructure elements like hostnames influence perception. A correctly configured hostname is one piece of the puzzle, but it’s a foundational one. You can’t verify email deliverability without it. Check your setup early: ensure mail.yourcompany.com resolves correctly in DNS and that the A record points to your sending IP, and the PTR record reflects that same domain.

What If You’re Using a Third-Party Email Service Provider?

You don’t need to manage your own PTR records or sending hostname if you’re using a provider like SendGrid or AWS SES — they handle it for you. But you must confirm they’re set up correctly and tied to your verified domain to avoid deliverability issues. Misconfiguration here can still cause bounces, spam filtering, or delivery delays, even with a reputable service.

How Providers Handle PTR and Sending Hostnames

Most reputable email service providers (ESPs) configure PTR records and sending hostnames automatically when you register your domain. For instance, SendGrid uses hostnames like mail.sendgrid.net, and AWS SES uses email-smtp.us-east-1.amazonaws.com. These names are tied to their IP pools, and the PTR records are aligned accordingly. The key is ensuring that your domain is properly verified in their system, so emails are sent under your identity and not a generic proxy.

Let’s say you’re using SendGrid. You’ll need to authenticate your domain in their dashboard, which then triggers the correct DNS configurations on their end. This includes linking your domain to their sending infrastructure via SPF, DKIM, and reverse DNS. If you skip this setup or use an outdated or incorrect hostname, emails may fail authentication or get marked as suspicious by receivers.

What You Should Verify

Even if the provider manages the technical setup, your job is to double-check a few things. Use tools like MXToolbox or Spamhaus to verify that the sending IP’s reverse DNS points to the expected hostname. You can also test delivery with inbound placement testing to see how your email performs across major providers like Gmail and Outlook.

Don’t attempt to self-host if you don’t control your DNS. The complexity of aligning PTR, SPF, and DKIM correctly is high, and a single mistake — like a mismatched hostname or missing record — can hurt sender reputation. It’s better to let your provider handle this unless you have deep infrastructure control and a managed DNS setup.

Even when delegation is managed, your overall deliverability depends on sender behavior. A high volume of hard bounces, spam complaints, or sudden spikes in sending volume can still trigger filters, regardless of reverse DNS. Use a service like bulk list verification to clean your list and maintain sender reputation, even when relying on a third-party provider.

How to Fix a Missing or Invalid PTR Record

Missing or invalid PTR records break email deliverability because they make your sending IP look suspicious to mail servers. You can fix this by asking your hosting provider, cloud service, or ISP to set the PTR record for your IP to a hostname in your brand domain. Then, ensure that hostname resolves back to the same IP via an A record. Test the setup with a real inbox placement test to confirm mail servers accept your messages.

Step-by-Step Fix

  1. Contact your provider — Your IP’s PTR record is controlled by your hosting provider, cloud platform (like AWS, GCP, or Azure), or ISP. You cannot set it directly from your server.
  2. Request a brand-aligned PTR — Ask them to set the PTR record for your IP address to a hostname in your domain, such as mail.yourcompany.com. This makes the IP’s reverse DNS align with your sending identity.
  3. Verify forward DNS — Ensure the hostname you set (e.g., mail.yourcompany.com) resolves to the same IP via a DNS A record. A mismatch breaks the chain and invalidates the PTR.
  4. Test with real mail servers — Use an inbox placement test tool to send a message from your IP and see if it reaches the inbox. This confirms whether mail servers now trust your sending identity.

Why This Matters

Mail servers check forward and reverse DNS as part of sender reputation. A mismatch or missing PTR record increases the odds your emails get filtered or blocked. According to RFC 5321, while PTR isn’t mandatory, it’s a key signal in modern spam filtering. Providers that enforce it (like Gmail, Outlook) use it to validate sending sources.

Step-by-Step FixThe 4 steps described in “Step-by-Step Fix”, in order.1Contact your provider — Your IP’s PTR record is controlled by yourhosting provider, cloud platform (like AWS, GCP, or Azure), or ISP. Youcannot set it directly from your server.2Request a brand-aligned PTR — Ask them to set the PTR record for your IPaddress to a hostname in your domain, such as mail.yourcompany.com. Thismakes the IP’s reverse DNS align with your sending identity.3Verify forward DNS — Ensure the hostname you set (e.g.,mail.yourcompany.com) resolves to the same IP via a DNS A record. Amismatch breaks the chain and invalidates the PTR.4Test with real mail servers — Use an inbox placement test tool to send amessage from your IP and see if it reaches the inbox. This confirmswhether mail servers now trust your sending identity.
The 4 steps described in “Step-by-Step Fix”, in order.

Even if your SPF, DKIM, and DMARC are correct, skipping PTR can still sink deliverability. It’s especially critical for bulk senders using static IPs. Many reputable email services, including Mailgun and Amazon SES, require proper PTR setup for high-volume sending.

Once configured, monitor results. Some providers take hours to propagate changes. If you’re still having issues, check that your sending hostname isn’t flagged as a known spam source. You can use MailTester’s inbox placement test to send from your IP and see whether real mail servers accept your messages—and why they might not.

Fixing the PTR record is a low-effort, high-impact step. It’s one of the most reliable ways to improve inbox placement, especially when paired with strong authentication and clean list hygiene.

Pro Tip: Use MailTester to Validate the Full Deliverability Chain

You can’t trust an email address just because it’s syntactically valid. MailTester goes beyond basic syntax checks by running real inbox placement tests across Gmail, Outlook, and Yahoo using actual mail servers. It tells you not just if an address exists, but whether your message will actually land in the inbox—or end up in spam or blocked entirely. Combine this with proper PTR and hostname verification to catch deliverability risks before they cost you engagement.

Real-World Testing, Real Results

Many tools check if an email address is format-correct or if it matches a known domain. But only MailTester simulates real sending conditions across major email providers. This means you’re not relying on guesswork or outdated filters—you’re seeing how your mail performs in live environments.

For example, Gmail and Outlook use complex scoring systems to decide whether to deliver, filter, or block messages. They consider not just the domain but the sending reputation, authentication setup (SPF, DKIM, DMARC), and the behavior of the sending server. Tools that don’t test against these real systems can give false confidence.

Automate the Full Audit

Let’s say you’re sending to a list of 10,000 contacts. You wouldn’t want to send to all of them without checking for invalid addresses, catch-alls, or risky domains. MailTester’s bulk verification feature checks individual addresses and flags those with deliverability red flags—including domains with poor sender reputation or high bounce rates.

Use the real-time API to validate addresses on signup, or use the inbox placement tester for campaign-level confidence. You can integrate directly with Mailchimp, HubSpot, Klaviyo, and SendGrid—ensuring your sending setup is clean at every stage.

When paired with correct reverse DNS (PTR) records and a validated sending hostname, you eliminate common delivery roadblocks. A mismatched or missing PTR record can trigger spam filters—even with valid addresses. You can test this setup through MailTester’s inbox placement service, which checks both syntax and authentication health.

Start with 100 free verifications—credits never expire. See how it works: bulk verification, real-time API, or inbox placement testing.

Conclusion: Trust Starts with DNS — Not Just Content

Deliverability isn’t decided by subject lines or send times. It’s rooted in technical fundamentals that email providers evaluate before a message is read.

A properly configured PTR record and a sending hostname that matches your domain signal legitimacy. These elements establish trust at the infrastructure level, directly affecting sender reputation.

Fixing them reduces hard bounces, improves inbox placement, and supports long-term sender health. They’re not optional — they’re the baseline of email trust.

Sources

Keep reading

Ready to put this into practice? MailTester verifies emails with 98.9% accuracy — start with 100 free verifications.

Frequently asked questions

What happens if my PTR record is missing?

Email servers may reject your messages or route them to spam. A missing PTR makes your IP appear anonymous, increasing the risk of blacklisting.

Can I set a PTR record myself?

No — PTR records are controlled by the network owner, typically your ISP or hosting provider. You must request the change.

Does every IP need a PTR record?

Yes, especially if sending email. Most major email providers require a valid PTR for inbound mail to be accepted.

What should my sending hostname be?

It should match your domain. For example, mail.yourcompany.com or smtp.yourcompany.com. Avoid generic terms like 'server1' or 'mailhost'.

Is a PTR record enough for deliverability?

No — it’s one part of a full deliverability chain including SPF, DKIM, DMARC, reputation, content quality, and list hygiene.

How do I test if my PTR record works?

Use `dig -x <your_ip>` in terminal, or check online tools like MxToolbox. Confirm the result returns your domain name.

Can I use MailTester to check PTR records?

MailTester doesn’t check DNS records directly, but its inbox placement tests reveal whether your configuration is accepted by real email providers.

Do I need a PTR record if I use a dedicated IP?

Yes — even dedicated IPs require a valid PTR record to avoid being flagged as suspicious by recipients and gateways.

What if my provider doesn’t support PTR records?

Consider switching to a provider that does — especially if you rely on consistent inbox delivery.

How long does it take to fix a PTR record?

After the change is made, propagation can take up to 24–48 hours. Confirm with a test message afterward.

Why does my hostname need to match my DNS?

Mismatched records confuse email servers. If the hostname doesn’t resolve to the same IP, it breaks the trust chain and harms deliverability.

Can a bad PTR record get my domain blacklisted?

Not directly, but it contributes to poor sender reputation. Over time, consistent issues can lead to IP or domain blacklists.