[SOLVED] Howto: Bind to one specific IP / Listen to one IP

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
LinuxProphet
Posts: 12
Joined: Fri Sep 12, 2014 10:28 pm

[SOLVED] Howto: Bind to one specific IP / Listen to one IP

Postby LinuxProphet » Tue Sep 04, 2007 11:13 pm

Mr. Digi.
I tried the instructions you gave so eloquently. Alas, now I am having major issues with tomcat.
I even took the server down and re-installed. No problems until I edited the tomcat file and added the address= line.
The error is a java connect Connection refused error. Now I can't execute zmprov commands.
Any thoughts anyone?
Thanks
LP


7223robh
Posts: 32
Joined: Fri Sep 12, 2014 10:30 pm

[SOLVED] Howto: Bind to one specific IP / Listen to one IP

Postby 7223robh » Wed Sep 05, 2007 1:53 am

See my post a couple up (You need 7101/tcp listening on localhost). Apparently it works if you use zmprov -l but I've not tried it.
1540ericg
Posts: 2
Joined: Fri Sep 12, 2014 10:34 pm

[SOLVED] Howto: Bind to one specific IP / Listen to one IP

Postby 1540ericg » Sat Sep 15, 2007 9:00 am

I submitted bug 20329 for the problem with the basic client and bind IP. The workaround of marcello would not cut it for me. Like you say it's a dirty hack and I'm not sure of the scalability of such a hack.
Anyway figured was better to report the problem and get it fixed at the source..
Vote for it!
Eric
magikman
Posts: 13
Joined: Fri Sep 12, 2014 10:45 pm

[SOLVED] Howto: Bind to one specific IP / Listen to one IP

Postby magikman » Sat Sep 15, 2007 9:44 am

