Results 1 to 2 of 2

Thread: Bind 5.0.9 to one IP?

  1. #1
    bersrker is offline Intermediate Member
    Join Date
    Apr 2006
    Posts
    22
    Rep Power
    9

    Default Bind 5.0.9 to one IP?

    Hello all!

    I've followed the steps in here to get postfix, IMAP, and POP3 to bind to one IP, and here to configure jetty to listen on one IP, but I've still got several ports that are binding to *. Namely, 7777. Is there something I've missed in the jetty configuration to get this port to bind to an IP? Here's my netstat output, with a ps on the pid that's listening on 7777:

    Code:
    [root@hostname etc]# lsof | grep LISTEN | grep zimbra
    slapd      7644  zimbra    7u     IPv4            3020818                  TCP mail.xxxx.com:ldap (LISTEN)
    mysqld     8045  zimbra   11u     IPv4            3021364                  TCP localhost.localdomain:7307 (LISTEN)
    mysqld     8282  zimbra   11u     IPv4            3021551                  TCP localhost.localdomain:7306 (LISTEN)
    java       9490  zimbra    7u     IPv6            3023167                  TCP mail.xxxx.com:pop3 (LISTEN)
    java       9490  zimbra    9u     IPv6            3023217                  TCP mail.xxxx.com:pop3s (LISTEN)
    java       9490  zimbra   10u     IPv6            3023218                  TCP mail.xxxx.com:imap (LISTEN)
    java       9490  zimbra   11u     IPv6            3023219                  TCP mail.xxxx.com:imaps (LISTEN)
    java       9490  zimbra   12u     IPv6            3023220                  TCP mail.xxxx.com:7025 (LISTEN)
    java       9490  zimbra   13u     IPv6            3023227                  TCP localhost.localdomain:http (LISTEN)
    java       9490  zimbra   14u     IPv6            3023228                  TCP mail.xxxx.com:https (LISTEN)
    java       9490  zimbra   15u     IPv6            3023229                  TCP mail.xxxx.com:7071 (LISTEN)
    java       9490  zimbra   16u     IPv6            3023230                  TCP mail.xxxx.com:http (LISTEN)
    java       9490  zimbra   17u     IPv6            3023231                  TCP mail.xxxx.com:7072 (LISTEN)
    java       9490  zimbra   88u     IPv6            3023392                  TCP *:7777 (LISTEN)
    java       9490  zimbra   91u     IPv6            3023394                  TCP *:7335 (LISTEN)
    java       9490  zimbra   92u     IPv6            3023396                  TCP *:5223 (LISTEN)
    java       9490  zimbra   99u     IPv6            3023406                  TCP *:10015 (LISTEN)
    java       9490  zimbra  100u     IPv6            3023407                  TCP *:5269 (LISTEN)
    java       9490  zimbra  101u     IPv6            3023408                  TCP *:5222 (LISTEN)
    amavisd    9683  zimbra    7u     IPv4            3023272                  TCP localhost.localdomain:10024 (LISTEN)
    clamd      9821  zimbra    5u     IPv4            3023434                  TCP *:3310 (LISTEN)
    httpd      9926  zimbra    3u     IPv4            3023558                  TCP mail.xxxx.com:7780 (LISTEN)
    [root@hostname etc]# ps -ef | grep 9490
    zimbra    9490  9489  2 12:50 ?        00:00:10 /opt/zimbra/java/bin/java -Xms501m -Xmx501m -client -XX:NewRatio=2 -Djava.awt.headless=true -XX:MaxPermSize=128m -XX:SoftRefLRUPolicyMSPerMB=1 -Xss256k -Djava.io.tmpdir=/opt/zimbra/mailboxd/work -Djava.library.path=/opt/zimbra/lib -Djava.endorsed.dirs=/opt/zimbra/mailboxd/common/endorsed -Dzimbra.config=/opt/zimbra/conf/localconfig.xml -Djetty.home=/opt/zimbra/mailboxd -DSTART=/opt/zimbra/mailboxd/etc/start.config -jar /opt/zimbra/mailboxd/start.jar /opt/zimbra/mailboxd/etc/jetty.properties /opt/zimbra/mailboxd/etc/jetty-setuid.xml /opt/zimbra/mailboxd/etc/jetty.xml
    Is there something else in the Jetty config that I'm missing? Here's are the relevant portions of jetty.xml.in:
    Code:
        <!-- =========================================================== -->
        <!-- Set connectors                                              -->
        <!-- =========================================================== -->
    
        <!-- user services connector, no SSL -->
        <!-- HTTPBEGIN -->
        <Call name="addConnector">
          <Arg>
              <New id="http" class="org.mortbay.jetty.nio.SelectChannelConnector">
                <Set name="port"><SystemProperty name="jetty.port" default="%%zimbraMailPort%%"/></Set>
                <Set name="maxIdleTime">30000</Set>
                <Set name="lowResourceMaxIdleTime">1000</Set>
                <Set name="Acceptors">2</Set>
                <Set name="confidentialPort">%%zimbraMailSSLPort%%</Set>
                            <Set name="Host">192.168.10.40</Set>
              </New>
          </Arg>
        </Call>
    
        <Call name="addConnector">
              <Arg>
                     <New id="http" class="org.mortbay.jetty.nio.SelectChannelConnector">
                        <Set name="port"><SystemProperty name="jetty.port" default="%%zimbraMailPort%%"/></Set>
                        <Set name="maxIdleTime">30000</Set>
                        <Set name="lowResourceMaxIdleTime">1000</Set>
                        <Set name="Acceptors">2</Set>
                        <Set name="confidentialPort">%%zimbraMailSSLPort%%</Set>
                        <Set name="Host">127.0.0.1</Set>
                </New>
           </Arg>
            </Call>
    
    
    
    <!-- HTTPEND -->
        
        <!-- user services connector, SSL -->
        <!-- HTTPSBEGIN -->
        <Call name="addConnector">
          <Arg>
            <New id="ssl" class="org.mortbay.jetty.security.SslSelectChannelConnector">
              <Set name="Port">%%zimbraMailSSLPort%%</Set>
              <Set name="maxIdleTime">30000</Set> 
              <Set name="lowResourceMaxIdleTime">1000</Set>
              <Set name="Acceptors">2</Set>
              <Set name="keystore"><SystemProperty name="jetty.home" default="."/>/etc/keystore</Set>
              <Set name="password">@@mailboxd_keystore_password@@</Set>
                      <Set name="Host">192.168.10.40</Set>
              <Set name="ExcludeCipherSuites">
                <Array type="java.lang.String">
                  %%zimbraSSLExcludeCipherSuites%%
                </Array>
              </Set>
            </New>
          </Arg>
        </Call>
    <!-- HTTPSEND -->
    
        <!-- =============================================================== -->
        <!-- Admin services connector; requires SSL -->
        <!-- =============================================================== -->
        <Call name="addConnector">
          <Arg>
            <New id="admin" class="org.mortbay.jetty.security.SslSelectChannelConnector">
              <Set name="Port">7071</Set>
              <Set name="maxIdleTime">30000</Set>
              <Set name="lowResourceMaxIdleTime">1000</Set>
              <Set name="Acceptors">2</Set>
              <Set name="keystore"><SystemProperty name="jetty.home" default="."/>/etc/keystore</Set>
              <Set name="password">@@mailboxd_keystore_password@@</Set>
              <Set name="ExcludeCipherSuites">
                <Array type="java.lang.String">
                  %%zimbraSSLExcludeCipherSuites%%
                </Array>
              </Set>
            <Set name="Host">192.168.10.40</Set>
            </New>
          </Arg>
        </Call>
    
            <!-- =============================================================== -->
            <!-- Extension port                                                  -->
            <!-- =============================================================== -->
            <Call name="addConnector">
                    <Arg>
                    <New id="ext" class="org.mortbay.jetty.nio.SelectChannelConnector">
                            <Set name="Port">7072</Set>
                            <Set name="maxIdleTime">30000</Set>
                            <Set name="lowResourceMaxIdleTime">1000</Set>
                            <Set name="Acceptors">2</Set>
                            <Set name="Host">192.168.10.40</Set>
                    </New>
                    </Arg>
            </Call>
    and here's the info from zimbra.web.xml.in:
    Code:
            <context-param>
               <param-name>zimbra.soap.url</param-name>
               <param-value>https://192.168.10.40/service/soap</param-value>
            </context-param>
    Any ideas?

  2. #2
    tuanta's Avatar
    tuanta is offline Active Member
    Join Date
    Feb 2008
    Location
    Hanoi
    Posts
    42
    Rep Power
    7

    Default

    Did you know the ports 7777, 5222, 5223 and some others are belong to Zimbra Instant Messaging services (Jabber implementation, I believe that)?
    Hope this information can help you to find the right way.

    P.S. I will also do some tries and have more information later.
    Last edited by tuanta; 09-07-2008 at 01:16 AM.
    Kind Regards,
    Tuan

    Official website: http://www.iwayvietnam.com/
    Weblog: http://blog.iwayvietnam.com/tuanta/
    -----

    Zimbra is the best ever FOSS I've worked with.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 32
    Last Post: 03-18-2011, 11:03 AM
  2. zmclamdctl is not running after upgrade
    By Darren in forum Installation
    Replies: 24
    Last Post: 10-10-2008, 09:10 AM
  3. Bind LDAP to 1 IP
    By carnold in forum Administrators
    Replies: 0
    Last Post: 04-30-2008, 03:54 PM
  4. Make jetty bind to a specific ip
    By carnold in forum Administrators
    Replies: 9
    Last Post: 04-23-2008, 05:15 PM
  5. Views on Public vs. NAT'd IP and Bind
    By LMStone in forum Administrators
    Replies: 5
    Last Post: 10-12-2006, 02:28 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
  •