The only issue is regulatory: As a freelancer or company in Germany, you have to archive mail in a way that can’t be deleted or altered and store it for access by the tax authorities for up to 10 years (“GoBD”). Stalwart does not have this feature in their regular plans (or the OSS variants)
As a German (part-time) freelancer, I just had to look that up. And it is really true. However, many simply ignore it and the chance to have a full audit by the tax authority ("Betriebsprüfung") are really low if you are a small freelancer. There also seem to be ways to achieve GoBD compliance with native Linux tools, like ZFS, Snapshos, Offsite Backups, PGP-fingerprinting of PDFs and creating somewhat immutable archives. However, this was just a quick check. I once went down that rabbit hole a few years ago and ignored it (or forgot it) since then.
Putting the thought out there: if you can get messages reliably shipped (in a way that 'counts' for GoBD purposes) to S3 and use Object Lock in compliance mode, it is designed for this kind of "can't be deleted or altered for 10 years" use case. You may want it in a cheap archivey storage class for cost. Looks like GCS, Azure, and Backblaze have equivalents.
Not trivializing making a compliant, cost-effective, and all-around good solution; putting it out there since given current tools and an open-source base it's not unthinkable somebody could add it in.
You don’t have to keep the envelope (= email), only the invoice.
If the email is the invoice, you send it to your bookkeeping platform like DATEV.
They seem to have a compliance add-On (https://stalw.art/compliance/) that has a setting to set a minimum retention period that can't be shortened by the administrators. If we ignore that anything selfhosted can always be deleted by yourself this seems to fit what you are describing, especially as this also supports sending these emails to an external service. Not sure if you can fulfill all requirements set out by German law using these tools, but it does seem as if there is some effort made by them. If you contacted them with what would need to be changed for compliance with German law they might even integrate it into this add-on.
You do? Is that required for your postal mail as well? Or is this just scoped to electronic records relating to taxation like invoices, quotes, contracts, etc?
Can’t you use a simple write-only backup? Fastmail has something similar in their pro plan IIRC
How can you be GDPR compliant then? (Customers's email address are personal information and must be deleted after 3 years of them stopping to do business with you, and that includes purging the emails you got from them or sent to them).
Can you just print them?
there are services like GMI that specifically are there to get email forwards of tax relevant mail and do the compliant archival, to pick ms as mail provider based on this seems silly.
So one area of the world has weird and crappy laws? Route around it.
Not all mail is tax relevant. While I’m not a lawyer I’m pretty sure (especially for a freelancer and small(er) company there is nothing wrong with forwarding your [email protected] directly to a service like DATEV (german provider for “tax software”, simply speaking) as almost anyone with a digital invoice workflow has. There you should have all the needs fulfilled.