Results 1 to 4 of 4

Thread: ZCS 6 specify IP address to bind to?

  1. #1
    internalkernel's Avatar
    internalkernel is offline Active Member
    Join Date
    Mar 2009
    Location
    got root?
    Posts
    26
    Rep Power
    6

    Default ZCS 6 specify IP address to bind to?

    I'm running zcs 6.0.2 on Ubuntu 8.04 - I have two public IP addresses. I'd like Zimbra to only bind port 80 to one of them since I'd also like to run Apache.

    I can tell Apache what IP address and port to listen on, i.e. by defining the specific IP and port in ports.conf and httpd.conf.

    Can I do the same for Zimbra? I was hoping it would only bind to the address that the hostname is resolving to, instead of all addresses...

    For instance:
    xxx.xxx.xxx.100 - mail.mydomain. com - Zimbra port 80
    xxx.xxx.xxx.101 - www.mydomain. com - Apache port 80

    I have the proper IP addresses set up DNS and hosts file...

    I know I can use Apache, mod_proxy and virtual hosts to redirect Zimbra to a non-standard port, which has been my standard config.

    Thanks
    Daniel

  2. #2
    veronica is offline Outstanding Member
    Join Date
    Jun 2008
    Posts
    594
    Rep Power
    8

    Default

    Yes it uses based on hostname and not IP address.

  3. #3
    internalkernel's Avatar
    internalkernel is offline Active Member
    Join Date
    Mar 2009
    Location
    got root?
    Posts
    26
    Rep Power
    6

    Default

    That was the impression that I had gotten... however, my experience seems to differ.

    The IP address I want assigned to zimbra, is the only one present in my hosts file and is the A record in DNS for both mail.mydomain .com and mydomain .com.

    I even went so far as to take down the virtual interface while zimbra installed. Allowed zimbra to install, restarted the network to bring both IPs up - and apache complained about the socket being taken on my second IP.

    This is a clean install of Ubuntu, the only thing installed on it is MySQL, Apache, Webmin and Zimbra. Here's the smoking gun:

    Code:
    root@mail:~# lsof -i :80
    COMMAND   PID   USER   FD   TYPE  DEVICE SIZE NODE NAME
    java    17002 zimbra   74u  IPv6 1501558       TCP *:www (LISTEN)
    It seems regardless of what is set in hosts or DNS, it attempts to bind to all listening addresses, i.e. *:www

    Where/How can I change this behavior?

    Thanks

  4. #4
    Rich Graves is offline Outstanding Member
    Join Date
    Jan 2007
    Location
    Minnesota
    Posts
    719
    Rep Power
    9

    Default

    Read the Jetty documentation on mortbay.org... with the caveat that you'll have to redo the change after every Zimbra upgrade, and possibly hack the startup scripts because many config files are built on the fly.

    There's another way, though. Let Zimbra bind to *:80, move Apache to 8080, and redirect one ip:80 to ip:8080 with iptables. I recall there being a recipe for this in the Jetty FAQ, under "how can I listen on port 80 if running as non-root."

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Internal Ip address Showing in Mail headers
    By emmaylots in forum Administrators
    Replies: 16
    Last Post: 10-09-2009, 01:05 AM
  2. modify IP address
    By mvalenzuela.cl in forum Administrators
    Replies: 1
    Last Post: 03-26-2009, 09:40 AM
  3. Replies: 4
    Last Post: 08-04-2008, 06:17 PM
  4. Ability to designate an IP Address
    By Isi in forum Administrators
    Replies: 18
    Last Post: 05-22-2007, 03:45 AM
  5. Two IP Address
    By ikmsupport in forum Administrators
    Replies: 7
    Last Post: 11-23-2006, 08:26 PM

Posting Permissions

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