The sender address of an email can be forged at will – SMTP itself does not check it. SPF, DKIM and DMARC close this gap. All three are published as records in your domain's DNS and checked by the receiving mail server.
SPF – who may send?
The Sender Policy Framework lists the servers and services that are allowed to send mail for your domain. The recipient compares the IP address of the delivering server with this list. It checks the domain of the envelope sender (MAIL FROM), not the address shown in the mail client. Example:
v=spf1 include:spf.protection.outlook.com -all
Important: every service that sends in your name – newsletter tool, ticket system, scanners via a relay – must be included. Too many nested include entries cause errors because the number of DNS lookups is limited.
DKIM – is the message genuine?
DomainKeys Identified Mail adds a digital signature to outgoing mail. You publish the public key under a selector, for example s1._domainkey.example.com with v=DKIM1; k=rsa; p=…. The recipient uses it to check that the message was signed by your domain and not altered in transit. Unlike SPF, DKIM usually survives forwarding as long as the content stays unchanged.
DMARC – what happens on failure?
DMARC ties both methods to the visible sender address (From). A message passes DMARC if SPF or DKIM passes and the checked domain matches the From domain – this is called alignment. The record is published at _dmarc.example.com, for example:
v=DMARC1; p=none; rua=mailto:dmarc [at] example [dot] com
- p=none: monitor only; mail is delivered normally and you receive reports.
- p=quarantine: failing mail usually ends up in the junk folder or quarantine.
- p=reject: failing mail is rejected.
The reports (rua) show which servers send in your name – including ones you have forgotten about. The goal is p=reject, reached step by step. Our guide Introducing DMARC explains how.
Typical pitfalls
- External services send with your From address but do not sign with your domain – DMARC fails.
- Gateways or signature tools modify the message afterwards and break the DKIM signature.
- Domains that send no mail at all remain unprotected. They should also get SPF
-alland DMARCp=reject.
Devices and applications that send through your own SMTP relay also need a matching signature. Our MailRelay can DKIM-sign outgoing mail in the Professional edition and shows the DNS record you need. We are happy to review SPF, DKIM and DMARC for your domains as part of our cybersecurity services.


