On 2/21/2015 8:07 AM, Stéphane MERLE wrote: > Hi, > Le 21/02/2015 00:38, Noel Jones a écrit : >> On 2/20/2015 5:12 PM, Stéphane MERLE wrote: >>> Hi, >>> >>> I am using a postfix as relay for email sent from an hoster that >>> close the port 25, so I send the mail to the relayer through the >>> 10025 port. >>> but the IP of the originating server appear in the header of the >>> mail and I would like to remove it : >>> >>> source server ---10025---> relayer ---25---> FAI >>> >>> just showing the relayer ip and hostname, I have access to both >>> config files, is this possible ? >>> >>> Thanks for your help. >>> >>> Stéphane >>> PS : sorry for my english >> >> You can use a header_checks rule with the IGNORE result to remove >> the offending header. >> >> This must be done on the relayer server, which is where that header >> is added. >> >> Make your header_checks rule as specific as possible so you don't >> unintentionally remove other headers. > > That's doing the trick perfectly but ... I also have the MESSAGE-ID > with the "bad" source serveur name ... the header_checks remove it > too and it get "re-created" by the receiver as : > > Message-Id: <54e89006.a30db40a.6372.0ef1smtpin_added_miss...@mx.google.com> > > Not sure that's a good idea ... is there a way to replace the > @baddomaine.com with @goodrelayerdomaine.com in the MESSAGE-ID ? > > Stéphane
You really shouldn't mess with the Message-ID. If you don't like the auto-generated Message-ID, have your mail software add one before the message is submitted. -- Noel Jones