On Wed, Jul 18, 2012 at 2:03 PM, Mark Goodge <m...@good-stuff.co.uk> wrote: > 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.
Yes, but i cannot explain myself how did i received a message that has the sender address someth...@gmail.com and the same as the destination address (also someth...@gmail.com). How can i dig down deeper and figure this out? > Mark > -- > Sent from my Turing-Flowers Colossus > http://mark.goodge.co.uk > >