Force postfix to send on specific IP

Discussion in 'Server Operation' started by Noodles25, Sep 5, 2008.

  1. Noodles25

    Noodles25 New Member

    I have a server with multiple IPs, I can't work out how to force postfix to send via one of our virtual IPs rather than the main IP. (For example main IP is, virtual IP is

    I've tried this in
    inet_interfaces =

    I've tried this in
    Code:      inet  n       -       n       -       -       smtpd
    Using Postfix 2.3.3 on RHEL5

    Can anyone tell me how to force postfix to send on ?
  2. kalinix

    kalinix New Member

    you may want to use smtp_bind_address. man 5 postconf and look for it
  3. Noodles25

    Noodles25 New Member

    I've tried that and it looks like it should bind to inet_interfaces. Neither of which seem to work.
  4. topdog

    topdog Active Member HowtoForge Supporter

    If it does not work then use NAT to rewrite the source address of the smtp packets before they leave your server.

Share This Page