On 18/07/2012 11:58, John Doe wrote:
On Wed, Jul 18, 2012 at 1:45 PM, Wietse Venema <wie...@porcupine.org> wrote:
John Doe:
Hello,
A few days ago i received a email that has a send and a received
(from/to) field set to someth...@gmail.com, and in the header the
X-Original-To is set to myaddr...@mydomain.com and this mail gets
delivered to my account.

Postfix delivers mail to the ENVELOPE recipient address (the
address in the RCPT TO command, or the address on the Postfix
sendmail command line), NOT to the address in the header.

         Wietse

Thank you for answering and sorry for the double posting.
How can i debug this issue?

There's nothing to debug. The system is behaving as designed.

How can i stop postfix from delivering mail to the recipient mentioned
in the x-original-to field?

You can't. That's who the sender intended it to go to.

If the reason you want to block that mail is because it's spam, then that's a valid concern. But it's also a different issue, entirely unrelated to how Postfix (or any other MTA) routes mail.

Mark
--
 Sent from my Turing-Flowers Colossus
 http://mark.goodge.co.uk


Reply via email to