Setup archiving, you can use postfix's built in bcc to send each and every email to a script that then encrypts and stores it to file.
Okay using my method here is a tip on how you can get it working Create a script /etc/postfix/mail-backup.sh Code: #!/bin/bash cat >> /backup_dir/mail-backup Now for the always bcc use an address like email-backup In your aliases file have a pointer to the script Code: email-backup: "|/etc/postfix/mail-backup.sh" All the bcc'ed mail will be stored in the spool file /backup_dir/mail-backup. NOTE that you can get more fancy with this and split the spool files if you have multiple users by reading the mail headers and getting the to address then store the mail in that users spool file. Anyway this is just a skeleton for you to build on, haven't got the time on my hands to create you the full solution.
Restore That solution framework looks pretty simple yet effective.. how would you restore from that in the event of total server disaster? let's assume that a seperate program copied the target file to a remote server and is completely intact.
In event of total disaster if you separated users to each have their own backup you can just copy back the file to their spool file if they are using mbox format if they are using maildir you will have to use a convertor to restore the mail. The mails are stored in mbox format you if you want to restore a single email you can just use Code: mutt -f /path/to/file to replay the single mail