Results 1 to 3 of 3
Hi
I have two ip on one server (ip1, ip2) and I want do that mails from domain aaa.net.com go out with ip2 in headers and mails from other domains ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-15-2011 #1Just Joined!
- Join Date
- Sep 2010
- Posts
- 3
postfix - one domain on second address ip(multii ip)
Hi
I have two ip on one server (ip1, ip2) and I want do that mails from domain aaa.net.com go out with ip2 in headers and mails from other domains go out with ip1 in headers.
How do this if is it possible?
I tried this:
/etc/postfix/master.cf
But I get error login and in logs:Code:localhost:smtp inet n - n - - smtpd ip1:smtp inet n - n - - smtpd ip2:smtp inet n - n - - smtpd -o myhostname=aaa.net.com
Thankspostfix/smtpd[30707]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: Permission denied
postfix/smtpd[30707]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: Permission deniedLast edited by raczkowski1; 07-15-2011 at 02:52 PM.
- 07-16-2011 #2
raczkowski1,
The lines you have posted in master.cf define separate smtpd processes listening for incoming mail, not separate relay transports. Offhand I cannot answer your question completely, but it will likely be definition or duplication of another "outbound" transport in master.cf that you will then reference in a mapfile for mail from a particular domain ala /etc/postfix/transport. I am thinking something like "sender dependent transport."
N
- 07-18-2011 #3
I have one domain on 3 IP (=3 servers)
and I never had to change anything related to IP in /etc/postfix/master.cf
but all my IP relevant stuff was done in
/etc/postfix/main.cf
I have 3 outbound and 2 inbound mail servers on the 3 IPs and all works fine since years


Reply With Quote
