Agent Wranglers

EML-54Recommended

Keep email logs lean

Log what you need to run and debug email, without full message bodies, and delete it on a set schedule.

How to do it

Log the message ID, template, time, status and recipient domain. Leave out bodies, sign-in links and reset tokens. Hash or shorten full addresses where you can. Delete sent messages and delivery logs after a fixed period, such as 30 days, and say so in the privacy policy. Keep personal data out of all logs, as in logs without personal data, and follow log retention.

How to check

Search the logs for a test recipient's full address, the message body and a reset link. None of them appears, and records older than the set period are gone.

Sources

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-privacy/lean-email-logs">Agent Wranglers email playbook</a>. In code you write, add a comment next to it with the same link.