Two questions we hear most often are closer to each other than they look. The first one is why a message sent by the company ended up in the recipient's spam folder. The second one is how to make sure nobody can send fraudulent email using the company domain. The answer to both rests on three DNS records that say who may send email on behalf of your domain and what the recipient should do when verification fails.
This text is written for a company where email is managed by one person from IT or by an external supplier, and where nobody has time to read specifications. At the end there is a checklist that takes a few hours of work.
Three records and what each of them solves
SPF says which servers may send
SPF (Sender Policy Framework, described in RFC 7208) is a text record in the DNS of your domain. It lists the servers and services allowed to send email on behalf of the domain. The important part is that SPF is checked against the address in the message envelope, meaning what the mail servers tell each other, not against the address the recipient sees in the From field. On its own it therefore does not stop sender spoofing.
DKIM proves the message came from an authorised server and was not modified
DKIM (DomainKeys Identified Mail, RFC 6376) is a signature over the message headers and body. The sending server signs with a private key and the public key is published in DNS under a selector. The recipient verifies the signature and learns that the message really left the domain in the signature and was not changed on the way. For email sent to Gmail accounts, Google requires a key of at least 1024 bits and recommends 2048 bits.
DMARC connects both and says what to do on failure
DMARC (Domain-based Message Authentication, Reporting and Conformance) builds on SPF and DKIM and adds the two things they lack. The first is alignment, the requirement that the domain the recipient sees in the From field matches the domain verified by SPF or DKIM. The second is policy, the instruction to the recipient on what to do when verification fails: nothing (p=none), deliver to spam (p=quarantine), or reject (p=reject). Reports come with it, and they tell the domain owner what is being sent in the name of the domain.
Since May 2026 DMARC has been described in RFC 9989, which replaced the original RFC 7489 from 2015 and is the first version at Proposed Standard level, meaning an approved IETF standard. Nothing changes overnight for an ordinary company, but when reading older documentation it helps to know that the current description is RFC 9989 and that some parameters from the original version are no longer part of the standard. Ask your supplier which specification they follow when building the record.
How to check your own domain
- List everything that sends email in your name. It is not only the mail service. It includes invoicing, the ERP system, the online shop, booking and attendance systems, the CRM, newsletter delivery, monitoring, the multifunction printer and the external marketing agency. An outdated list is the most common reason why an otherwise correct setup does not hold: an SPF record written two years ago does not know about a tool adopted this year.
- Look at what is actually in DNS. A text record on the domain starting with v=spf1, a text record on _dmarc.yourdomain starting with v=DMARC1, and DKIM public keys under the selectors documented by your mail provider.
- Send a test message from every system on the list to a mailbox at Gmail, at Outlook.com and at a local provider, and look at the headers of the received message. The Authentication-Results header shows whether spf, dkim and dmarc passed for that message and for which domain. This is the only test that measures exactly what your systems do.
- Turn on DMARC reports (the rua parameter in the record) and let them run for a few weeks. Only then will you see the senders you do not know about.
- Tighten the policy gradually. Start at p=none, fix everything that fails in the reports, and only then move to quarantine and to reject. Tightening before the clean-up reliably drops your own legitimate email, typically from the invoicing or booking system.
Why public tools often rate the provider, not you
Public checking tools that return a grade or a score for a domain run a large part of their tests against the mail server the MX record points to. If the company has email in Microsoft 365, in Google Workspace or with a hosting provider, that is the provider's infrastructure: TLS and DANE support, server version, reputation of the sending addresses. It is useful to know, but it says nothing about your own configuration and you cannot change it either.
What does say something about you is the content of the SPF record, the existence and policy of DMARC, a valid DKIM signature on a message you really sent, domain alignment, and a reverse DNS record for your own sending servers. When the other side sends you the output of a public test as proof that your DNS is wrong, split the findings into two groups. The first group you fix yourself; for the second one the right response is a question to the provider, not rewriting your DNS. Treat the overall score as a hint. It is not a standard and no recipient requires it.
What large providers require from senders
| Recipient | Requirement |
|---|---|
| Gmail | Since 1 February 2024, all senders need at least SPF or DKIM, valid forward and reverse DNS records, a TLS connection, a spam complaint rate below 0.3 per cent and message formatting according to RFC 5322. Above 5 000 messages per day, SPF and DKIM and DMARC are all required (p=none is enough), together with domain alignment in the From field and one-click unsubscribe for marketing email. |
| Outlook.com, hotmail.com and live.com | Since May 2025, domains sending more than 5 000 messages per day need SPF to pass, DKIM to pass and DMARC at least at p=none aligned with SPF or DKIM. Microsoft rejects non-compliant messages with the error 550 5.7.515. |
| Czech provider Seznam, service Email.cz | Valid SPF and DKIM records are required for delivery; without them a message may be delivered to spam or discarded. DMARC is strongly recommended. |
The threshold of 5 000 messages per day looks high, but it applies to the domain, not to a single user, and automated email from internal systems counts towards it. A company with fifty people and an active online shop crosses it easily.
Domains you never send from
Most companies hold more domains than they use: an old brand, a typo variant, a domain inherited from an acquisition, a domain used only for the website. If no email leaves them, give them an SPF record that authorises nobody and DMARC with a reject policy. You close a convenient path for an attacker to write using a name your customers recognise, and you risk nothing by doing so.
When the setup is correct and messages still do not arrive
Sender authentication is a condition, not a guarantee. The other half is reputation. Sending addresses and domains are tracked by low reputation lists, for example the Spamhaus SBL list for malicious address ranges, PBL for addresses that should not send email at all, and DBL for domains with low reputation. With a shared sending address at a provider you also carry the consequences of how other customers behave, which Google states explicitly for shared addresses.
When you do end up on a list, the order of steps is always the same. Find out from the list operator why the listing happened, remove the cause, and only then ask for delisting. Without removing the cause the listing comes back and repeated requests make things worse. There are three common causes: a compromised mailbox someone is using to send spam, a web form or contact page without abuse protection, and sending to old address lists full of invalid contacts and spam traps. One compromised mailbox ruins domain reputation faster than a missing DKIM signature.
The link to phishing
Phishing remains one of the most common entry paths into a corporate network, and email configuration is the only control that can stop fraud sent directly from your own domain. It has clear limits, though. DMARC with a reject policy will not stop an attacker from registering a lookalike domain, nor from putting the name of your managing director into the display name and sending it from an ordinary free mail address. Two more things therefore belong here: checking SPF, DKIM and DMARC on incoming email as well, not only on outgoing email, and people who know what a fraudulent message looks like and where to report it.
What the Czech regulator expects
In October 2021 the Czech National Cyber and Information Security Agency issued a protective measure on securing electronic mail, the first measure of this type under the Czech Cybersecurity Act. It applies to listed entities, mainly ministries, major authorities and regions, and it can also affect private companies whose services depend on working email. For the listed entities it is mandatory, for others the agency recommends it. Deadlines were staggered and for obliged private sector entities the measure applied from 1 January 2023. Among other things it requires published SPF and DMARC records for sending domains and verification of SPF, DKIM and DMARC on incoming email. The exact wording and the implementation methodology are published on the official notice board of the agency.
If you fall under the Czech Cybersecurity Act or under NIS2, treat this measure as a guide to what the regulator expects from email security. Always verify the current wording of your obligations with the regulator; interpreting regulation does not belong in a blog article.
A checklist for this week
- A list of all systems that send email in your name, compared against the SPF record.
- A test message from each of them to Gmail, Outlook.com and a local provider, and a check of the Authentication-Results header.
- A DMARC record with reports enabled and a person who will review them regularly for the first three months.
- SPF and DMARC records that forbid sending, on every domain you do not send from.
- A check that incoming email is verified against SPF, DKIM and DMARC, and a procedure telling employees what to do with a suspicious message.
If you would like to go through your email configuration with someone from outside, or to test how your people react to a fraudulent message, write to us through the contact page.
Sources: RFC 7208, SPF specification · RFC 6376, DKIM specification · RFC 9989, current DMARC specification from May 2026 · Google, email sender guidelines for Gmail · Microsoft, Outlook requirements for high-volume senders · Email.cz, authentication with SPF, DKIM and DMARC · NUKIB, protective measure on securing email · Spamhaus, description of the SBL and other lists