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.