We currently run a mail server using Postfix and Amavisd.
A client has asked us to see if we can archive all of their internet email and we had started with using the Postfix always_bcc option.
However, we have come to realize that when emails include BCC's, all of theat information is not proeproly preserved. The always_bcc message only has the TO: and CC: fields.
In our instance, the client mail server uses Postfix for smarthosting and at this point, I'm sure that the BCC information is intact when sent to the Postfix server. The logs will show the email going to the TO:, CC:, and BCC: field all using the same Postfix ID so I'm pretty sure the information is there.
I have recenly been looking at qpsmtpd as another option for capturing this information and trying to see what other otpions I may have for preserving tand archiving the email with the info.
To clarify, are you asking how to archive the actual email as it passes thru the system, or simply the envelope information that's stored in the logs?
To, BCC, & CC don't really make any difference when you're looking at the envelope information, as it still has to be passed to the remote system to be delivered.
An example:
This email was sent to [email protected], and CC'd to [email protected]. As you can see, they both register as "to=" addresses.
Postfix sets the headers
X-Delivered-To
andDelivered-To
with information about the actualRCPT TO
recipient, for each delivered copy of the message. Would that be sufficient for you?