Email archiving: legal duty, GoBD and GDPR
Is email archiving a legal duty?
Neither § 257 HGB (Commercial Code) nor § 147 AO (Fiscal Code) prescribes “email archiving” as such. Both require certain documents to be kept in an orderly way, emails included.
The word “email” appears in neither provision. The duty therefore depends on what a message contains, not on the mailbox it sits in.
Articles 5, 6, 17 and 32 of the GDPR contain no duty to archive either; “archiving purposes” appear there only as an exception for archives in the public interest.
Which emails are covered?
The HGB (for every merchant) and the AO require, among other things, keeping:
- received commercial or business letters (§ 257 (1) no. 2 HGB, § 147 (1) no. 2 AO)
- reproductions of sent commercial or business letters (no. 3 in each)
- accounting vouchers (Buchungsbelege; no. 4 in each)
- other documents, insofar as they are relevant for taxation (§ 147 (1) no. 5 AO)
Under § 257 (2) HGB, commercial letters are “only documents that concern a commercial transaction” (our translation). The statute does not say whether an email is such a document, but the GoBD expressly speak of incoming electronic commercial or business letters (margin number 131).
Private emails: HGB and AO tie the duty to content, not to business versus private. A private message unrelated to a commercial transaction does not meet the definition in § 257 (2) HGB.
How long do emails have to be kept?
The periods are set in § 257 (4) HGB and § 147 (3) AO:
- ten years for, among other things, books, inventories, annual financial statements and the working instructions and organisational documents needed to understand them
- eight years for accounting vouchers
- six years for the other documents listed, including commercial letters
§ 14b UStG (VAT Act) additionally sets eight years for invoices issued and received; § 147 (3) AO remains unaffected.
For tax purposes the period does not expire as long as the assessment period runs for taxes for which the documents are relevant (§ 147 (3) sentence 5 AO).
When does the period start?
For commercial letters and accounting vouchers it starts at the end of the calendar year in which the letter was received or sent or the voucher came into being (§ 257 (5) HGB, § 147 (4) AO).
For invoices under § 14b UStG it starts at the end of the calendar year in which the invoice was issued.
Do the eight years apply to every document?
Eight years for accounting vouchers apply from 1 January 2025, also to documents whose period under the old version had not yet expired then (Art. 95 EGHGB, Art. 97 § 19a EGAO).
Institutions within the meaning of § 1 (1b) of the Kreditwesengesetz, companies under insurance supervision and securities institutions are an exception. For them § 257 (4) HGB states ten years for accounting vouchers, Art. 95 sentence 2 EGHGB uses 1 January 2026 as the transition date, and Art. 97 § 19a (3) EGAO applies § 147 (3) sentence 1 AO in its version of 31 December 2024.
What does GoBD-compliant archiving mean?
Anyone who keeps documents as data instead of on paper must, under § 257 (3) HGB and § 147 (2) AO, ensure two things. The retention must comply with the principles of proper accounting, and the data must:
- match the received letters and vouchers visually and the other documents in content when made readable
- remain available for the entire period
- be capable of being made readable
On the third point the statutes differ: the HGB requires readability “within a reasonable period”; the AO requires that data can be made available at any time, made readable without delay and evaluated by machine (our translation).
Which version of the GoBD applies, and what do they say about email?
The GoBD are a BMF letter of 28 November 2019, last amended on 14 July 2025; that version applies from 14 July 2025.
For incoming electronic letters and vouchers, margin number 131 as amended in 2025 says:
- Incoming electronic commercial or business letters and vouchers must be kept in the format in which they were received.
- Converting to another format, for example MSG to PDF, is permitted under the conditions of margin number 135.
- If OCR enriches the content, the information obtained must also be kept after verification and correction.
- For e-invoices the structured part is sufficient; the human-readable part must be kept only if it contains additional or differing information that is relevant for taxation.
What may the tax authority see?
During a tax audit, § 147 (6) AO lets the tax authority inspect the stored data and use the system for that purpose. It can also require machine evaluation according to its instructions, or transfer in a machine-readable format.
If the data is held by a third party and the taxpayer informs the authority, the third party must enable the same. The taxpayer bears the cost.
How does this fit with the GDPR?
Art. 5 (1) (e) GDPR allows personal data to be stored in identifiable form only as long as necessary for the purposes of processing. For emails that the HGB or AO require to be kept there is a basis: processing is lawful if necessary for compliance with a legal obligation (Art. 6 (1) (c)).
Under Art. 17 (3) (b) the right to erasure does not apply insofar as processing is necessary for a legal obligation under Union or Member State law.
An archive that takes in every email also stores emails without a retention duty. The legal duty covers only the emails that must be kept; for the others, Art. 5 (1) (including purpose limitation, data minimisation and storage limitation) and a legal basis under Art. 6 (1) apply to any personal data in them. Ask your legal and data protection advisers.
Which safeguards does the GDPR require for the archive?
Art. 32 requires safeguards appropriate to the risk. Examples it names are encryption and quick restoration of availability and access after an incident. MailStore describes deletion and retention management functions in MailStore Server (manufacturer statement, GDPR advisory page 3, not a legal statement).
Which software fits?
The solutions available are covered in Email archiving software compared.
Nexilon plans the email archive to fit your infrastructure, sets up MailStore and remains available for questions afterwards.
Sources
- § 257 HGB; status, retrieved on 12 November 2026
- § 147 AO; status, retrieved on 12 November 2026
- § 14b UStG, retrieved on 12 November 2026
- Art. 95 EGHGB and Art. 97 § 19a EGAO, retrieved on 12 November 2026
- BMF: GoBD amending letter of 14 July 2025 and of 11 March 2024, retrieved on 12 November 2026; the original letter of 28 November 2019 (BStBl I p. 1269) was not retrieved
- Regulation (EU) 2016/679, Articles 5, 6, 17 and 32: Official Journal L 119 of 4 May 2016 on EUR-Lex (German version), retrieved on 12 November 2026
- Manufacturer statement: MailStore, GDPR advisory (German PDF mailstore-server-dsgvo-advisory.pdf, page 3)
Status per gesetze-im-internet.de: HGB last amended by the Act of 4 February 2026 (BGBl. 2026 I No. 33), AO by the Act of 22 October 2026 (BGBl. 2026 I No. 320).