Skip to content
Back to the blog

SPF, DKIM and DMARC: authenticate your domain email

Inventory every sender, publish provider-specific DNS records and verify alignment before enforcing a stricter DMARC policy.

  • email
  • SPF
  • DKIM
  • DMARC
  • DNS

When you send from hello@example.com, the receiving system needs to check whether the server that delivered the message is authorised to use your domain. SPF, DKIM and DMARC are related checks, but they are not interchangeable. Changing them before listing every sender can break a legitimate invoice, form notification or campaign.

List every system that sends as your domain

Write down every service that sends with your domain: mailboxes, website forms, billing, bookings, newsletters, CRM and application notifications. For each one, record the visible From address, the service that delivers the message and the exact DNS values supplied by that service. Save a copy of your current DNS zone. Do not replace real values with examples from an article.

Mechanism What it checks What to locate
SPF Whether the sending server is authorised for the SMTP identity being checked. The current SPF TXT record and every authorised sender.
DKIM Whether the message still has a valid cryptographic signature associated with a domain. The key and selector supplied by each sending service.
DMARC Whether SPF or DKIM passes and aligns with the visible From domain; it also publishes policy and reporting preferences. The record under _dmarc and an address prepared to receive reports, if requested.

Google requires all senders to Gmail to authenticate with SPF or DKIM; senders sending more than 5,000 messages per day to Gmail must set up SPF, DKIM and DMARC. It also recommends aligning the visible domain with the authenticated domain. These are Gmail requirements, not a delivery guarantee or a universal rule for every recipient. Check Google’s current sender requirements.

Publish each provider’s values, not a universal recipe

A domain must have a single applicable SPF policy. If one already exists, do not add another TXT record beginning v=spf1: merge the new provider’s authorisation into the existing record, or ask for help consolidating them. SPF returns a permanent error if a lookup selects multiple records. Do not copy an include: from another domain or remove services that still send. (RFC 7208, section 3.2)

Each DKIM service can use a different selector. Publish the key at the exact DNS name supplied by that service, commonly under selector._domainkey; do not change the key, selector or record parts yourself. Changing signed content or the sending system can affect verification.

DMARC is a TXT record at _dmarc.example.com. The current specification is RFC 9989, which replaced RFC 7489 in May 2026. Monitoring mode (p=none) lets you observe without asking receivers to quarantine or reject messages. Identify and fix every legitimate sender before tightening policy: stricter handling can affect messages that do not align. Reports also require an address that can receive and review them.

Check DNS and a real message

Replace example.com with your domain and selector with the selector supplied by your provider. These commands read DNS; they do not change records:

dig TXT example.com
dig TXT selector._domainkey.example.com
dig TXT _dmarc.example.com

Then send a test message from each service to a mailbox you control. In Gmail, open it and select Show original. Check SPF, DKIM and DMARC, and verify that the authenticated domain aligns with From. If you forward messages, test the forwarded destination too: forwarding can change SPF results. A pass authenticates a domain; by itself it does not guarantee inbox placement or that a message is wanted (RFC 9989).

If you choose Hostbrid email, the panel shows the records for its setup flow. Self-service setup requires Hostbrid DNS; you can keep your registrar and website at their current providers if you copy the zone first. See using email without transferring your domain. Do not reuse another account’s values or assume that third-party senders are configured.

Manage your sites, servers and email.

Forgot your password?

Free, and it takes a minute.

At least 8 characters. Not all digits, not a common one.

We'll email you to confirm the account.