Save any mail even if deleted on mailbox

I wanna save any email, inbound, outbound and even spam, if a mail pass through my server i got to save it.
I was thinking about to replace the mail folder with a webdav folder connected to a dabatase but i don’tknow if is the best choice.

Have you looked at Postfix’s always_bcc option? The idea is that you copy any mail that goes through the server to a special email address. Then you can back up or do whatever you want with the mail stored for that address.

I’ve never set it up before, so I can’t help you with specifics. Googling reveals a little help.

1 Like