Aaron C. de Bruyn put forth on 11/8/2010 10:50 PM:
> The short question:
> I'm looking for a way to store the headers of every message that passes 
> through my postfix system.  Any pointers?
> (I've read FAQ #45 and it seems to require me to enter the headers I want 
> flagged)

This would be your quickest, most straightforward solution:

always_bcc (default: empty)

    Optional address that receives a "blind carbon copy" of each message
that is received by the Postfix mail system.

    Note: if mail to the BCC address bounces it will be returned to the
sender.

    Note: automatic BCC recipients are produced only for new mail. To
avoid mailer loops, automatic BCC recipients are not generated after
Postfix forwards mail internally, or after Postfix generates mail itself.


This will copy the entire emails to the specified address.  If the
target mailbox is in mbox format you can simply write a script to grep
the headers you need from the mbox file.  Keep two days, two weeks, or
two months worth of such email, whatever your time frame needs dictate,
then delete the older mails that are no longer needed.  If you make this
mbox file an IMAP folder, you can simply access it and search it from
your current MUA.  You can even make it a shared folder so the entire
support staff can perform this function.

If your internet mail volume is high, this mailbox will grow quickly.
Storage is cheap, but it would probably be best to keep this mailbox as
small as possible to decrease search times.

-- 
Stan


Reply via email to