Authenticate outgoing email
SPF authorizes sending sources. DKIM lets receiving systems verify a message signature. DMARC checks alignment with the visible From domain and publishes a policy.
Free domain setup guides for Google Workspace and Microsoft 365. Understand SPF, DKIM, DMARC, incoming replies, mailbox connections, and custom tracking DNS.
Free setup guides and DNS tools. No account or payment required. Make DNS changes with your domain administrator and keep a copy of the existing records.
SPF authorizes sending sources. DKIM lets receiving systems verify a message signature. DMARC checks alignment with the visible From domain and publishes a policy.
MX records route incoming mail to your mailbox provider. An authorized mailbox connection lets an application read replies through the provider API or IMAP.
A custom tracking hostname maps to an assigned tracking service. Tracking requires working HTTPS and application processing as well as DNS. It does not grant mailbox access.
DNS name fields vary. Some providers accept @ for the domain root and append the domain to a short name automatically. Avoid entering the domain twice.
TXT · Name: @ · TTL: 3600
v=spf1 include:_spf.google.com ~all
Google-only example. Publish one SPF record per sending hostname. Do not replace an existing multi-sender policy with this example.
Use Google’s own DKIM key for Google-managed signing. A private key from the public generator cannot replace Google’s managed key configuration.
Google SPF setupGoogle DKIM setupselector1._domainkey and selector2._domainkey. Use the exact tenant-specific targets shown in Defender; do not construct them from an example domain.TXT · Name: @ · TTL: 3600
v=spf1 include:spf.protection.outlook.com -all
Microsoft-only example. Preserve other legitimate senders in a single SPF policy. Microsoft sovereign-cloud environments can require different values.
Microsoft manages its DKIM private keys and rotation. Its two CNAME destinations are specific to your tenant and domain.
Microsoft SPF setupMicrosoft DKIM setupFirst confirm SPF or DKIM passes and aligns with the visible From domain for each legitimate sending service. A monitoring policy is a starting point for reviewing results; it does not request quarantine or rejection.
TXT · Name: _dmarc · TTL: 3600
v=DMARC1; p=none;
Monitoring-policy example without a reporting destination. This does not deliver aggregate reports. Add rua only with a real reporting mailbox or service you control; external recipients may require DNS authorization.
Keep one DMARC record at the policy hostname. Review legitimate sending sources before changing an existing policy or moving to quarantine or reject. Do not weaken an established enforcement policy just to match this example.
SPF, DKIM, and DMARC do not let an application read your mail. MX routes incoming messages; the authorized mailbox connection handles reply synchronization. Never put passwords, OAuth tokens, or private keys in DNS.
track.example.com, separate from the website and incoming mail hostnames.track and the assigned target. Use the connection flow’s TTL and proxy instructions; keep it DNS only unless the service explicitly supports proxying.A DNS alias alone does not record events. The tracking service must process requests and associate them with the correct account. Custom tracking does not require changing your mailbox MX records.
Tell us what you are working on. Let’s find a useful next step.