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.
- Send an email from your company address to a Gmail address.
- Open the email in Gmail, click the three dots and choose Visa original (Show original).
- 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.