Table of Contents
- Why Email Security Settings Decide Who Reaches the Inbox
- The three layers of a safe sending stack
- SPF and DKIM as the Foundation of Email Authentication
- Publish SPF deliberately
- Publish DKIM and verify alignment
- Publishing DMARC and Moving From Monitor to Enforcement
- Read the reports before changing policy
- Move through enforcement in stages
- Hardening Delivery With BIMI, MTA-STS and Reverse DNS
- Build the transport-trust layer
- Protect the mailbox side
- Common Mistakes That Break Authentication in Production
- The second-order failures
- The Email Security Settings Diagnostic Workflow With mailX
- Run the checks in order
- FAQ and Next Steps for Your Email Security Setup
- Which email security settings should be prioritized first?
- How do AI agents fit into email authentication?
- How often should domains be audited?
- What should happen after the first audit?
Do not index
Do not index
The campaign looked healthy until the team checked the inbox. A product launch went to 40,000 recipients, but the sales inbox produced almost no replies. SPF failed, DKIM failed, DMARC wasn't published, and the domain's reputation started sliding before anyone reviewed the DNS records.
That isn't a copywriting problem. It's an email security settings problem. Authentication, transport security, mailbox access, and sending infrastructure all influence whether a receiving system accepts a message, filters it, or rejects it. The practical way to investigate that chain is to follow The Guide to Email Deliverability, then verify each layer with live checks instead of relying on assumptions.
Table of Contents
Why Email Security Settings Decide Who Reaches the InboxThe three layers of a safe sending stackSPF and DKIM as the Foundation of Email AuthenticationPublish SPF deliberatelyPublish DKIM and verify alignmentPublishing DMARC and Moving From Monitor to EnforcementRead the reports before changing policyMove through enforcement in stagesHardening Delivery With BIMI, MTA-STS and Reverse DNSBuild the transport-trust layerProtect the mailbox sideCommon Mistakes That Break Authentication in ProductionThe second-order failuresThe Email Security Settings Diagnostic Workflow With mailXRun the checks in orderFAQ and Next Steps for Your Email Security SetupWhich email security settings should be prioritized first?How do AI agents fit into email authentication?How often should domains be audited?What should happen after the first audit?
Why Email Security Settings Decide Who Reaches the Inbox
Mailbox providers tightened the baseline for bulk senders in February 2024, when Gmail and Yahoo began requiring SPF, DKIM, and DMARC at the minimum policy level of
p=none. That change made authentication a formal deliverability requirement rather than a recommendation. Senders that fail to authenticate correctly can face filtering, spam placement, or rejection, particularly when they send at scale. The change in DMARC adoption and sender requirements puts the operational point plainly: these records now form part of the trust infrastructure behind inbox access.The campaign above had three separate failures:
- Authentication failed: SPF and DKIM didn't prove that the sending systems were authorized.
- Policy was missing: Without DMARC, receiving systems had no published instruction for handling impersonation or authentication failure.
- Business impact followed: Fewer legitimate messages reached recipients, so the team lost replies, pipeline, and trust in the domain.

