Sorry my English is very poor. I'll try describe it better now:
I have 10 mail server and 9 are smartermail an 1 exchange, and same domains can exist in each one but don't mail account. An example I have a domain EXAMPLE.COM created in two plataforms: migue...@example.com --> smartermail01.dominio.com migue...@example.com --> exchange.dominio.com Exchange and smartermail check the MX, delivery message across my outgoing server, migue...@example.com can send a mail to migue...@example.com. When a message will be delivered by my outgoing server using web, I have a pattern list based in header where message was created ( smartermail01.dominio.com or exchange.dominio.com). Based in this pattern I decide what ip will deliver the message. msa-proxy: So, when a user acess via thunderbird your smtp record is the same for users in smartermail01.dominio.com and exchange.dominio.com (smtp.dominio.com). The postfix check the user and pass in AD and send the message to my outgoing server. But the message don't cross the smartermail or exchange now, and I don't know where the user because doesn't have the information in the header now. For this I want write a header where user are created(smartermail or exchange) for can use a pattern list to delivery messages in the same IP when I delivery a message like web ________________________________ De: owner-postfix-us...@postfix.org <owner-postfix-us...@postfix.org> em nome de Viktor Dukhovni <postfix-us...@dukhovni.org> Enviado: terça-feira, 25 de abril de 2017 14:49:07 Para: Postfix users Assunto: Re: Write a personalized header > On Apr 25, 2017, at 1:35 PM, Luis Miguel Flores dos Santos > <miguel_flores_san...@hotmail.com> wrote: > > Victor can I use "Postfix After-Queue Content Filter" to insert new header > based in a query ? Wrong question. You should not have to do this at all. Why do you have a proxy that cannot do mail routing between Postfix and the downstream MTAs? The right solution is deliver directly from Postfix to the intended destination. > Today I have 10 mail server and I have created a proxy for the domain to > coexist between them. And create a postfix to clients connect and send > message (Previous mail) What is the purpose of the proxy. Given that your English is poor, a longer description of the requirements will likely make more sense than a short one which will lose a lot in translation. -- Viktor.