In an effort to give my users better filtering options, I need to be able to identify who a message was actually intended for.
I have added "enable_original_recipient = yes" to postfix's main.cf
and that seems to add the users address to the Received line - like this:
Received: from example.com (server.example.com [188.8.131.52])But it doesn't add an X-original-to or Delivered-to header line.
by zimbra.example.com (Postfix) with ESMTP id D276B6EC030
I can probably live with the address at least showing up in the Received line, but the problem I run into is when a message is sent to multiple BCC users.
For example, if I BCC a message to user1, I can see email@example.com in the Received line of the header. BUT, if I BCC a message to user1 and user2, there is no user information at all...
Received: from example.com (server.example.com [184.108.40.206])All I see in the header is:
by zimbra.example.com (Postfix) with ESMTP id C4E156EC030
This is of course a problem because several users may have subscribed to the same mailing list that hides their addresses. The ability for the users to filter on their mail is lost.
How can I get the X-Original-to and/or the Delivered-to header lines to appear in zimbra messages? The postfix documentation seems to indicate both of these should be added by default, and yet with Zimbra, neither of them are present.
I can see the "orig_to" data in the postfix log for each message, so there must be a way to get this envelope data into the header.
Any ideas on if this can be done, and if so, how?