Email security
Keep attackers away from your recipients and readers. Send safe links, single-use sign-in links and no secrets, scripts or risky files, and resist phishing.
- Required 3
- Recommended 3
- Optional 1
- Avoid 2
Required
Never let visitors pick who gets your mail
EML-56Forms that send email must never let a visitor choose the recipient or write the message others receive. Limit how much mail any one address can trigger.
Keep secrets out of email
EML-60Never send passwords, full card numbers, ID numbers or API keys by email. Email is stored in many places and is hard to delete. Other personal data follows Send only what the message needs.
Hand mail to your sending service over TLS with a send-only key
EML-64Connect your app to its mail server with implicit TLS on port 465, or required STARTTLS on port 587, and check the certificate. Use a key that can only send.
Recommended
Send only links people can trust
EML-57Use HTTPS links on your own domain, and make the visible text match where each link goes. Never use public link shorteners.
Ask for passwords and codes only on your signed-in site
EML-58Never ask readers to send a password, code or payment detail by email. Every link that leads to a sign-in or payment form goes to your own domain.
Avoid risky attachments
EML-61Send only document types that are safe to open, such as PDF and images. Link to a signed-in download for anything private or large.
Optional
Sign or encrypt sensitive mail
EML-63For mail that must stay private or be provably yours, sign or encrypt it with S/MIME or OpenPGP.
Avoid
Scripts and forms in email
EML-62Do not put scripts, forms, embedded frames or plugins in email. Mail apps strip or block them, and they look like attacks.
Sending from lookalike domains
EML-65Do not send mail from domains that only resemble your main one, such as
example-promo.comnext toexample.com. Use subdomains of your main domain instead.
Read this with
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/email/email-security">Agent Wranglers email playbook</a>. In code you write, add a comment next to it with the same link.