Sub topic 4
Domain and IP: what reputation attaches to
This chapter assumes you know how SPF, DKIM and DMARC work at a basic level, and that you can read a DNS record and a raw message header. The previous chapters covered how a message travels and how authentication proves a claim. Here the question is which identity a mailbox provider attaches its judgment to once the claim is proven.
Why identity matters
A mailbox provider cannot judge a message in isolation. It judges the history of whoever sent it. Reputation is a record kept against an identifier: an IP address, a domain name, or a related key such as a network range. The provider looks up those identifiers, finds what it has seen from them before, and uses that history to predict what the new message is likely to be.
This has two consequences:
- Reputation exists only for identifiers the provider can recognize reliably. Authentication is what makes the identifiers trustworthy, because without it anyone could claim your domain.
- Different identifiers carry different amounts of weight. Knowing which one a given provider emphasizes tells you where to look when placement drops.
The identifiers a message exposes
One message carries several identities at once. Filters read all of them.
| Identity | Where it appears | How it is established | Typical use by receivers |
|---|---|---|---|
| Connecting IP | The TCP connection | Whoever controls the sending server | Connection checks, blocklists, per-IP reputation |
| Reverse DNS and HELO name | PTR record, SMTP `EHLO` | DNS set by the IP owner | Sanity check that the sender is a configured mail server |
| Envelope sender (Return-Path) | SMTP `MAIL FROM` | SPF checks it | Bounce handling, SPF-based domain reputation |
| DKIM signing domain | `d=` tag in the DKIM signature | Valid signature from a published key | Domain reputation that follows the message across IPs |
| Visible From domain | `From:` header | DMARC alignment against SPF or DKIM | What the recipient sees, so what complaints are tied to |
| Link domains | URLs in the body | Chosen by the sender | Reputation of destinations and tracking hosts |
DMARC is what connects the table. A message passes DMARC only when SPF or DKIM passes and the passing domain aligns with the visible From domain. So the From domain, the one recipients see and report, can be tied to a technically verified identity.
IP reputation
IP reputation is the history of a specific sending address. It is the oldest form of reputation and still matters most at the connection stage, before any message content is transferred.
What counts as "the IP"
Providers rarely track only a single address. Two grouping behaviors cause surprises:
- Neighboring addresses. A bad pattern across several addresses in one IPv4 /24 block can lower trust in the whole block, especially if the block is new or unknown.
- IPv6 prefixes. A single sender can use an enormous number of IPv6 addresses, so providers usually track reputation at a prefix, often a /64 or wider, instead of per address.
The sketch below shows the grouping idea. The exact prefix lengths each provider uses are not published, so treat /24 and /64 as common working assumptions.
import ipaddress
def reputation_bucket(ip: str) -> str:
"""Return the network a provider might group this address into."""
addr = ipaddress.ip_address(ip)
prefix = 24 if addr.version == 4 else 64
return str(ipaddress.ip_network(f"{ip}/{prefix}", strict=False))
print(reputation_bucket("203.0.113.25")) # 203.0.113.0/24
print(reputation_bucket("2001:db8:abcd:12::5")) # 2001:db8:abcd:12::/64Shared and dedicated IPs
On a shared IP, many customers of an email service provider (ESP) send through the same addresses, so everyone's behavior blends into one history. Dedicated IPs give you your own history.
| Row | Shared IP | Dedicated IP |
|---|---|---|
| Reputation source | Pooled across customers | Only your own sending |
| Effect of a neighbor's mistake | You can be affected | None |
| Effect of your own mistake | Spread across the pool, partly absorbed | Lands entirely on you |
| Volume needed | Works at low volume | Needs steady volume to build a signal |
| Warm-up | Mostly handled by the ESP | You must do it (see the warm-up chapter) |
A dedicated IP is not automatically better. A low-volume sender on a dedicated address gives providers too little data to trust, so the address stays near an unknown state. A good shared pool can outperform it.
Reverse DNS and HELO
Receivers check that the connecting IP has a PTR record, and that the name resolves back to the same IP. This is called forward-confirmed reverse DNS. Missing or mismatched records are a cheap signal of an unmanaged or compromised host. You can check both directions yourself:
# Reverse lookup for the sending IP (documentation address, replace with yours)
dig +short -x 203.0.113.25
# Expected: mail.example.com.
# Forward lookup must return the same IP
dig +short A mail.example.com
# Expected: 203.0.113.25If the second command does not return the IP from the first, fix DNS before looking at anything else. Also make sure the name in your server's EHLO greeting matches.
Domain reputation
Domain reputation attaches to a name, not an address. It travels with you. If you change IPs or ESPs but keep the same DKIM-signed From domain, the history comes along.
This is why providers increasingly weight domains heavily. IPs are cheap to rotate. A spammer can abandon a burned address in minutes. A domain with years of consistent, wanted mail is much harder to fake, so a domain history is a stronger trust signal when it exists. Gmail in particular has said its postmaster tools focus on domain reputation. Other providers weigh IP and domain differently, and none publish the formula.
Which domain, specifically
The same message can produce several domain identities, and they need not match:
- The From domain is what the recipient sees.
- The DKIM
d=domain is the signer. If your ESP signs with its own domain, your own domain gets little authenticated history, and the ESP's domain carries the reputation instead. - The Return-Path domain is where bounces go. ESPs often set it to their own domain.
When all three are your domain, or aligned subdomains of it, the reputation you build is yours. Configuring a custom DKIM signature and a custom Return-Path through your ESP is what moves history from the provider's domain onto yours.
; Your DKIM key, published under your own domain, so signatures use d=example.com
selector1._domainkey.example.com. IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqh...(truncated)..."
; A custom bounce domain pointing at the ESP, so the Return-Path is yours
bounce.example.com. IN CNAME bounces.esp.example.net.The hostnames and key are placeholders. Your ESP documents the exact records it needs.
Subdomains
Many senders split traffic by subdomain, for example news.example.com for marketing and billing.example.com for transactional mail. The benefit is isolation: a complaint spike on marketing mail is less likely to drag down password resets. Two limits apply:
- Providers may attribute subdomains to the parent organizational domain, especially for a new subdomain with no history. The parent's reputation can influence it.
- A new subdomain starts without its own history. It needs the same careful ramp-up as a new IP.
Do not treat subdomains as a way to escape a bad record. Providers watch for that behavior and it tends to fail.
Link and tracking domains
The domains inside your message count too. A shared tracking domain from an ESP carries the pooled reputation of all its users. A custom tracking domain on your own subdomain keeps link reputation yours. A URL shortener adds the reputation of the shortener, which is often poor because abusers use them heavily. Chapter material on content and links covers this further. For identity purposes, the point is that a link domain is another place a history can attach.
Putting it together: which identity to check first
When you debug, work from the identity that the provider most likely uses at that stage:
- Connection refused or blocked at SMTP time. Look at the IP, its network range, PTR and blocklist listings.
- Accepted but landing in spam, with good authentication. Look at the From and DKIM domains and the content or link domains.
- Problems after switching ESPs or IPs. The domain history carried over but the IP history did not, so compare the two.
- Problems only on one mail stream. Check whether that stream shares a subdomain, tracking domain or IP pool with a stream that is doing badly.
Key points
- Reputation attaches to identifiers: IP addresses and their network ranges, and domains used in From, DKIM, Return-Path and links.
- Authentication, and DMARC alignment in particular, is what lets a provider trust that an identifier really belongs to the sender.
- IP reputation matters most at connection time and is pooled on shared IPs and grouped by range.
- Domain reputation follows you across IPs and ESPs, so aligning your own domain in DKIM and Return-Path puts the history under your control.
- Subdomains help isolate streams but do not hide you from the parent domain.
Exercise
Your company moves from one ESP to another and keeps the same From domain and DKIM key published under its own domain. Two weeks later the new ESP's shared IPs deliver well in most places, but a mailbox provider that blocks at connection time rejects some mail. Which reputation was carried over, which was not, and what should you check first?
Show answer
The domain reputation carried over, because the DKIM-signed From domain is unchanged. The IP reputation did not, because the sending addresses are new and the receiver sees a different network range. Check the new IPs first: their PTR and forward DNS match, their blocklist status, and the rejection text from the provider, which usually names the policy that failed. Then check whether other customers on the same pool have a poor history.
Exercise
Your ESP signs your mail with d=esp.example.net and uses bounces.esp.example.net as the Return-Path, while your From domain is example.com. What identity gains reputation from your good sending, and what change would shift that history to your own domain?
Show answer
Mostly the ESP's domains gain or lose reputation, because they are the authenticated signing and bounce domains, and your From domain has little authenticated history of its own. Configure custom DKIM so the signature uses d=example.com, and a custom Return-Path such as bounce.example.com, so SPF and DKIM align with your From domain under DMARC.