When your email lands in spam, three DNS records are often the reason. What they do, and how they work together.
Anyone can send an email with your domain as the sender. A receiving mail server cannot tell from the message itself whether that is true. So it looks at three records in your domain's DNS: SPF, DKIM and DMARC. If they are missing or wrong, your mail lands in spam more easily.
SPF: who may send on your behalf
SPF is a TXT record with a list of servers that may send email for your domain, for example your mail provider and your newsletter service. A common mistake: SPF may do at most ten DNS lookups while it is checked. Add many services and you go over that quickly, and then the check fails.
DKIM: a signature on every message
With DKIM your mail server puts a digital signature on every message. The matching public key is in your DNS, under a name like selector._domainkey.yourdomain.com. The receiver uses it to check that the message really comes from your domain and was not changed on the way.
DMARC: what should happen when it fails
DMARC ties the two together. It tells receivers what to do when a message does not pass SPF or DKIM, or when those do not match the sender address: do nothing (none), put it in spam (quarantine) or refuse it (reject). You can also ask for reports, so you see who sends mail on behalf of your domain.
Where do you start?
- Make sure SPF names every service that mails on your behalf, and stays within the ten lookups.
- Switch on DKIM at your mail provider and at your newsletter service.
- Start DMARC at none, with reports, and move to quarantine or reject only when everything is right.
At dnscheck.info you check all three at once, with an explanation for every finding.