Setting up SPF, DKIM and DMARC
The three records that decide whether your mail is trusted. I set them up for all your senders at once, let DMARC get stricter safely and explain what is there, so you can follow it yourself later.
- One dedicated contact
- Reply within a few hours
- 15+ years of experience
SPF
One record with all your senders, under the limit of ten DNS lookups.
DKIM
A signature for every service that sends for you, including Microsoft 365 with selector1 and selector2.
DMARC
From p=none through quarantine to reject, based on the reports, not guesswork.
Documented
A short overview of which record is for what, for you or your next administrator.
What the three records do
SPF is a list in your DNS of servers allowed to send for your domain. DKIM puts a digital signature on every email, which the receiver checks with a key in your DNS. DMARC ties those two to the address the receiver sees, says what should happen when an email fails (nothing, spam or reject) and lets receivers send you a daily report.
Only all three together protect you from people sending as if they were you, and make Gmail and Microsoft trust your mail.
Where it often goes wrong
- A second SPF record added for the newsletter service: then both are invalid
- Too many includes: more than ten DNS lookups gives a permerror
- DKIM never enabled in Microsoft 365 because the CNAME records were missing
- Going straight to DMARC p=reject, after which invoices from the accounting tool no longer arrive
- Shop or form mail going out via the web server without being listed anywhere
For which services
I set it up for any combination I come across, for example:
- Microsoft 365, Google Workspace and Proton Mail
- Mail with your hosting: TransIP, Strato, Hostnet, Antagonist, Vimexx, one.com, or DirectAdmin, Plesk and cPanel
- Newsletters: Mailchimp, Brevo, MailerLite
- Shop and accounting: WooCommerce via SMTP, Moneybird, Exact, e-Boekhouden and others that send for you
Good to know
Is your question not here? Feel free to send me a message.
What does it cost to have SPF, DKIM and DMARC set up?
From €149 per domain, one-off. That includes reviewing the DMARC reports in the first weeks, so I can make DMARC stricter safely. Extra domains with the same setup cost less.
What is the difference between p=none, quarantine and reject?
With p=none nothing happens to failing mail, but you do get reports. With quarantine such mail goes to spam, with reject it is refused. You start with none, check in the reports that all your own mail passes, and then move step by step to reject.
What does "SPF too many DNS lookups" mean?
An SPF record may look up another DNS name at most ten times during the check (include, a, mx, redirect). Beyond that the record is invalid. I fix that by removing needless includes or moving senders to a subdomain.
Can I do this myself?
Certainly, and the free email check shows what is missing. With several senders, or if you want to go to reject without risk, it helps to have someone who does this often.
Say hello
A question, an idea or a job? I reply usually within a few hours, between 08:00 and 20:00.