On Oct 10, 2011, at 10:59 AM, Jeroen Geilman wrote: > On 2011-10-10 03:50, Janantha Marasinghe wrote: >> Hi All, >> >> I want to know if postfix can be used to save a copy of every e-mail sent >> and received (including attachments) by a mail server for email retention. >> If it could indexed for easier searching that would be great! >> Thnks >> >> J > > Not postfix related, but for long-term storage with optional time-based > expiry, look into dbmail: www.dbmail.org > Alternatively, dovecot IMAPd supports index-on-delivery, so even large > archives are instantly searchable. > > -- > J. >
For retaining all sent emails server wide through postfix you can use in main.cf the following: always_bcc = user.example Where user.example has a valid mail account on the server. http://www.postfix.org/postconf.5.html Cameron