1. Why authentication matters
SMTP was designed without any built-in way to verify the sender. Without extra DNS records, almost any server can send a message with your domain in the From: field. Mailbox providers (such as Gmail, Microsoft 365 and other large providers) now require a correct SPF, DKIM and DMARC setup to tell legitimate campaigns apart from phishing.
3. DKIM – a cryptographic signature
DKIM (DomainKeys Identified Mail) adds a digital signature to the message header, generated with the sending server's private key. The receiving server fetches the public key from DNS (at selector._domainkey.yourdomain.com) and checks that the content was not modified in transit.
ms2026._domainkey.example.com. IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A..."4. DMARC – policy and reporting
DMARC ties SPF and DKIM together into a single policy. It checks domain alignment and tells the receiving server what to do with a message that fails the checks, and where to send aggregate reports (rua).
_dmarc.example.com. IN TXT "v=DMARC1; p=quarantine; pct=100; rua=mailto:[email protected]"5. DMARC policies compared
| Policy | What the receiving server does | When to use it |
|---|---|---|
p=none | Nothing is blocked; reports are collected | The first 2–4 weeks after rollout |
p=quarantine | Suspicious messages go to spam | Once every sending source has been verified |
p=reject | Unauthorised email is rejected outright | The target protection against spoofing |
6. Rollout checklist
- Find out which systems (CRM, online store, newsletter) send mail from your domain.
- Publish one consistent SPF record (never two separate SPF TXT records).
- Enable DKIM signing with a 2048-bit RSA key at every provider.
- Start with
p=noneand move gradually top=quarantineorp=reject.
Keep your contact list clean
Verify email addresses before you send, and explore our upcoming SPF/DKIM/DMARC diagnostics module.
MailSpecto Engineering Team
We build tools for email address verification, deliverability monitoring and mail infrastructure security diagnostics for companies in Poland and Europe.