Guide

How to check SPF, DKIM and DMARC yourself

You need no tools beyond your computer. One command shows whether your domain has SPF and DMARC, and the email headers show whether DKIM works.

By Erik Lindqvist, WebbLarm · 10 November 2026 · 5 min read

Open Terminal or Command Prompt

  • Mac: open the Terminal app.
  • Windows: search for cmd and open Command Prompt.

Replace ert-foretag.se with your domain in the commands below.

SPF

nslookup -type=txt ert-foretag.se

Look for a line that starts with v=spf1. It lists which servers may send email for you.

  • No line with v=spf1: SPF is missing.
  • Two lines with v=spf1: this is an error. There must be only one, otherwise neither works.
  • The line ends with -all or ~all: good. It means other servers are not approved.
  • The line ends with +all: this is an error. It approves every server in the world.

DMARC

nslookup -type=txt _dmarc.ert-foretag.se

Look for a line that starts with v=DMARC1.

  • No answer: DMARC is missing. Receiving servers do not know what to do with fake emails sent in your name.
  • p=none: DMARC exists but does not stop anything yet. Fine as a start, but it should be tightened.
  • p=quarantine or p=reject: fake emails go to spam or are blocked.

DKIM

DKIM is harder to look up. The record sits under a name that only your email provider knows. The easiest way is to look at an email you have sent.

  1. Send an email from your company address to a Gmail address.
  2. Open the email in Gmail, click the three dots and choose Visa original (Show original).
  3. At the top you see the results for SPF, DKIM and DMARC. All three should show PASS.

What do I do if something is missing?

The records are added in your domain’s DNS, usually at your web host or whoever manages your domain. Start DMARC with p=none and tighten it in steps, as we describe in the guide What is DMARC? If your domain is at Loopia or One.com, the guides DMARC at Loopia and SPF and DMARC at One.com show exactly where to add the records.

If you want someone else to handle it, email protection is included in Åtgärd.

Would you rather we checked? It is free.

Enter the address and your email. The result arrives by email within five minutes.

By email within five minutes: what anyone can see from the outside about HTTPS, email protection, server and plugins, and what is still hidden. Free.

0 SEK · public information only

By sending you confirm that you represent the website. We only use your address to reply. Privacy policy (Swedish).