Business email hosting in Nepal · Pay with eSewa, Khalti or connectIPS support@nepalcloud.host +977 9769683142
Security

SPF, DKIM and DMARC: What Each Record Does

A plain-language guide to email authentication: which senders are authorised, how messages are signed, and how to introduce a DMARC policy safely.

Three records, three different jobs

SPF, DKIM and DMARC help receiving systems evaluate whether a message is associated with the domain it claims to use. They work together, but they do not make an email address immune to abuse. They also do not guarantee inbox placement or encrypt the message contents.

MethodWhat it checksWhat you publish
SPFWhether the sending server is authorised for the envelope-sender domain.A TXT record listing authorised sending sources.
DKIMWhether a domain signature verifies against the message.A public key, commonly published using TXT or a provider-supplied CNAME.
DMARCWhether a passing SPF or DKIM result aligns with the visible From domain.A TXT policy at _dmarc.

Start with a sender inventory

Before editing DNS, list every service that sends as your domain: team email, invoices, website notifications and any other authorised systems. Each legitimate sender needs a supported authentication arrangement. Adding only your main mailbox host can leave other services out.

Ask each service for its current account-specific DNS instructions. Do not copy an SPF include or a DKIM selector from another business.

Keep SPF to one record

Publish one SPF record for the same hostname. When several senders are authorised, their requirements belong in a single correctly constructed record. Separate SPF records can produce a permanent error. SPF also has DNS-lookup limits, so a long chain of third-party includes needs checking.

Changing the visible From address alone does not determine whether SPF aligns for DMARC. The envelope-sender domain matters too.

Publish DKIM exactly as supplied

Your sending service signs outgoing messages using a private key. The receiving service checks the corresponding public key in DNS. The selector identifies which key to look up. Keep that selector and record value exactly as supplied, and ensure signing is enabled at the sending service.

A record existing in DNS is not enough on its own. Send a real message and inspect whether the receiver reports a valid signature for the intended domain.

Introduce DMARC without breaking legitimate mail

DMARC adds domain alignment and a requested policy for messages that fail the check. A monitoring policy can help you understand your senders before moving to quarantine or reject. Review reports and fix legitimate systems first. The right timing depends on your domain and sending services.

Set up a reporting destination you actually control and consider the data it receives. A strict policy added without an inventory can disrupt invoices, forms or other legitimate correspondence.

Test the result, not just the record

Send to an independent mailbox and inspect the full headers or authentication results. Check the visible From domain, SPF domain, DKIM signing domain and DMARC result. Repeat for each authorised sending service.

Authentication is one part of delivery. Sender reputation, complaints, recipient settings and content still influence how a receiving service handles mail. See the delivery troubleshooting guide if authenticated messages are still being filtered.

References

References checked 19 October 2026. This guide explains general setup principles; account-specific settings may differ.