The three layers of a safe sending stack
Authentication answers, “Did an authorized system send this message?” SPF authorizes sending infrastructure. DKIM attaches a cryptographic signature. DMARC checks alignment between those results and the visible From domain, then applies a policy.
Transport answers, “Was the message exchanged over a trusted path?” Reverse DNS, TLS, MTA-STS, and TLS reporting help receiving systems evaluate the infrastructure and encryption path. These controls won't repair a missing DKIM signature, but they can reduce separate transport risks.
Mailbox access answers, “Can an unauthorized person or application send as this domain?” Hardware-key or TOTP-based two-factor authentication, restricted forwarding, secure SMTP submission, and controlled app access protect the accounts behind the domain.
A practical security review should follow that order. Start with SPF and DKIM, publish DMARC in monitor mode, inspect the reports, then harden transport and mailbox access. Teams that use AI for security planning can also find useful AI prompts on security topics, provided a human verifies every proposed DNS or access change before publishing it.
SPF and DKIM as the Foundation of Email Authentication
SPF and DKIM solve different problems, and a reliable domain needs both.
An SPF record is a DNS TXT record listing the services and hosts authorized to send for a domain. A DKIM signature proves that an authorized sending system signed the message and helps receiving systems detect content changes during delivery. Since Gmail and Yahoo tightened bulk-sender requirements in February 2024, missing or broken authentication can directly affect inbox placement.
Publish SPF deliberately
Begin with a complete inventory of legitimate senders, including transactional infrastructure, marketing platforms, CRM systems, support software, and automated workflows. Add only active providers. An SPF record with multiple
include statements can become fragile because SPF allows no more than 10 DNS lookups during evaluation. The SPF lookup limit and PermError behavior explain why an apparently valid record can fail once vendor sprawl pushes it over the ceiling.A safer process is:
- Remove duplicate or retired sender entries.
- Check that the domain has one SPF record, not several.
- Count DNS-querying mechanisms such as
include,a,mx,ptr,exists, andredirect.
- Keep the record limited to active infrastructure.
- Test a real message after every provider change.
Avoid broad authorization shortcuts. A record that appears permissive may authorize more infrastructure than the team can govern, increasing spoofing and reputation risk.
Publish DKIM and verify alignment
Generate a strong DKIM key through the sending provider, publish its public key under the provider's selector, and confirm that outbound messages contain a valid signature. Selector names often identify the sending system, such as
mail2026 or transactional, but the label matters less than consistent rotation and ownership.The key test isn't merely whether DKIM passes. The
d= signing domain must align with the visible From domain when DMARC evaluates the message. SPF has a similar alignment requirement through the authenticated Return-Path or envelope domain. A message can pass SPF and DKIM individually yet fail DMARC if both authenticate different domains.Dimension | SPF | DKIM |
What it authorizes | Sending hosts and services | A signing domain and message signature |
Where it lives | DNS TXT record | DNS public key plus a message header signature |
What can break it | Multiple records, too many lookups, stale includes | Content changes, gateway modification, selector errors |
Critical deliverability test | Return-Path alignment with From | d= alignment with From |
For teams still treating SPF as a box-ticking exercise, why broken SPF sends you to spam is the operational question worth answering first. The fix is not “add more providers.” It is to make every authorized sender identifiable, aligned, and testable.
Publishing DMARC and Moving From Monitor to Enforcement
DMARC is the policy layer. It tells receiving systems what to do when SPF and DKIM don't produce an aligned result, and it gives the domain owner visibility into legitimate and unauthorized sending.
Start with a TXT record at the DMARC location using
p=none and an aggregate reporting address in rua. Monitor mode collects reports without asking receiving systems to quarantine or reject mail. That makes it the correct starting point for a domain with unknown vendors, forwarding paths, or automated senders.Read the reports before changing policy
An aggregate report usually identifies the reporting receiver, source IP, SPF result, DKIM result, and alignment outcome. The team should group those records by sender and ask four questions:
- Is the source legitimate? If not, investigate it as possible spoofing or unauthorized infrastructure.
- Does SPF pass? Check both authentication and alignment with the visible From domain.
- Does DKIM pass? Verify the selector, signature, and aligned
d=domain.
- Is reporting configured correctly? A missing or incorrect
ruaaddress leaves the team without a useful view of drift.
Legitimate sources should be aligned through SPF or DKIM. Unknown sources should be removed, isolated, or investigated before policy becomes stricter. A practical mailX deliverability tips resource can help teams interpret the report data without confusing authentication pass with alignment pass.
Move through enforcement in stages
A sensible policy sequence looks like this:
- Monitor with
p=none: Collect aggregate reports and map every sender.
- Test quarantine with a limited percentage: Once alignment is clean for two weeks, use a small
pctvalue and inspect the effect.
- Increase enforcement gradually: Raise the percentage as legitimate traffic continues to pass.
- Use
p=reject: Apply rejection only after all approved senders and forwarding paths are understood.
The
sp tag controls subdomains, while rua is used for aggregate reports. ruf and fo can support forensic or failure reporting, although receiving systems may limit or omit those reports for privacy and operational reasons.
Jumping directly to reject is reckless when vendors remain undiscovered. It can block the company's own invoices, onboarding messages, or campaign mail. Enforcement should be the result of observed alignment, not optimism.
Hardening Delivery With BIMI, MTA-STS and Reverse DNS
Authentication establishes who sent the message. Transport and trust controls make the delivery path more credible and protect the systems that handle it. These upgrades matter after SPF and DKIM are aligned, not before.
Build the transport-trust layer
Reverse DNS should be configured first for a dedicated sending IP. The PTR record should resolve to a stable sending hostname, and that hostname should resolve back consistently. Missing or inconsistent reverse DNS can cause outbound SMTP systems to distrust the connection or an infrastructure provider to reject the relay request.
MTA-STS publishes a policy that tells supporting receiving systems to use TLS when delivering mail to the domain. The team should publish the policy at the correct domain scope, test it in testing mode, review failures, and then use enforcement once the receiving mail path is ready. Mixing an apex policy with a subdomain assumption creates blind spots.
TLS-RPT sends reports about TLS negotiation and delivery failures. Those reports are useful because a message can have perfect SPF and DKIM while the transport path still fails or falls back unexpectedly.
BIMI publishes a verified SVG logo for display in supporting inboxes. It isn't a replacement for authentication. It becomes meaningful only after DMARC reaches a strong enforcement posture, typically quarantine or reject, and the logo certificate and SVG meet the receiver's requirements.
A safe publication order is:
- PTR first: Establish a credible identity for dedicated sending infrastructure.
- MTA-STS next: Define the expected encrypted delivery behavior.
- TLS-RPT after that: Collect evidence about handshake and policy failures.
- BIMI last: Add brand visibility after DMARC enforcement is stable.
Self-signed certificates, incorrect policy hostnames, and IPv6 paths without matching PTR records can undermine the whole layer. The team should test both the published record and a real delivery path rather than assuming that DNS presence means enforcement.

