Hey fellow mailserver admins! I'm currently using OpenSMTPd as my internal mailserver for my company. As per regulations, I need to archive emails sent and received for specific amounts of time, depending on the type of mail. The mail archive software has a mode to pop/imap mails from a "collection inbox" and then sort to the users based on the from/to header.
For incoming emails i can make it work by using virtual delivery method and specifying "username, journal" as the destination for each address. With this, all email will also be stored in the journal inbox, which is then used by my archive software. However, for outgoing emails this does not work. I currently need to configure each mail client for each employee to bcc the email itself to the journal address, which is a royal pain in some lower region and prone to errors, leaving me potentially with a fine or a lawsuit. Postfix has a setting "always_bcc" which bcc's every single mail ever going through the server. Does OpenSMTPd have something similar? Can I build something like this with a script and a filter? If so, how does the proc-exec filter work exactly? Does it need to return something? I cannot find a good explanation in the smtpd.conf manpage. Thanks! Cheers, Simon
signature.asc
Description: PGP signature