Results 1 to 7 of 7

Thread: [SOLVED] Proxy for Server

  1. #1
    Join Date
    Sep 2009
    Location
    Spain
    Posts
    233
    Rep Power
    6

    Default [SOLVED] Proxy for Server

    IHAC who uses a proxy server to connect from their datacenter to the internet.

    I've just finished setting up the ZCS servers for them and we're having problems with zimlets that need to connect to outside servers (such as the Dictionary zimlet and *.dict.org).

    We only have the default COS so far and it is set to allow access to the required domains. I even added * to see if that was the problem. It isn't

    Code:
    [zimbra@server ~]$ zmprov gc default |grep zimbraProxyAllowedDomains 
    zimbraProxyAllowedDomains: *.dict.org
    zimbraProxyAllowedDomains:  *.worldlingo.com
    zimbraProxyAllowedDomains: *.yahoo.com
    zimbraProxyAllowedDomains: *.yimg.com
    zimbraProxyAllowedDomains: *.maxmind.com
    zimbraProxyAllowedDomains: *.yahooapis.com
    zimbraProxyAllowedDomains: *.csgnetwork.com
    zimbraProxyAllowedDomains: *.google.com
    zimbraProxyAllowedDomains:  *.altavista.com
    zimbraProxyAllowedDomains: *

    I see this timout error in mailboxd.log:

    Code:
    2010-05-05 12:22:57,958 WARN  [btpool0-31://server.example.com:8080/service/proxy?target=http%3A%2F%2Fwww.dict.org%2Fbin%2FDict%3FDatabase%3Deng-spa%26Form%3DDict1%26Strategy%3D*%26submit%3DSubmit%2Bquery%26Query%3Dexit] [] log - /service/proxy: org.apache.commons.httpclient.ConnectTimeoutException: The host did not accept the connection within timeout of 25000 ms
    Is there a way to set a proxy server for the proxy servlet? ... or some way to get around this?

    thanks

  2. #2
    Join Date
    Mar 2006
    Location
    Beaucaire, France
    Posts
    2,322
    Rep Power
    13

    Default

    There is something.

    Code:
    zmprov mcf zimbraHttpProxyURL http://[user]:[pwd]@[proxy ip]:[proxy port]

  3. #3
    Join Date
    May 2006
    Location
    England.
    Posts
    927
    Rep Power
    10

    Default

    This has been one of those things that I've been aware of for a while, and been meaning to fix.

    Generally I keep forgetting to address it but it looks like such a simple fix that I just had a go. It didnt seem to work though. I even restarted the services but the same messages are seen in the log.

    How about you odeleon? Any success?

  4. #4
    Join Date
    Sep 2009
    Location
    Spain
    Posts
    233
    Rep Power
    6

    Default

    Thanks, but I made that change and now the message went from WARN to ERROR:

    Code:
    2010-05-06 17:28:36,711 ERROR [btpool0-32://zcsproxy.example.com/service/proxy?target=http%3A%2F%2Fwww.dict.org%2Fbin%2FDict%3FDatabase%3D*%26Form%3DDict1%26Strategy%3D*%26submit%3DSubmit%2Bquery%26Query%3Dtext] [] log - /service/proxy
    and just to check, the proxy is set correctly:

    Code:
    [zimbra@server ~]$ zmprov gacf |grep -i proxyurl
    zimbraHttpProxyURL: http://proxy.example.com:8081
    And the outgoing proxy doesn't need any user/password information

    Again, this is not my server, but a customer's

    Code:
    [zimbra@server ~]$ zmcontrol -v
    Release 6.0.5_GA_2213.RHEL5_64_20100202214931 RHEL5_64 NETWORK edition.

  5. #5
    Join Date
    Sep 2009
    Location
    Spain
    Posts
    233
    Rep Power
    6

    Talking

    Well, it turns out you can't have underscore characters in the proxy server's name. I had replaced that in the previous posts to protect customer's privacy so there was an innacuracy in my previous reports.

    I caught the mistake doing a tail -f on mailbox.log and saw this

    Code:
    2010-05-10 14:00:47,833 WARN  [btpool0-5://server.example.com:8080/service/proxy?target=http://translate.google.com/translate_t] [] misc - Unable to configureProxy: Illegal character in scheme name at index 4: conf_www.example.com:8081
    I changed the proxy server's name in /etc/host and it's working ok now.

    Thanks.

  6. #6
    Join Date
    Mar 2006
    Location
    Beaucaire, France
    Posts
    2,322
    Rep Power
    13

    Default

    Quote Originally Posted by odeleon View Post
    Well, it turns out you can't have underscore characters in the proxy server's name.
    AFAIK, this is not a ZCS limitation (just that ZCS likes to follow the RFCs).

    You should not be using underscore in host name nor domain name.

  7. #7
    Join Date
    Sep 2009
    Location
    Spain
    Posts
    233
    Rep Power
    6

    Default

    I realize that. Never said it was a ZCS limitation...it's more a condition of the customer's network and one I have to live with.

    Thanks!

Similar Threads

  1. Ports for Proxy Server?
    By gallimore in forum Administrators
    Replies: 3
    Last Post: 09-08-2009, 07:30 AM
  2. proxy and 502 responses
    By sdouglass in forum Administrators
    Replies: 0
    Last Post: 01-07-2009, 02:00 PM
  3. Proxy Server Used for Auto-Update Under Linux
    By soxfan in forum General Questions
    Replies: 0
    Last Post: 10-17-2008, 06:27 AM
  4. Replies: 4
    Last Post: 05-08-2008, 09:12 AM
  5. Replies: 1
    Last Post: 01-02-2008, 08:31 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
  •