Protect the mailbox side
Outbound records don't protect a compromised administrator account. Hardware-key or TOTP-based two-factor authentication should be mandatory for administrators, marketing operators, developers, and every account that can send as the domain. A stolen password should not be enough to create a new forwarding rule or send a malicious campaign.
Administrators should also:
- Require authenticated submission: Limit SMTP submission to authenticated sessions using port 587 with TLS 1.2 or higher.
- Retire legacy logins: Replace old IMAP password flows with controlled app passwords or modern authenticated access where supported.
- Disable external auto-forwarding: Forwarding can leak sensitive messages and hide attacker persistence.
- Audit inbox rules: Look for rules that delete replies, redirect invoices, or conceal security notifications.
- Review OAuth grants: Remove applications that retain sending or mailbox access without a current business need.
- Enable anti-phishing controls: Use the mail system's preset phishing, malware, spoofing, link, attachment, and inbound-connector protections.
- Set retention and credential reviews: Expire old credentials, preserve relevant audit logs, and remove former staff and abandoned integrations promptly.
These controls protect replies, customer data, account recovery messages, and transactional workflows. A domain can have excellent DNS records and still lose trust if an attacker uses a valid mailbox to send authenticated abuse.
Common Mistakes That Break Authentication in Production
The basic setup is easy to describe. Production failures happen after the setup, when vendors change, gateways modify messages, and new automation gets added without an authentication review.
The second-order failures
SPF PermError is the classic example. A company adds several platforms, each with its own
include, and eventually exceeds the 10 DNS-lookup ceiling defined for SPF evaluation. The result can be a PermError for messages from that domain. The repair is to retire unused vendors, simplify the authorization path, and use a controlled design that stays within the lookup budget.DKIM can break after a message leaves the original sender. Mailing-list footers, security gateways, aliases, and other content changes can invalidate the body hash. A message may pass at the first hop and fail after modification. Test the message as received by the target mailbox, not only inside the sending provider's dashboard.
Alignment can fail even when authentication passes. The visible From domain, DKIM
d= domain, and SPF Return-Path domain must be reviewed together. If the signing or envelope domains belong to a different organizational domain, DMARC can fail despite individual SPF and DKIM checks showing pass.Vendor sprawl creates silent drift. Old DNS entries authorize systems no one remembers, while new vendors send from domains that aren't covered by the intended policy. Every new sender should have an owner, a documented purpose, a tested DKIM selector, and a removal date.
AI sending introduces another path. An agent can compose a correct message and still damage the domain if it sends through an unauthenticated API, uses the wrong From domain, or bypasses a dedicated subdomain. Agents need live checks for SPF, DKIM, DMARC alignment, blacklist status, DNS changes, and sending authorization before a campaign launches.

