SPF, DKIM and DMARC Explained: Email Security for Small Businesses

Learn how SPF, DKIM and DMARC protect your business email from spoofing. A practical setup checklist for small businesses using a custom email domain.

SPF, DKIM and DMARC Explained: Email Security for Small Businesses

Email is one of the main ways a small business communicates with customers, suppliers and employees. It is also a common route for phishing and business email compromise. Attackers can impersonate a company’s domain to make fraudulent messages look genuine. Email authentication helps receiving mail systems check whether a message is authorised to use your domain.

Three important standards work together: SPF, DKIM and DMARC. This guide explains what each one does, how they fit together and how a small business can begin configuring them safely.

Why email authentication matters

If your business sends email from an address such as hello@yourcompany.com, criminals may try to send messages that appear to come from your domain. Email authentication gives receiving providers signals they can use to identify authorised senders and detect some forged messages. It reduces domain spoofing risk, but it does not stop every phishing attack or guarantee inbox delivery.

The US Federal Trade Commission recommends that businesses using their own email domain check that their provider supports SPF, DKIM and DMARC. Google also publishes authentication requirements for messages sent to Gmail accounts.

1. What is SPF?

Sender Policy Framework (SPF) is a DNS TXT record that identifies which mail servers are authorised to send email for a domain. When a receiving mail server checks a message, it can compare the sending server with the domain’s SPF policy.

Example: If your business uses one email provider, that provider will usually give you the exact SPF TXT value to publish in your domain’s DNS settings. Follow the provider’s instructions rather than copying a generic SPF record from another website.

  • Ask your email provider for its official SPF record.
  • Publish the value as a TXT record at the DNS host for your domain.
  • Make sure every legitimate service that sends email for your domain is accounted for.
  • Keep only one SPF record for a given domain name. If you add another sender, update the existing record according to provider guidance instead of creating a second SPF TXT record.

2. What is DKIM?

DomainKeys Identified Mail (DKIM) adds a cryptographic signature to outgoing email. The receiving server can use the public key published in your domain’s DNS to check the signature. This helps verify that the signing domain authorised the message and that signed parts of the message were not changed in transit.

Your email provider normally generates the DKIM key and gives you the DNS record details. Depending on the provider, you may need to publish a TXT or CNAME record and then enable DKIM signing in its control panel. Use the exact hostname, selector and value supplied by your provider.

3. What is DMARC?

Domain-based Message Authentication, Reporting and Conformance (DMARC) builds on SPF and DKIM. It checks whether at least one authentication method passes and is aligned with the domain shown in the visible From address. DMARC also lets a domain owner publish a policy telling receiving systems how to handle messages that fail DMARC checks, and where to send aggregate reports.

DMARC policies commonly use three settings:

  • p=none — monitor results without asking receivers to quarantine or reject failing messages.
  • p=quarantine — ask receivers to treat failing messages as suspicious, often by placing them in spam or quarantine.
  • p=reject — ask receivers to reject messages that fail DMARC.

For a new deployment, businesses commonly begin with a monitoring policy and review reports before moving to enforcement. Do not switch directly to quarantine or reject until you have identified all legitimate services that send mail using your domain. A rushed policy can disrupt invoices, contact forms, newsletters and other genuine messages.

SPF vs DKIM vs DMARC: what is the difference?

StandardMain purposeWhere it is configured
SPFLists authorised sending sourcesDNS TXT record
DKIMVerifies a cryptographic email signatureEmail provider plus DNS record
DMARCChecks domain alignment, sets handling policy and enables reportsDNS TXT record

How SPF, DKIM and DMARC work together

Think of the three standards as complementary checks. SPF asks whether the sending server is authorised for the envelope-sender domain. DKIM checks a signature associated with a signing domain. DMARC checks whether a passing SPF or DKIM result aligns with the visible From domain and publishes the domain owner’s policy.

Because forwarding and third-party email platforms can affect authentication results, it is important to test real messages from every service your business uses. A message can pass SPF but fail DMARC alignment, for example, if the authenticated envelope domain does not align with the visible From domain.

A practical setup checklist for a small business

  • List every sender: include your mailbox provider, website contact forms, invoicing software, CRM, newsletter platform and support desk.
  • Check existing DNS: review current TXT records before making changes. Avoid deleting records you do not understand.
  • Configure SPF: use the exact value from your email provider and consolidate authorised senders into one SPF record.
  • Enable DKIM: publish the provider’s selector record and confirm that signing is enabled.
  • Publish DMARC carefully: start with a monitoring policy if you are not yet sure all legitimate senders are authenticated. Add a reporting mailbox or service you can actually monitor.
  • Test each sender: send messages to test mailboxes and inspect the Authentication-Results details in the received headers.
  • Review reports: investigate unknown sources and legitimate services failing authentication before tightening the DMARC policy.
  • Maintain records: document which provider owns each DNS value and review the setup whenever you add or change an email service.

How to check your email authentication

Send a test message to a mailbox you control, open the message details or original headers, and look for authentication results such as spf=pass, dkim=pass and dmarc=pass. The exact display depends on the email provider. A pass result for one message does not prove every email source for your domain is configured correctly.

You can use our Email Header Analyzer to inspect raw email headers and review the authentication results reported in them. It parses the header text you provide; it does not independently verify the sender or authenticate the message. For DNS records, use our DNS Record Checker to look up public TXT records. DNS results may be cached and should be interpreted with your provider’s setup instructions.

Common mistakes to avoid

  • Publishing multiple SPF records for the same domain.
  • Copying another company’s SPF or DKIM values instead of using your provider’s records.
  • Forgetting website forms, marketing tools or invoicing platforms that send mail as your domain.
  • Enforcing a strict DMARC policy before identifying all legitimate senders.
  • Assuming SPF, DKIM and DMARC stop phishing emails sent from unrelated or lookalike domains.
  • Assuming a message is safe simply because one authentication check passes. Always review the sender, context, links and attachments.

Frequently asked questions

Do small businesses need SPF, DKIM and DMARC?

They are strongly recommended for businesses sending email from their own domain. The FTC recommends checking that your provider supports all three. Google requires at least SPF or DKIM for all senders to Gmail, and additional requirements apply to bulk senders.

Does SPF stop someone from spoofing my visible From address?

SPF alone does not fully protect the visible From address because it checks the envelope-sender domain. DMARC adds alignment checks using SPF and DKIM to help address this gap.

Should I set DMARC to reject immediately?

Not unless you have confirmed that all legitimate sending services are correctly authenticated and aligned. Start by monitoring, review reports, fix failures and then move gradually to an enforcement policy.

Will email authentication guarantee that my messages reach the inbox?

No. Authentication helps receiving systems verify sender legitimacy, but delivery also depends on reputation, message quality, recipient engagement, provider rules and other factors.

Where do I get the correct DNS records?

Get SPF and DKIM values from the email provider that sends your messages. Follow its instructions for the exact record type, hostname and value. Your DNS host is where you publish the records; it may be different from your email provider.

Official references

This guide is for general educational purposes. DNS and email-provider settings change, so always follow the current documentation from the services that send email for your domain. If you manage multiple sending platforms or a high-volume mail system, have the configuration reviewed by a qualified email administrator.

Put it into practice

20+ free security tools. No sign-up, nothing to install.

Keep reading