SPF, DKIM and DMARC explained in plain English
The three records that decide whether your email reaches the inbox or the spam folder, what each one does, and how KubeMail sets them up for you.
Anyone can write any address in the From line of an email, the same way anyone can write any return address on an envelope. Spammers and scammers rely on that. So Gmail, Outlook, Yahoo and every other provider check incoming mail for proof that it really comes from the domain it claims. That proof lives in three records in your domain's settings: SPF, DKIM and DMARC.
Since 2024, Gmail and Yahoo require them from anyone sending in volume. Without them, your mail is far more likely to land in spam, or to be refused.
SPF: who is allowed to send
SPF (Sender Policy Framework) is a list, published in your domain's DNS, of the servers allowed to send mail for your domain. When a message arrives, the receiving provider checks whether the server that delivered it is on the list.
Think of it as a guest list at the door. It only checks the server, not the message, and it can break when mail is forwarded. That's why it isn't enough on its own.
DKIM: a signature on every message
DKIM (DomainKeys Identified Mail) adds a digital signature to every message you send. The matching public key is published in your DNS, so the receiving provider can check two things: that the message was signed by your domain, and that nobody changed it on the way.
Think of it as a wax seal. If the seal is intact and matches your stamp, the letter is genuine.
DMARC: what to do when the checks fail
DMARC (Domain-based Message Authentication, Reporting and Conformance) ties the two together. It tells receiving providers what to do with a message that claims to be from your domain but fails SPF and DKIM:
p=none: deliver it anyway, just report it. A good place to start.p=quarantine: put it in spam.p=reject: refuse it.
DMARC also checks alignment: the domain that passed SPF or DKIM has to match the domain in the From line your customers see. This is what actually stops someone else from sending mail that looks like yours.
How KubeMail sets them up
When you add a domain to KubeMail, you get these records to copy into your DNS settings, each with a copy button:
- DKIM: a TXT record at
km1._domainkeywith a signing key generated just for your domain. Every message you send through KubeMail is signed with it. - Return-path: a CNAME record at
bounces. It makes SPF pass and align for mail sent through KubeMail, without changing the SPF record you already have for your domain. - DMARC: a TXT record at
_dmarc, starting withp=noneso nothing you send gets blocked while you check that everything passes. - MX, if you also want to receive mail in KubeMail mailboxes.
KubeMail checks the records for you and shows each one as verified once it's live. Most domains are done within minutes.
Beyond the records
The records prove your mail is yours. Whether it lands in the inbox also depends on how you send:
- Only send to people who asked to hear from you, and make unsubscribing easy (KubeMail adds a one-click unsubscribe link to campaigns).
- Remove addresses that bounce. KubeMail does this automatically and stops sending to them.
- Grow volume gradually. Going from zero to tens of thousands of emails in one day looks like spam to providers.
Want to set it up? Create an account and add your domain, or read how to get a professional email address on your own domain.
Professional email on your own domain
Webmail, an iPhone app and newsletters, from $2 per mailbox a month.
Create your business email