Web Development

SPF, DKIM and DMARC for Small Business: What They Are and How to Set Them Up

What SPF, DKIM and DMARC are, which of Google's Gmail sender rules apply to a small business, and the order to set them up in: list your senders, fix SPF, turn on DKIM, start DMARC at p=none, then test in Gmail.

zabil

8 menit membaca
Black envelopes sealed with gold wax stamps

Your enquiry form notifications, quotes and invoices all carry your domain name in the From address. Gmail and other mailbox providers want evidence that those messages really came from you. SPF, DKIM and DMARC are that evidence, published as three short lines of text in your domain’s DNS.

This guide explains what each one does, which of Google’s rules apply to a small business, and the order to set them up in. It is based on Google’s own help pages as read on 2 December 2026. They cover Gmail and Google Workspace. Other providers publish their own rules.

Do Google’s sender rules apply to a small business?

In part. Google’s Email sender guidelines say that all senders who email personal Gmail accounts (addresses ending @gmail.com or @googlemail.com) must set up SPF or DKIM. Senders who send more than 5,000 messages a day to Gmail accounts must set up SPF, DKIM and DMARC, and marketing mail must support one-click unsubscribe. Google’s FAQ counts that volume across your primary domain and says bulk sender status does not expire once it is assigned.

Most small businesses are nowhere near 5,000 messages a day, so DMARC is not strictly required for you. Google still says “we recommend that you always set up SPF, DKIM, and DMARC for your domains”. The practical reason is delivery. Google says messages that are not authenticated “might be marked as spam or rejected with a 5.7.26 error”, and its FAQ adds that from November 2025 “Gmail is ramping up its enforcement on non-compliant traffic”.

Two details are worth knowing. The guidelines apply to mail sent to personal Gmail accounts, and the FAQ says they do not apply to messages sent to Google Workspace accounts. And if your website sends mail with a From address ending @gmail.com, that is impersonating Gmail, which the guidelines say not to do. Use an address at your own domain.

What each record does

  • SPF is a DNS TXT record that lists the servers allowed to send email for your domain. Receiving servers check it. Google’s example for a domain that sends only through Google Workspace is v=spf1 include:_spf.google.com ~all. Google says an SPF record can have up to 10 include: tags and recommends ending it with ~all.
  • DKIM adds a digital signature to each outgoing message. The private key stays on the sending mail server and the public key sits in your DNS, so receiving servers can check that the domain owner really sent the message.
  • DMARC tells receiving servers what to do with messages that fail SPF or DKIM: deliver them, send them to spam (quarantine) or reject them. It can also ask them to send you reports. A message passes DMARC when SPF or DKIM passes and the domain that passed matches the domain in the From header. Google calls that match alignment.

Alignment is where small sites trip up. A contact form that sends through a generic server can pass SPF for the server’s own domain and still fail DMARC for yours. That is our reading, so test each sender.

Step 1: List every service that sends email as you

Google’s SPF page says your record should cover every sender: web servers, the mail servers your host uses, outbound gateways, services that send automatic email such as contact forms, and any third-party provider. For a typical small business that means:

  • your mailbox provider (Google Workspace, Microsoft 365 or your hosting company’s mail)
  • your website, for form notifications and booking or order emails
  • a newsletter tool
  • any booking, invoicing or CRM system that emails customers on your behalf

Ask whoever built your site what it sends mail through. Our guide to contact form emails that go missing explains why the website is so often the weak link.

Step 2: Check what already exists

Google’s SPF, DKIM and DMARC pages each say a free online checking tool can show whether a record already exists. Google says you may not need to set up SPF or DKIM if your domain already has them by default, or if you bought the domain from a Google partner when you signed up for Workspace. If you do not know where your DNS is managed, start with our domain, hosting and login checklist.

Step 3: Fix SPF

Sign in where your DNS is managed, usually your registrar or host, and add or edit one TXT record. Google says to enter @ as the host when the record is for the main domain, and the SPF string as the value. Some hosts want the value in quotes. Each domain that sends mail needs its own record, and so does each sending subdomain. Google says it can take up to 48 hours to start working.

