Results 1 to 2 of 2

Thread: Change IP of mailstore and repoint Zimbra Proxies to it?

  1. #1
    Join Date
    May 2014
    Posts
    6
    Rep Power
    1

    Default Change IP of mailstore and repoint Zimbra Proxies to it?

    Hi,

    We are putting a shared IP in between our 2 mailservers that are in sync with DRBD.

    It started off as 1 proxy and 1 mail server. Initially, the proxy was pointed directly at the mailstore (mail1.test.com) with IP of 10.10.50.50 . Since then, we have added a 2nd Mailstore with IP of 10.10.50.60 and is in sync with the primary using DRBD.

    We have added a shared IP between them using Pacemaker (similar to CARP, UCARP). The shared IP is 10.10.50.175.

    How do I get the proxies pointed at this new IP of 10.10.50.175?

    I have setup split DNS, and the hostname is resolving to the new IP.

    Code:
    [root@proxy1 ~]# nslookup mail1.test.com
    Server:         10.10.50.17
    Address:        10.10.50.17#53
    
    Name:   mail1.test.com
    Address: 10.10.50.175
    Restarted Zimbra Proxy

    I edited the Proxy1 hosts file so that mail1.test.com is 10.10.50.175
    Code:
    cat /etc/hosts
    10.10.50.175 mail1.test.com
    Restarted Zimbra Proxy

    Setup DNSMasq

    Code:
    cat /etc/resolv.conf
    nameserver 127.0.0.1
    Code:
    [root@proxy1 ~]# nslookup mail1.test.com
    Server:         127.0.0.1
    Address:        127.0.0.1#53
    
    Name:   mail1.test.com
    Address: 10.10.50.175
    Once again I restarted Zimbra Proxy.

    No matter what I do, the proxy continues to connect to 10.10.50.50.

    I even went as far as rebooting the Proxy1 server since I thought perhaps things were cached.

    At this point, the only solution I can think of is to make an iptables rule that redirects my packets destined for 10.10.50.50 to 10.10.50.175.

    Hopefully someone can shed some light. I have looked through the forums.

    Came across:
    Change IP Address
    Which they tell the guy to make sure DNS resolves..Which it does.

    And basic netcat tests to 10.10.50.175 works fine on every port.

    TCPDUMP shows all packets leaving the Proxy1 server going directly to 10.10.50.50.

    All servers are running CentOS 6.5 stable with the latest version of Zimbra 8.0.7 Open Source edition. All firewalls have been disabled so that can not be the problem.

    Is there some place where the IP address is cached?

    Thanks for any help.

  2. #2
    Join Date
    Oct 2012
    Posts
    22
    Rep Power
    3

    Default

    Well I guess since changing the IP of a mailstore is apparently impossible, we were able to get by with adding this iptables rule to each of our proxies.

    iptables -A OUTPUT -d 10.10.50.50/32 -j DNAT --to-destination 10.10.50.175

    Yay.

Similar Threads

  1. Replies: 0
    Last Post: 12-07-2012, 02:33 AM
  2. Problem with Zimbra Webclient and two Mailstore servers
    By afernandez2012 in forum Administrators
    Replies: 0
    Last Post: 11-08-2012, 03:19 PM
  3. Replies: 3
    Last Post: 01-14-2011, 01:02 PM
  4. [SOLVED] Zimbra don't find a mailstore ?!?!
    By exalab in forum Installation
    Replies: 4
    Last Post: 08-05-2010, 07:18 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
  •