Find the answer to your Linux question:
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.
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    4

    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
    Code:
    localhost:smtp  inet n - n - - smtpd
    ip1:smtp inet n - n - - smtpd
    ip2:smtp inet n - n - - smtpd -o myhostname=aaa.net.com
    But I get error login and in logs:
    postfix/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 denied
    Thanks
    Last edited by raczkowski1; 07-15-2011 at 02:52 PM.

  2. #2
    Linux Newbie nplusplus's Avatar
    Join Date
    Apr 2010
    Location
    Charlotte, NC, USA
    Posts
    106
    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

  3. #3
    Linux Newbie hans51's Avatar
    Join Date
    May 2011
    Posts
    136
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •