Can i configure postfix for rewrite the mail address of some user when they send email, without breaking ISPconfig? If yes, when i upgrade ISP with a new version, will i have to change again postfix's main.cf? Thanks Alex
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: [email protected]l [email protected] [email protected]l [email protected] 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? Thanks Alex
hi Till, thanks for your help. I tried to search in the ISPC manual but i havn't founded nothing about change email address of email that transit on the server. How can i use redirect?
Setup a new email user and then enter the destination email address in the options of the mail account.
i tried but it doesn't work like i want.(or i made a mistake) i have this: 1 exchange server and 5 clients. This clients have only one external email like [email protected] but exchange is stupid and it want that every client has a different address so when they send an email, who recive that see the internal email address. My idea is to configure exachange to use like smtp server my ISPConfig and change all the sender address from @domain.tld to [email protected]. I know that it's possible with postfix but i can't understand where i made a mistake. Thanks Alex
Have a look here: http://www.postfix.org/rewrite.html You could also pipe the mails through formail to rewrite the sender address. Have a look at Code: man formail