I need to add an email retention policy to my Virtualmin servers. I am using PostFix, dovecot etc.
I find people talking about it being available, but I am unable to locate any information on configuration or even where to find the settings. Several of the organizations that I host email for are asking about it.
You’re probably after the lazy-expunge plugin in Dovecot.
If you’re using Maildir mail spools, you have many options, though (every email gets a file, and any tool that works with Maildir can work with it, but Dovecot indexes may take a while to catch up if you don’t use the expunge interface).
Oh, I guess that’s also part of “retention policy”, but usually when a company wants a “retention policy” they mean they want to know that old email won’t be hanging around to be a legal liability beyond the point where they are required to retain it. But, yeah, if you want to save every message for a specific time, BCC would be one good way that insures users can’t delete the messages before policy allows.
The lazy-expunge plugin I mentioned can also make deletions move a message to another folder rather than actually deleting (and then other policies can remove the messages later).