The Email Security Settings Diagnostic Workflow With mailX
A repeatable diagnostic should prove that the stack works in production, not merely show that records exist in DNS.
Run the checks in order
- Pull the DNS layer: Check SPF, DKIM selectors, DMARC, MTA-STS, BIMI, MX, TXT, CNAME, and PTR records. Record missing, duplicate, stale, and malformed entries.
- Inspect SPF complexity: Count DNS lookups, remove retired senders, and confirm that the record has a single authoritative policy.
- Send a signed test message: Deliver it to a controlled inbox and capture the
Authentication-Resultsheader.
- Verify DKIM directly: Confirm the selector resolves, the signature passes, and the
d=domain aligns with the visible From address.
- Parse DMARC reporting: Review source systems, alignment outcomes, unauthorized senders, and the
ruadestination.
- Test transport: Check MTA-STS mode, TLS reporting, SMTP connectivity, and reverse DNS for dedicated infrastructure.
- Check reputation signals: Review blacklist status and investigate any listed domain or IP before sending another campaign.
- Audit access: Enforce 2FA, remove stale accounts, inspect forwarding rules, and revoke unnecessary OAuth grants.
A combined diagnostic layer can reduce the manual switching between raw DNS, mail headers, network checks, and reputation screens. mailX runs live checks across SPF, DKIM, DMARC, BIMI, MX, DNS, TXT, CNAME, PTR, SMTP and IMAP connectivity, blacklist status, domain configuration, and email infrastructure. It returns plain-English explanations and remediation steps rather than only raw records.
The useful cadence depends on operational risk. High-volume teams should review authentication and reporting weekly. Smaller senders can use a monthly review, with an immediate audit after any ESP, CRM, DNS provider, domain, or automation change. Every audit should end with an owner for each fix and a retest after DNS propagation settles.
FAQ and Next Steps for Your Email Security Setup
Which email security settings should be prioritized first?
SPF and DKIM alignment come first, followed by DMARC monitoring and enforcement. A correct
p=quarantine policy is more valuable than adding a BIMI logo while authentication remains incomplete.How do AI agents fit into email authentication?
Agents inherit the sending domain's authentication and reputation risks. Before an agent sends, its workflow should verify the authorized sender, DKIM signing, DMARC alignment, blacklist status, and the destination infrastructure. mailX is API and MCP ready, so these checks can be included in automated workflows through connect mailX to an AI agent through MCP.
How often should domains be audited?
High-volume senders should check weekly. Senders managing fewer than 50,000 messages can generally use a monthly rhythm, while any ESP, CRM, DNS, or sending-identity change warrants an immediate check. The threshold is a practical operating guide, not a guarantee.
What should happen after the first audit?
Fix SPF PermErrors and DKIM alignment first. Review DMARC reports, tighten the policy once legitimate senders are consistently aligned, then add MTA-STS, TLS reporting, BIMI, and stronger mailbox controls. Inbox placement is an operating system that needs maintenance, not a one-time DNS task.
Use mailX to run a free live audit across authentication, DNS, blacklist status, SMTP, IMAP, and email infrastructure. Get clear explanations and exact remediation steps, then retest the domain before the next campaign or AI-driven sending workflow goes live.
