SPF, DKIM and DMARC Explained: Stop Your Email Going to Spam
Are your emails landing in spam? Do customers get fake emails that look like they came from you? Three small records in your DNS can help. They are called SPF, DKIM and DMARC. You do not need to be an expert. This guide explains each one and how to set them up step by step.
Why this matters
Anyone can write your address in the “From” line of an email. Mail providers know this. So they check whether a message is really allowed to come from your domain. If your domain has no proof, your real emails may go to spam, or be rejected. Big providers now expect these records, especially if you send many emails.
What each record does
- SPF is a list of the servers that may send email for your domain. Think of it as a guest list at the door.
- DKIM adds a hidden digital signature to each message. It proves the message was not changed on the way. Think of it as a wax seal.
- DMARC tells receivers what to do when a message fails the SPF or DKIM check, and it sends you reports. Think of it as the door rule: let in, mark as spam, or turn away.
Where these records live
All three are TXT records in your domain’s DNS. A TXT record is a small piece of text stored with your domain. Where you add it depends on who manages your DNS. If your domain uses the Sulserv nameservers, ns1.sulserv.com and ns2.sulserv.com, we manage it for you. Open a ticket from your client area and ask us to add the records. If your DNS is at another company, add them there.
Step 1: Build your SPF record
- List everything that sends email as your domain: your hosting mailboxes, a newsletter tool, an online shop, a help desk.
- Open the free Sulserv SPF and DMARC generator.
- Enter your domain and your sending services as the tool asks.
- Copy the record it creates. It starts with v=spf1.
- Add it as a TXT record for your domain.
Important: a domain can have only one SPF record. If you add a second one, SPF breaks. Put all your sources in the same record.
Step 2: Set up DKIM
DKIM uses a key pair. The mail server keeps a private key and signs each message. You publish the matching public key in DNS. Your email provider or your hosting support gives you the DKIM record to add. Ask in a ticket if you are not sure where to find it for your Sulserv hosting. If you also send through a newsletter or shop tool, each tool has its own DKIM record to add.
Step 3: Add DMARC
- Use the same generator to create a DMARC record.
- Start with the gentle policy p=none. This only watches and reports. It does not block anything.
- Add it as a TXT record named _dmarc.
- Read the reports for two to four weeks. Fix any real sender that fails.
- When all your real mail passes, move to a stricter policy such as quarantine, then reject.
Step 4: Test
- Wait for DNS to update. It can take up to 48 hours, but often it is much faster.
- Send a test email to a mailbox you can check.
- Open the message details and look for SPF, DKIM and DMARC results marked as “pass”.
Common mistakes
- Two SPF records instead of one.
- Forgetting a service that sends mail for you, such as your newsletter tool.
- Going straight to a strict DMARC policy and blocking real mail.
- Typing errors. Copy and paste instead of typing.
Also check that your mail server is not on a blocklist. Our email blacklist checker can help. And if you do not yet have email on your own domain, read our guide on setting it up first.
FAQ
Do I need all three?
Yes. Together they give mail providers the proof they look for.
Can a wrong record stop my email?
A wrong SPF or a strict DMARC policy can block real mail. That is why you start gentle and test.
How long until my mail stops going to spam?
The records help right away once DNS updates. Reputation also matters, so send useful, wanted mail.
I use a free address like Gmail. Do I need this?
No. These records are for your own domain.