On 5/29/2013 12:18 PM, David Bauman wrote:
> I have seen lots of information on how to archive 'all' inbound/outbound email to a postfix server, but I am confused on how to configure postfix to archive inbound/outbound for specific mail users, or worst case a whole domain. I host several domains on the server, so archiving all email for all domains would be difficult to manage.
Postfix is an MTA. It takes a message from here and delivers it to
there. It has no archiving function.
In the context of archiving individual SMTP mails, you'd simply use an
alias or BCC to send a copy of each message to an appropriate address on
your archival server. This can be an individual address if archiving
"1:1" with one mailbox per user on the archive server. You can use a
catchall address to do this for an entire domain, assuming you want all
the mail going to a single mailbox on the archival server.
All of this depends on the functionality you desire of your archival
server. How do you want to retrieve messages from it? Do you need
search? Search how much? All recipients' mail or one recipient?
grep'ing through 1 million messages in one big mbox file may take some
time. Speaking of mbox, what file format do you intend to use? Etc, etc.
How you want to retrieve archived messages is just as important as how
you store them. You need to plan so the two work together and meet your
needs. If you simply start dumping messages now without planning
retrieval, a year down the road you may be screwed.