Results 1 to 8 of 8

Thread: [SOLVED] Zimbra/postfix bound to dynamic (heartbeat) IP

  1. #1
    Join Date
    Feb 2010
    Location
    South Africa
    Posts
    107
    Rep Power
    5

    Default [SOLVED] Zimbra/postfix bound to dynamic (heartbeat) IP

    I have Zimbra 2 servers setup for HA using DRBD and heartbeat.
    Both servers have private staic IPs (10.10.69.34 & 10.10.69.35)
    Heartbeat assigns 10.10.69.33 to which ever server is active primary at that moment.
    We have NAT setup to destination-NAT our public IP to 10.10.69.33 and source-NAT 10.10.69.33 out to our public IP.

    The problem is that Zimbra (postfix?) is always talking out with the server's static IP (10.10.69.34) and not the assigned dynamic (heartbeat) IP.
    Is there a way that I can force Zimbra (postfix) to always 'speak out' with the dynamically assigned IP?
    Listening bound IP does not matter as incoming traffic (like port 80, 7071, etc) is going to the dynamic IP and working fine. Just to get outgoing IP to be correct is my problem.

    Thanks
    Ekkas

  2. #2
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    You could try the following but please note that it has not been tested
    Code:
    su - zimbra
    zmlocalconfig -e postfix_inet_interfaces=10.10.69.33
    You will then need to update /opt/zimbra/conf/zmmta.cf and add a new line
    Code:
    POSTCONF inet_interfaces                        LOCAL postfix_inet_interfaces
    Then restart Postfix using
    Code:
    su - zimbra
    zmmtactl stop ; zmmtactl start
    The smtp daemon should now be listening on the floating IP.

  3. #3
    Join Date
    Feb 2010
    Location
    South Africa
    Posts
    107
    Rep Power
    5

    Default

    Thanks a lot.

  4. #4
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Did that work for you ? If it did then you need to make a note as the changes will not be persistent across upgrades.

  5. #5
    Join Date
    Feb 2010
    Location
    South Africa
    Posts
    107
    Rep Power
    5

    Default

    We were in a bit of a tight spot and needed to fix it a.s.a.p, so we made a workaround on our breakout router with NAT to tranaslate the wrong IP to the correct one, so I did'nt try this method, but might need it in future again if I do not have control over the router.

  6. #6
    Join Date
    Feb 2010
    Location
    South Africa
    Posts
    107
    Rep Power
    5

    Default

    Thank you for your response.
    Yes, that is how I installed it, but it seems after installation and changing the IP to the static IP (on eth0) Zimbra use that to connect out and not the HA IP assigned to eth0:0
    Unless, in my efforts to get my first HA working(!), I changed something to invoke that behaviour.
    Ekkas

  7. #7
    Join Date
    Feb 2010
    Location
    South Africa
    Posts
    107
    Rep Power
    5

    Default

    server1.mydomain.co.za 10.10.69.33 drbddisk::r0 Filesystem::/dev/drbd0:pt::ext3 zimbra
    Zimbra is disabled on reboot as /opt is not mounted yet by then. But is is not a problem as I just added all 3 IPs to be source-natted to the router's public IP instead of just the HA IP.
    Ekkas

  8. #8
    Join Date
    May 2011
    Posts
    1
    Rep Power
    4

    Default

    Just wanted to post that I did try the commands in post #2 and it did work as far as binding smtp to the dynamic IP. Where it ran into an issue is that postfix was no longer (at least in my case) listening on 127.0.0.1 which then caused Zimbra to not be able to completely process messages. Appears that all messages then sat in the deferred queue.

    I changed the inet_interfaces to "all" and that brought me back to the original issue but at least a functioning Zimbra.

    Thought I'd post in case someone finds this thread and tries it out.

Similar Threads

  1. Replies: 32
    Last Post: 03-18-2011, 11:03 AM
  2. [SOLVED] Adding XP PCs to a samba domain...
    By NoDoze in forum Administrators
    Replies: 43
    Last Post: 08-13-2009, 04:22 PM
  3. Replies: 9
    Last Post: 05-02-2009, 07:11 AM
  4. Replies: 7
    Last Post: 02-15-2009, 09:08 PM
  5. Slipt DNS: is NAT or dynamic IP more relevant ?
    By john99 in forum Installation
    Replies: 1
    Last Post: 08-28-2008, 12:57 AM

Posting Permissions

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