Before you start
Write down every service that sends email with your domain as the sender: your email at Loopia, the newsletter, the web shop, the accounting software that sends invoices. Each service must be in your SPF record. Otherwise their email can be blocked when you tighten DMARC.
First, test how things look today with our DMARC test.
1. SPF: which servers may send
- Log in to Loopia Kundzon (the customer zone).
- Click the domain name, then DNS-editorn (the DNS editor).
- Click @ to add a new record on the domain itself.
- Choose type TXT. Keep the TTL the same as for the other records under @, usually 3600.
- Enter the value with straight quotation marks around it, as Loopia specifies:
"v=spf1 include:kundspf.loopia.se -all"
- Click Lägg till (Add).
The value above applies when Loopia’s email is the only service sending in your name. If more services send, add their include to the same record, for example "v=spf1 include:kundspf.loopia.se include:_spf.google.com -all". There may only be one SPF record per domain. Two records cancel each other out.
It can take up to 24 hours before the change shows everywhere.
2. DMARC: reports only, at first
DMARC lives on the name _dmarc under the domain, not on @. If your email is with Loopia, the record already exists: Loopia adds a TXT record on _dmarc with the value "v=DMARC1; p=none". Change it instead of adding a second one:
- Click
_dmarcin the DNS editor, then the TXT record. - Replace the value in the Data field with this (change it to your own address), and save:
"v=DMARC1; p=none; rua=mailto:dmarc@ert-foretag.se"
If there is no _dmarc, for example because your email is hosted elsewhere: add the subdomain _dmarc and a TXT record under it with the same value.
p=none does not block anything yet. It asks receiving servers to send reports to the address in rua, so you can see which servers send email in your name.
3. Tighten in steps
Read the reports for two to four weeks. When only your own services show up, and they pass SPF or DKIM:
- Change to
p=quarantine. Fake email then lands in the spam folder. - After a few more weeks without problems, change to
p=reject. Fake email is then blocked completely.
Only change the value in the same record. Never add a second DMARC record.
Check that it works
Run the DMARC test or Can someone fake your domain? again. Also send an email to a Gmail address and look at the headers. They should say spf=pass and dmarc=pass.
Is your domain at One.com instead? Read SPF and DMARC at One.com.
Rather have us do it?
We set up SPF, DKIM and DMARC for a fixed price, 2 900 SEK excl. VAT, and check that your own email still gets through. Order Email protection on site.
Sources: Loopia’s help pages on SPF and on TXT records in the DNS editor. The menus may be named slightly differently if Loopia changes Kundzonen.