I have this problem.
A internal mail server with domain test.local send mail using a Ispconfig server.
I have to rewrite the email address of all emails from the internal server with another.
On postfix website, i read about smtp_generic_maps that could be good for me.
I modified main.cf with
smtp_generic_maps = hash:/etc/postfix/generic
and in /etc/postfix/generic there is:
After postmap /etc/postfix/generic, i restarted ispconfig but,when i send mail from test.local server to outside, it doesn't work and the address email are always @test.local.
Can Someone help me?