Use this when protecting email against spoofing, phishing and malware.
Email Security
Email security defends against phishing, spoofing and malware with SPF, DKIM and DMARC, TLS between servers, mail gateways with spam and attachment filtering, and user training against business email compromise.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Subtopics
Go one level deeper into this subject.
Email security fundamentals: authenticate senders with SPF, DKIM and DMARC, encrypt server links with TLS, filter spam, phishing and malware at a gateway, and train users to report suspicious mail.
Subtopic SMTP SecuritySMTP security covers authenticated submission on port 587 with TLS, preventing open relays, TLS between mail servers, MTA-STS and DANE to enforce it, and rate limits against abuse.
Subtopic SPFSPF lists which servers may send mail for a domain in a DNS TXT record, like v=spf1 include:_spf.google.com -all.
Subtopic DKIMDKIM signs outgoing email with the sending domain's private key in a header, and receivers check it against a public key published in DNS, proving the message is authorized and unchanged.
Subtopic DMARCDMARC tells receivers what to do with mail that fails SPF and DKIM alignment for your domain — none, quarantine or reject — and sends reports.
Subtopic STARTTLSSTARTTLS upgrades a plain SMTP, IMAP or POP3 connection to TLS.
Subtopic S/MIMES/MIME signs and encrypts individual email messages with X.509 certificates, proving the sender and keeping content confidential end to end, even on untrusted mail servers.
Subtopic PhishingPhishing in email security is deceptive mail that lures users to fake login pages or malicious attachments.
Subtopic Spear PhishingSpear phishing in email is a targeted phishing message written for one person or a small group using researched details, often impersonating a colleague or partner, which makes it harder to spot.
Subtopic Business Email CompromiseBusiness email compromise (BEC) uses a compromised or spoofed executive or supplier mailbox to trick staff into paying fake invoices or changing bank details.
Subtopic Spam FilteringSpam filtering scores incoming mail on reputation, content, authentication results and user feedback, sending likely spam to junk or quarantine.
Subtopic Mail GatewayA mail gateway (secure email gateway) filters inbound and outbound mail for spam, phishing, malware and data leaks, with sandboxing, URL rewriting and policy enforcement before mail reaches users.
Subtopic Email Security TroubleshootingTroubleshoot email security by reading the message headers for SPF, DKIM and DMARC results, checking DNS records with dig, gateway quarantine and logs, TLS negotiation and DMARC aggregate reports.
dig TXT <domain> +short | grep spf— SPFdig TXT _dmarc.<domain> +short— DMARC- Mail gateway threat report — phishing blocked
ReferenceWhy it matters1 section · depth on demand
Layers of email security
| Layer | Controls |
|---|---|
| Sender authentication | SPF, DKIM, DMARC (p=reject), BIMI |
| Transport | STARTTLS, MTA-STS, DANE, TLS-RPT |
| Filtering | Spam, phishing, malware, sandboxing, URL rewriting |
| Content protection | S/MIME, Microsoft Purview encryption, DLP |
| People and process | Phishing training, report button, payment verification |
Check a domain's setup with dig TXT example.com, dig TXT _dmarc.example.com and online checkers.
ReferenceImportant terms & boundaries2 sections · depth on demand
DNS records involved
| Record | Location | Purpose |
|---|---|---|
| MX | example.com | Mail servers for the domain |
| SPF (TXT) | example.com | Authorised sending IPs |
| DKIM (TXT) | selector._domainkey.example.com | Public signing key |
| DMARC (TXT) | _dmarc.example.com | Policy and reporting |
| MTA-STS (TXT + HTTPS policy) | _mta-sts.example.com | Enforce TLS for inbound mail |
| TLS-RPT (TXT) | _smtp._tls.example.com | TLS failure reports |
In depth
Email remains the most common initial attack vector: phishing, malware attachments, business email compromise and spoofed senders. Email security combines sender authentication, filtering, user awareness and incident response.
| Control | Protects against |
|---|---|
| SPF, DKIM, DMARC | Spoofing of your domain |
| Filtering (spam, malware, URL rewriting, sandboxing) | Malicious content |
| Banner for external senders | Impersonation |
| Phishing-resistant MFA | Credential phishing impact |
| Report button and SOC triage | Fast response |
| MTA-STS / TLS | Interception in transit |
DMARC at p=reject for your domains is one of the most effective single measures against domain spoofing.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Email Security. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc7489 · confidence 94%