I'm missing X-Original-To header in incoming messages. This should be standard Postfix feature, enabled by default, as I've seen in Postfix documentation. To be sure, I have added entry to /opt/zimbra/postfix/conf/main.cf (enable_original_recipient = yes), but it did not work. Am I missing something?
I'm not experienced in Linux nor Zimbra, but I decided to give it a try and so far I am impressed by quite smooth install and its features.
We re-write the config file. You'll want to change main.cf.in
Sorry, now I have found in Admin Guide that modifying postfix main.cf is not recommended. Where is main.cf.in file located? I cannot see it. How is this file used?
there is no main.cf.in.
enable_original_recipient should be yes by default.
Did you restart postfix after setting it?
Yes, have restarted Postfix, restarted even whole server. Still missing X-Original-To header in incoming messages. It is quite a problem for me, because until I decide to use Zimbra in production environment, I'm testing it in virtual domain mode - only one catch-all account for domain and then POP3 from current mailserver, where messages are sorted to user mailboxes. So now there are messages that cannot be sorted out to end users due to missing original recipient info.
At the same time I have added "always_bcc" to the /opt/zimbra/postfix/conf/main.cf to archive all incoming messages and it works. Maybe there is another (master) switch that must be set for enable_original_recipent to work?
man 5 postconf doesn't indicate anything new needed. COuld the problem be the way you're feeding mail to the system?
It sounds like you're using POP to get mail from your production box, and delivering it all to the same account on zcs? I believe that X-Original-To is based off of the envelope address, which in this scenario, will be the same as the delivery address (that is, I don't think it looks at the headers at all).
Messages are received standard way via SMTP by Zimbra, where is only one catch-all account for domain so all messages end up in catch-all mailbox in Zimbra. Then comes current production server which uses POP3 to get all messages from Zimbra catch-all. But there is no X-Original-To header even in messages stored in zimbra catch-all mailbox, so I think it has nothing to do with POP3.
Created Bugzilla Entry
Just in case anyone is still following this thread, I wanted to mention that I have opened a Bugzilla request on the topic:
Interested parties can vote there.