I am having a bit of trouble getting mail through after using this method. After completing this, i am not longer able to receive mail, everything is being deferred. For some reason it is trying to connect to http://www.dvterry.com">http://http://www.dvterry.com rather than mail.dvterry.com. Where can i change with? The logs of this are:
Sep 15 08:35:05 www postfix/qmgr[26921]: 91D881F84D5: to=, relay=none, delay=7956, status=deferred (delivery temporarily suspended: connect to http://www.dvterry.com">http://http://www.dvterry.com[64.34.197.115]: Connection refused)
Sep 15 08:35:05 www postfix/qmgr[26921]: C38751F84BF: to=, relay=none, delay=15764, status=deferred (delivery temporarily suspended: connect to http://www.dvterry.com">http://http://www.dvterry.com[64.34.197.115]: Connection refused)
Anyone have any ideas? Is it possible to go through and remove everything relating to http://www.dvterry.com">http://http://www.dvterry.com and change it to mail.dvterry.com? Why can't you choose the binding IP/hostname during the initial install? That would be awesome and a much needed feature!
carnold
Outstanding Member
Outstanding Member
Posts: 224
Joined: Fri Sep 12, 2014 10:40 pm

[SOLVED] Howto: Bind to one specific IP / Listen to one IP

Postby carnold » Thu Oct 25, 2007 2:34 pm

I am trying to get zimbra to bind to a specific ip and have followed the steps on the first page. However, we use zimbra 5 rc1 and zimbra 5 rc1 does no use tomcat, it uses jetty. So, how do users on zimbra 5 rc1 get jetty to bind to a specific ip?
tuanta
Posts: 23
Joined: Fri Sep 12, 2014 11:21 pm

[SOLVED] Howto: Bind to one specific IP / Listen to one IP

Postby tuanta » Thu Mar 13, 2008 12:09 am

[quote user="dijichi2"]Great job, MrDigi! This is invaluable for many situations. It would be great to get this added to the wiki and refined over time.
Thanks for your work.[/QUOTE]
Could you please tell me where I can find the updated process compatible with Zimbra 5.0.
Thanks,

Tuan
OneLoveAmaru
Posts: 7
Joined: Fri Sep 12, 2014 11:30 pm

[SOLVED] Howto: Bind to one specific IP / Listen to one IP

Postby OneLoveAmaru » Mon May 05, 2008 10:32 am

I would also like to find information on binding zimbra to a specific IP, so that I can also run apache on this box with a different IP. mod_proxy just isn't working for me at all. I am running Debian Etch i386. Any help?????
*EDIT*
let me charify, i want to run ALL services on a seperate IP. if I can't do that, then just the webmail interface on a seperate IP. I would be alright with that, since the webadmin is on a non-standard port to begin with.
carnold
Outstanding Member
Outstanding Member
Posts: 224
Joined: Fri Sep 12, 2014 10:40 pm

[SOLVED] Howto: Bind to one specific IP / Listen to one IP

Postby carnold » Mon May 05, 2008 11:10 am

[quote user="OneLoveAmaru"]I would also like to find information on binding zimbra to a specific IP, so that I can also run apache on this box with a different IP. mod_proxy just isn't working for me at all. I am running Debian Etch i386. Any help?????
*EDIT*
let me charify, i want to run ALL services on a seperate IP. if I can't do that, then just the webmail interface on a seperate IP. I would be alright with that, since the webadmin is on a non-standard port to begin with.[/QUOTE]
By following the OP's first post, with the exception of jetty, i am running a separate instance of LDAP and Apache on the same box as Zimbra. I believe when you bind jetty to a specific IP to will accomplish the web interface you are looking to do. Just follow the first post and you should be fine.
fverbeek
Posts: 3
Joined: Fri Sep 12, 2014 11:25 pm

[SOLVED] Howto: Bind to one specific IP / Listen to one IP

Postby fverbeek » Fri Apr 17, 2009 1:41 pm

I wanted postfix to send messages through a secondary IP address (failover address, not in a cluster, just a simple manual failover) instead of the primary address on the interface.

smtp_bind_address is not possible as explained above, and inet_addresses doesn't work for binding when sending, apparently.

After playing with postfix' config around for a while, I took the alternative route :rolleyes: :
iptables -t nat -A POSTROUTING -o eth0 

-s the_primary_ip_addresses

-p tcp --dport 25

-j SNAT --to the_ip_address_you_want_used


kinda ugly, but does the trick. Still listening on all addresses (including localhost), always sending through the chosen address :cool:

Just got to make sure it's documented somewhere....
ChaosFreak
Posts: 11
Joined: Sat Sep 13, 2014 12:22 am

[SOLVED] Howto: Bind to one specific IP / Listen to one IP

Postby ChaosFreak » Mon May 04, 2009 8:47 am

[quote]JUST FOLLOW THE FIRST POST AND YOU SHOULD BE FINE.[/QUOTE]
UMM...THE FIRST POST HAS NO INSTRUCTIONS FOR ZIMBRA 5 WITH JETTY, IT ASSUMES ZIMBRA 4 WITH TOMCAT...
I FOUND THIS SOLUTION:

BINDING ZIMBRA TO A PARTICULAR IP
SEARCH FOR "PARTICULAR IP" IN THAT PAGE. OR, HERE ARE THE INSTRUCTIONS:


  • EDIT /OPT/ZIMBRA/MAILBOXD/ETC/JETTY.XML.IN

    ADD YOUR-IP-ADDRESS TO THE HTTP CONNECTOR

  • EDIT /OPT/ZIMBRA/MAILBOXD/ETC/ZIMBRA.WEB.XML.IN

    UNCOMMENT ZIMBRA.SOAP.URL, CHANGE LOCALHOST:7070 TO YOUR-IP-ADDRESS

  • EDIT /OPT/ZIMBRA/MAILBOXD/ETC/ZIMBRAADMIN.WEB.XML.IN

    UNCOMMENT ZIMBRA.SOAP.URL, CHANGE LOCALHOST:7070 TO YOUR-IP-ADDRESS

  • SU - ZIMBRA

  • ZMCONTROL STOP

  • ZMCONTROL START


:) IT WORKS FOR ME!

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 20 guests