Google’s page lists examples for common combinations, such as Google Workspace with Mailchimp, Shopify or Microsoft 365. Take the final record from your provider’s current instructions. Add a new sender to your existing SPF record rather than creating a second one. The SPF standard (RFC 7208) treats two SPF records on one domain as an error, although Google’s page does not spell that out. Google also says to remove senders you no longer use, and to update the record when you start using a new one, otherwise those messages could be marked as spam.

Step 4: Turn on DKIM

In Google Workspace the path is Admin console, Apps, Google Workspace, Gmail, Authenticate email. Select the domain, generate a new record, and choose a 2048-bit key if your domain provider supports it, or 1024-bit if not. The default selector is google. Add the TXT record at your DNS host, then turn on authentication. Google says that after you turn on Gmail you must wait 24 to 72 hours before the key can be generated, and the Admin console may keep showing a warning for up to 48 hours after you add it.

Sending to personal Gmail accounts needs a DKIM key of 1024 bits or longer, and Google recommends 2048 where possible. If another provider sends your mail, such as a hosting mailbox or a newsletter tool, that provider gives you the DKIM record to publish.

Step 5: Add DMARC, starting with p=none

Google says SPF and DKIM should be authenticating messages for at least 48 hours before you turn DMARC on, and warns that “messages sent from your domain will probably have delivery issues” if you skip them. The record is a TXT record with the host _dmarc.yourdomain.com. A minimal version of Google’s example is:

v=DMARC1; p=none; rua=mailto:[email protected]

Google says “we recommend setting the policy option (p) to none” when you start. With none, nothing is blocked and the reports tell you who is sending as your domain. Over time the policy can move to quarantine and then reject, and the optional pct tag lets you apply it to a share of messages first.

Reports can be frequent, so Google suggests a group or a dedicated mailbox rather than your own inbox, or a service that specialises in reading them. Leave the alignment settings at their default, which is relaxed. Google says relaxed alignment “typically provides sufficient spoofing protection”.

Moving to reject protects your name from being forged, but it can also block your own mail if a sender was missed. If nobody will read reports, staying on none is a reasonable place to stop, and Google’s guidelines say a bulk sender’s DMARC enforcement policy can be set to none.

Step 6: Test it

Send a test message from each sender (your mailbox, the website form, the newsletter tool) to a Gmail address you control. Open it, choose More next to Reply, then Show original, as described in Google’s Gmail header page. The top of that page shows the SPF, DKIM and DMARC results for the message, while Google’s help page covers how to open it. Whichever sender fails is the one to fix.

Google’s Postmaster Tools may show nothing for a small sender, because Google says dashboards might not include data when your volume to personal Gmail accounts is too low. Test messages are the practical check.

Common mistakes

  • A sender missing from SPF, usually the website or a newsletter tool.
  • Two SPF records on the same domain.
  • Switching DMARC to reject before the reports show every legitimate sender passing.
  • Changing mail provider or adding a booking system and not updating the records.

What this will and will not do

Google says authenticated messages are “less likely to be rejected or marked as spam by Gmail”. Less likely is not never, and authentication does not replace sending only to people who asked for your mail. If you send newsletters, see our guide to email marketing for small businesses. If you are moving mailboxes, our post on business email on your own domain covers the choices.

If DNS records are not something you want to edit yourself, tell us about your business and we can say whether it is something we can look after through our systems and technology work.

Karya terkait

Di mana ini telah diterapkan.

Departemen - SodraTech

Institusi & Organisasi

Departemen MIPA UNHAS

Universitas Hasanuddin

Website resmi departemen yang menyajikan informasi akademik, berita, dan kegiatan, dibangun agar staf dapat mengelolanya sendiri tanpa bantuan teknis.

Lihat Proyek
ITH - SodraTech

Institusi & Organisasi

Admission ITH

Institut Teknologi BJ Habibie

Platform pendaftaran mahasiswa baru yang menangani seluruh proses pendaftaran secara online, mulai dari pengisian formulir, unggah dokumen, hingga pembayaran awal.

Lihat Proyek
Kalimporo - SodraTech

Institusi & Organisasi

Desa Kalimporo

Desa Kalimporo

Platform profil desa yang menyajikan struktur pemerintahan, data kependudukan, potensi lokal, dan program desa kepada khalayak yang lebih luas.

Lihat Proyek

Baca lebih lanjut

Artikel terkait.

Tinggalkan komentar

Your email address will not be published. Required fields are marked *