Every email you send leaves a trail: who it went to, when, from which system, how the receiving server answered, whether the recipient opened or clicked. That trail is indispensable for debugging, for investigating complaints and for proving that a message was delivered. It is also personal data, because it contains email addresses and behaviour, and it grows without limit unless someone decides otherwise. Retention is the discipline of keeping what you need for as long as you need it, and no longer. This guide explains the categories of email data and what each is for, how to choose retention periods, how to handle deletion and access requests, what must be kept even when someone asks for deletion (such as suppression records), how to secure stored data and what to ask a sending provider about its practices. It is general information and not legal advice; retention duties depend on your jurisdiction and sector, so involve your legal or privacy adviser.
Categories of email data
| Data | What it contains | Why you keep it | Typical retention approach |
|---|---|---|---|
| Delivery logs | Time, recipient, sender, remote server reply, message ID | Debugging, proof of delivery, bounce analysis | Short to medium: weeks to a few months |
| Event data | Opens, clicks, bounces, complaints, unsubscribes | Analytics, automation, deliverability monitoring | Months; aggregate older data and drop individual events |
| Message content | Subject, body, attachments | Support, dispute handling, record keeping for some documents | Keep only where there is a reason; shorter for marketing mail, longer for contractual notices |
| Contact records | Address, name, attributes, consent records | Sending and consent proof | While the relationship lasts, plus a period for consent evidence |
| Suppression list | Hard bounces, complaints, unsubscribes | Preventing further mail to these addresses | Keep indefinitely, in minimal form |
| Audit logs | Logins, API key use, setting changes | Security investigations | Often a year or longer, as your security policy says |
| Webhook delivery records | Payloads sent to your endpoint, status | Debugging integration problems | Short: days to weeks |
The shorter the retention for detailed data, the smaller your exposure if it is ever disclosed. Aggregate statistics (counts per day, rates per campaign) contain no personal data and can be kept much longer.
Setting retention periods
- List what you store and where, including backups, exports, data warehouses and third-party tools.
- State the purpose for each category in one sentence. If you cannot, consider deleting it.
- Check legal requirements. Some sectors require records of communications for fixed periods; tax and contract law may require invoices and notices to be kept. These can set a minimum.
- Choose the shortest period that serves the purpose. For delivery logs, the period during which customers realistically raise questions is a natural limit.
- Decide what happens at the end: deletion, anonymisation (removing the address but keeping counts) or aggregation.
- Automate it. Manual deletion is forgotten. Use database jobs, storage lifecycle rules or the provider's retention settings.
- Document and review the policy each year or when systems change.
Deletion and access requests
Data protection laws such as the GDPR give individuals rights of access and deletion, with exceptions. When someone asks you to delete their data, you must find it in every place that holds it: the contact database, the sending platform, analytics, support tools and logs. Two points deserve care. First, do not delete the suppression entry: if an address has unsubscribed or complained, you must remember that fact to avoid mailing it again, so keep the address (or a salted hash of it, where the platform supports matching on hashes) on the suppression list and tell the person that you keep minimal data for this purpose. Second, delivery logs and backups may be harder to purge; document how long they persist and make sure they are covered by your retention period. Read GDPR email consent, records and unsubscribes and suppression list management.
Consent evidence
If you rely on consent to send marketing mail, keep proof: the address, the time, the source (the form or page), the wording shown at the time and the IP address or confirmation record if you use double opt-in. This evidence is the one category where you may need to keep data about a person after they leave, so that you can show you had permission, within a period that your legal adviser considers reasonable. See double opt-in and consent evidence for imported lists.
Securing what you keep
- Access control: limit who can see logs and message content, use roles with least privilege and log access. See API key security and permissions.
- Encryption: encrypt data in transit (TLS) and at rest, including backups.
- Minimisation in messages: avoid putting sensitive details such as full account numbers or health information in email bodies that will be stored in logs. Use links to authenticated pages instead.
- Sanitise logs: mask or omit tokens, reset links and one-time codes in stored message content. A stored reset email with a live link is a credential. See password reset email best practices.
- Exports: track who exports data and delete copies from laptops and shared drives.
- Incident readiness: know how you would detect and report a breach involving email data. See sending account security and compromise response.
Questions to ask a sending provider
| Question | Why it matters |
|---|---|
| How long are delivery logs and events retained, and can I change it? | Matches your policy and supports debugging |
| Is message content stored, and for how long? | Content is the most sensitive category |
| Can individual data be deleted on request, and how fast? | Needed for erasure requests |
| How is suppression data handled when I delete a contact? | Avoid mailing unsubscribed addresses again |
| Where is the data stored, and which sub-processors are used? | Transfers and compliance |
| What encryption and access controls apply? | Security baseline |
| Can I export my data and logs? | Portability and audits |
| What happens to my data when I close the account? | End-of-contract deletion |
These questions also belong in a vendor review; see provider security and compliance review. Ask for the answers in writing, and be cautious about claims that cannot be verified. We do not offer legal advice here, and a provider's documentation and contract are the authority on its own practices.
A sample policy outline
- Delivery logs: retain for a stated number of days, then delete.
- Event data: retain individual events for a stated number of months, then aggregate.
- Message content: do not store beyond transmission unless a business reason is recorded; mask secrets.
- Suppression list: retain indefinitely in minimal form.
- Consent evidence: retain while the person is subscribed and for a stated period after.
- Audit logs: retain for the period that the security policy states.
- Review: owner, date of last review, next review.
A good retention policy is short enough to be read, specific enough to be enforced and aligned with how the systems actually behave. Start with an inventory, set periods per category, automate deletion and treat suppression and consent records as the deliberate exceptions.
Review how we handle your data Read our approach to security and data handling before you connect your domain.
References and further reading
Frequently asked questions
How long should I keep email delivery logs?
Long enough to cover debugging and customer questions, often weeks to a few months. Choose the shortest period that serves the purpose and automate deletion.
Should I delete suppression records on a deletion request?
Keep minimal suppression data so that you do not mail the address again, and explain this to the person.
Is message content personal data?
Often yes, because it relates to identifiable people. Store it only where there is a reason and mask secrets such as reset links.
What consent evidence should I keep?
The address, time, source, wording shown and confirmation record, for a period your legal adviser considers appropriate.
What should I ask my email provider about retention?
Log and content retention periods, deletion on request, suppression handling, data location, sub-processors, encryption and export options.