Hello, I have a Postfix installation for virtual mailboxes. It is the mail server (inbound MX and outbound) for a few domains. The server allows submission with SMTP AUTH (Dovecot SASL).
At the moment I use always_bcc to "copy" / mirror any inbound AND outbound emails into an archive maildir. It's only one central archive maildir for all inbound and outbound mails of all virtual mailboxes. What approach would you use if you wanted different archive bcc mailboxes depending on the virtual domain? Example: - Postfix is mailserver for example-a.com / example-a.net and example-b.com / example-b.net. - Mails sent TO and BY example-a.com / example-a.net mailboxes go to archive.A@localhost - Mails sent TO and BY example-b.com / example-b.net mailboxes go to archive.B@localhost I guess, for INBOUND I might be able to use virtual_alias_maps like this: u...@example-a.com -> \u...@example-a.com, archive.A@localhost u...@example-b.com -> \u...@example-b.com, archive.B@localhost But what about mails that are SENT BY u...@example-a.com to (external) mailboxes? How could one capture the outbound mails as well? Separated based on the sender virtual domain? Or one dedicated archive maildir for each virtual mailbox would be fine, as well. Actually even better! Or in general, what approaches do you use with Postfix for mailbox archival? In the best case something based on Postfix configuration, or in the second best case something based on other open source software? Maybe some kind of milter? Would this work: Define a transport that invoked "myarchivalscript.sh" for any incoming mail to "@archival.local" and then use "archival@archival.local" in "always_bcc" and let the script decide on where to store an email copy? Thanks for your ideas and hints! Reg _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org