Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-24-2007, 12:28 PM
Advanced Member
 
Posts: 187
Default Make jetty bind to a specific ip

We use zimbra 5 os rc1. We need to have zimbra bind to a specific ip and are following this.
I have worked down to the tomcat section in that thread and zimbra 5 rc1 does not use tomcat, it uses jetty. So, can anyone tell me how to make jetty bind to a specific ip? I have googled and found some things but as you all know, zimbra config for jetty is quite different from others config. In the above link, i do not have a components.xconf. I do have a jetty.xml file but do not know where or if this is the file to make jetty bind to a specific ip. Any help is appreciated. We are aware that updates will wipe this "bind to a specific ip" out.
Reply With Quote
  #2 (permalink)  
Old 10-25-2007, 09:03 AM
Advanced Member
 
Posts: 187
Default

You can make jetty bind to a specific ip, right? According to jetty doc, you can set the host listener to a specific ip but in the zimbra version of jetty, in the jetty.xml file, there is not listener. I see the jetty.properties where you can set bind addresses for pop3, lmtp, pop3ssl. Where do you make jetty bind to a specific ip?
Reply With Quote
  #3 (permalink)  
Old 10-26-2007, 06:35 AM
Active Member
 
Posts: 31
Default

Nobody here who can tell us how we can bind jetty on one IP address ?
Reply With Quote
  #4 (permalink)  
Old 11-28-2007, 04:30 PM
Intermediate Member
 
Posts: 20
Default Your mileage may very on this one

I just downloaded the latest RC2 for RHEL4 : zcs-5.0.0_RC2_1745.RHEL4

Since everything else seems to work well with my CentOS4 box, here is the mod I made to the jetty.xml config to work.

** Your mileage may vary and this may or may not work in the final release **

/opt/zimbra/mailboxd/etc/jetty.xml.in

Find the XML container that starts with <Call name="addConnector"> between the HTTPBEGIN and HTTPEND comments

Just below the tag : <Set name="confidentialPort">%%zimbraMailSSLPort%%</Set> , insert a line with :

<Set name="Host">your.public.ip.addy</Set>

Then yank the entire section between HTTPBEGIN and HTTPEND and paste it below (in vi : "33G", "14yy", "46G", "p")

Now modify the "Host" tag to have 127.0.0.1
<Set name="Host">127.0.0.1</Set>

You now have two connectors, one that listens on the interface IP and one that listens on the loopback (required).

Hope that helps
Reply With Quote
  #5 (permalink)  
Old 03-10-2008, 06:58 AM
Active Member
 
Posts: 31
Default

Somebody who can tell me how I can do this with the final 5.x versions of Zimbra ?
It isn't working here.
I am getting these error:

"A network service error has occurred (zclient/io)." when I try to log in to a mailbox.
Reply With Quote
  #6 (permalink)  
Old 03-15-2008, 07:07 PM
Junior Member
 
Posts: 6
Default

Priyantha, it worked fine for me. The error you are getting is probably from the lack of the www server bound to the localhost. If you type netstat -lptn | grep "80" what do you get? You should see port 80 bound to the IP you configured in the step above and to 127.0.0.1. The PID for both should show java as the program controlling it.
Reply With Quote
  #7 (permalink)  
Old 04-12-2008, 09:05 PM
Intermediate Member
 
Posts: 20
Default

Just a quick update on this for 5.0.4 GA:

I had to modify one line (2 if running SSL) from the standard jetty.xml.in.

in /opt/zimbra/mailboxd/etc/jetty.xml.in :

Find this section :

<!-- user services connector, no SSL -->
<!-- HTTPBEGIN -->

Look for this line :

<Set name="confidentialPort">%%zimbraMailSSLPort%%</Set>

Insert this line below it:

<Set name="Host">10.10.52.125</Set> (where 10.10.52.125 is the primary IP of your server)

Repeat for the SSL section with these tags (only necessary if using SSL)

<!-- user services connector, SSL -->
<!-- HTTPSBEGIN -->
Reply With Quote
  #8 (permalink)  
Old 04-13-2008, 03:23 PM
Advanced Member
 
Posts: 187
Default

Quote:
Originally Posted by m-cubed View Post
Priyantha, it worked fine for me. The error you are getting is probably from the lack of the www server bound to the localhost. If you type netstat -lptn | grep "80" what do you get? You should see port 80 bound to the IP you configured in the step above and to 127.0.0.1. The PID for both should show java as the program controlling it.
OK, now after making these chnges and following:
[SOLVED] Howto: Bind to one specific IP / Listen to one IP
I get this error:
A network service error has occurred (zclient/io)

I run netstat -lptn and see my port bound to my IP but i do not see that same port bound to 127.0.0.1. What do i do to correct this?

So, i have found that this error is a jetty thing. I can edit everything as these threads indicate but when i edit /opt/zimbra/mailboxd/etc/jetty.xml.in, this is when the above error occurs. When i make /opt/zimbra/mailboxd/etc/jetty.xml.in without <Set name="Host">10.10.52.125</Set> the web client starts working.
Sorry, i used the post above m_cube's post to do this. I did not copy the section and insert 127.0.0.1. Now it works

Last edited by carnold; 04-13-2008 at 07:31 PM..
Reply With Quote
  #9 (permalink)  
Old 04-23-2008, 12:47 AM
Intermediate Member
 
Posts: 20
Default

Quote:
Originally Posted by carnold View Post
Sorry, i used the post above m_cube's post to do this. I did not copy the section and insert 127.0.0.1. Now it works

I do apologize, my previous post left out that important step. You do need to copy the 14 or 15 lines for HTTPBEGIN/HTTPEND and put 127.0.0.1 in the <Set name="Host"></Set> tags so you have two containers.. one for the public IP and one for 127.0.0.1
Reply With Quote
  #10 (permalink)  
Old 04-23-2008, 06:15 PM
Loyal Member
 
Posts: 88
Default

Take a look here
Zimbra 5.0 RC1 http jetty binding to IP on Server to multiple IPs

I have it bind to one IP with no problem

[]s
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.