View Full Version : Postfix address rewrite
alex916
21st June 2006, 19:55
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
alex916
22nd June 2006, 11:30
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:
user1@test.local info@domain.tld
user2@test.local info@domain.tld
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
till
22nd June 2006, 13:47
Can i configure postfix for rewrite the mail address of some user when they send email, without breaking ISPconfig?
Yes.
If yes, when i upgrade ISP with a new version, will i have to change again postfix's main.cf?
No, the main.cf is only chnaged during initial installation.
till
22nd June 2006, 13:48
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:
user1@test.local info@domain.tld
user2@test.local info@domain.tld
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?
Why dont you use the email redirect in ISPConfig?
alex916
22nd June 2006, 14:27
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?
till
22nd June 2006, 15:39
Setup a new email user and then enter the destination email address in the options of the mail account.
alex916
22nd June 2006, 16:43
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 info@domain.tld 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 info@domain.tld.
I know that it's possible with postfix but i can't understand where i made a mistake.
Thanks
Alex
falko
23rd June 2006, 00:50
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 man formail
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.