On 12/28/10 7:58 AM, Alexander Moisseev wrote:
m...@domain.tld has an alias al...@domain.tld and mail sent to alias.
X-Original-To: al...@domain.tld prepends to the message. It's OK.

If the before-queue content filter enabled as shown below then X-Original-To: is m...@domain.tld. Why did this happen?

Because a before-queue content filter (I am assuming you mean the smtpd_proxy feature of postfix) puts a complete SMTP hop in front of the postfix smtpd listener.

This means that envelope information is re-set to whatever the smtpd proxy provides to postfix.

Stop resolving aliases in your before-queue content filter and the problem will go away.

I suppose it must be al...@domain.tld anyway.

But if REDIRECT to other mailbox configured in header_checks (in addition to content filter) then X-Original-To: is al...@domain.tld as supposed.

diff master.cf.bak master.cf

That's utterly useless.

Please include postconf -n and the entire master.cf file you are using NOW.

Some relevant logs would also come in handy.


   -o receive_override_options=no_unknown_recipient_checks


You might want to set that to no_address_mappings for the smtpd proxy listener.



--
J.

Reply via email to