Mode Marketing
Client guide Email infrastructure

Reference · cheat sheet

Email infrastructure · SPF, DKIM, DMARC

A plain-English explainer of the four DNS records that decide whether your business email lands in the inbox or the spam folder. Plus the right values to set at the main UK email providers.

If your business email is going to spam · or worse, getting silently rejected · the cause is almost always one of four DNS records: MX, SPF, DKIM, DMARC. Together they tell the receiving server: "this email really is from the person it claims to be from."

Gmail and Microsoft both tightened the rules in 2024: if you send more than 5,000 emails a month to Gmail addresses, DMARC is no longer optional. Even at lower volumes, missing or wrong records cost you deliverability quietly · the recipient doesn't know to check spam, you don't know your message never arrived.

01What each record does

Each record solves a different problem. They work as a chain · skip one and the others can't carry the full load.

RecordPlain EnglishWhat happens if missing
MX Where inbound mail to @yourdomain.com should be delivered. You can't receive email.
SPF Which servers are allowed to send mail as @yourdomain.com. Anyone can spoof your address. Mail flagged or rejected.
DKIM A cryptographic signature on every message your server sends. Receivers can't verify the message wasn't tampered with in transit.
DMARC The policy: "if SPF or DKIM fail, do this." Plus reports. Receivers fall back to their own guesswork. Spoofers exploit your domain.

02MX records

MX (Mail eXchange) records point your domain at the servers that should receive inbound mail. You add them at your DNS host (your registrar or wherever your nameservers point). One MX record per receiving server; priority numbers control fallback order (lower = tried first).

Google Workspace
Host: @ (root) Type: MX Priority: 1 Value: smtp.google.com
Microsoft 365 (Exchange Online)
Host: @ (root) Type: MX Priority: 0 Value: yourdomain-com.mail.protection.outlook.com

(The exact yourdomain-com part appears in your Microsoft 365 admin panel under Domains.)

Hostinger / cPanel mail (on the same host as your site)
Host: @ (root) Type: MX Priority: 0 Value: mx1.hostinger.com Priority: 5 Value: mx2.hostinger.com
Important Only ONE provider's MX records should be active at a time. Delete the old MX records when migrating · having both Google Workspace and your old cPanel mail in MX simultaneously will silently drop messages.

03SPF · Sender Policy Framework

SPF is a single TXT record at your domain root that lists every service authorised to send mail as @yourdomain.com. The receiving server reads this list, checks where the message actually came from, and rejects (or flags) anything not on it.

Google Workspace only
Host: @ (root) Type: TXT Value: v=spf1 include:_spf.google.com ~all
Microsoft 365 only
Host: @ (root) Type: TXT Value: v=spf1 include:spf.protection.outlook.com -all
Google Workspace + a marketing platform (Mailchimp + Stripe)
Host: @ (root) Type: TXT Value: v=spf1 include:_spf.google.com include:servers.mcsv.net include:_spf.stripe.com ~all
Two rules to know Only ONE SPF record per domain. Multiple SPF records break SPF entirely (RFC requires a single record). If you use Google for email + Mailchimp for newsletters + Stripe for receipts, all three include: directives go in the same SPF record.

~all = soft fail (mark suspicious, deliver anyway). -all = hard fail (reject). Microsoft recommends -all. For most clients on Google, ~all is safer during setup, then move to -all after a month of clean DMARC reports.

04DKIM · DomainKeys Identified Mail

DKIM is a cryptographic signature your mail server adds to every outgoing message. The receiving server fetches your public DKIM key (via DNS) and uses it to verify the message wasn't altered in transit · and that it really came from your domain. It's published as a TXT record at a specific subdomain (called a "selector").

Google Workspace · selector "google"
Host: google._domainkey Type: TXT Value: (Google generates this · ~250 characters starting v=DKIM1; k=rsa; p=...)

Generate at admin.google.com → Apps → Google Workspace → Gmail → Authenticate email → Generate new record. 2048-bit recommended.

Microsoft 365 · two selectors (selector1 + selector2)
Host: selector1._domainkey Type: CNAME Value: selector1-yourdomain-com._domainkey.tenantname.onmicrosoft.com Host: selector2._domainkey Type: CNAME Value: selector2-yourdomain-com._domainkey.tenantname.onmicrosoft.com

Generate at security.microsoft.com → Policies → Email authentication → DKIM. Microsoft uses two selectors so it can rotate keys without downtime.

Hostinger Mail Three CNAME records: hostingermail-a._domainkey, hostingermail-b._domainkey, hostingermail-c._domainkey. Auto-generated when you create the domain in Hostinger; just add the CNAMEs at your DNS host.

05DMARC · Domain-based Message Authentication, Reporting + Conformance

DMARC ties SPF and DKIM together with a policy. It tells receiving servers what to do when a message fails SPF or DKIM checks · ignore it (none), flag it (quarantine), or reject it. It also opts you in to daily aggregate reports from every major receiver, so you can see who's sending mail as you.

DMARC · sensible starting policy
Host: _dmarc Type: TXT Value: v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com; ruf=mailto:dmarc@yourdomain.com; fo=1; adkim=r; aspf=r
DMARC · after one month of clean reports
Host: _dmarc Type: TXT Value: v=DMARC1; p=quarantine; pct=25; rua=mailto:dmarc@yourdomain.com
DMARC · enforcement (target state)
Host: _dmarc Type: TXT Value: v=DMARC1; p=reject; rua=mailto:dmarc@yourdomain.com
The three policies p=none = report only, deliver anyway. Use first.
p=quarantine = send failed messages to spam. Use after reviewing reports for a month.
p=reject = reject failed messages outright. Use only when you're confident every legitimate sender is on SPF / DKIM. Mandatory for high-volume Gmail senders since 2024.
Reading DMARC reports · the raw XML reports landing in your dmarc@ inbox are unreadable. Use dmarcian.com (free up to 50k mails/month) or postmark.com/dmarc · they parse the reports and tell you in plain English which senders are passing, failing, and where to investigate.

06How to check it's working

Three free tools cover 95% of email-deliverability diagnosis. Run them after any DNS change.

  1. mxtoolbox.com · paste your domain into the SuperTool. Checks MX, SPF, DKIM, DMARC, blacklist status. Free, instant, no signup. Bookmark this.
  2. mail-tester.com · gives you a one-time send-to address. Send a real email from your actual mail client to that address. Mail-tester scores deliverability out of 10, breaks down exactly which records are wrong, and shows whether the message body trips spam filters.
  3. dmarcian.com · point your DMARC rua reports at the dmarcian inbox they provide. Their dashboard then visualises who's sending as you. Free tier covers most Mode-client volumes.
Mode's role We audit these records as part of any pre-flight or new-build engagement. If anything's wrong we'll either fix it ourselves (if we have DNS access) or send you the exact values to paste. We don't bill for this · it's table stakes.

Our commitment

What we'll do with email infrastructure