Hi,

Thanks for your help !

can I just change the To header within the files and move the file in a postfix folder for it to "resend" it ?

if so .. which folder ...

Stéphane


Le 18/11/2015 16:02, Noel Jones a écrit :
On 11/18/2015 2:53 AM, Stéphane MERLE wrote:
Hi,

Someone made a little mistake (wrong TO) and some email (few
thousand) were received on the wrong postfix server.
now, I have files within a vmail folder.
I need to forward those email to the correct smtp server
(no-postfix) ... so I tried to do a batch script that use mail to
send back the mail ... The problem is that I need to impersonate the
headers (from/subject) correctly ... (I don't care about spf or dkim
as the email will only travel in the private lan, and I have disable
the check on the private network)
Is there a way with postfix or any other tools to resend those mail
(I need to change the To) ?

Thanks for your help.

Stéphane
PS: I apologize if my english is not correct enough to be
understood, I stay at your service for more informations.



You should be able to do this with the procmail tool.

Alternately, you can set up a second postfix instance and use
header_checks to mangle the headers as needed.



   -- Noel Jones



Reply via email to