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 03-18-2008, 01:01 PM
Moderator
 
Posts: 1,147
Default [SOLVED] "Public service host name" in domain creation

While creating a domain I saw a new field that must have been introduced with 5.0.x that doesn't seem to have a clear meaning (at least to me).
The new field is "Public service host name"

I have searched the help documentation, the wiki, and the forums and not found anything relevant. Can somebody explain what this field is supposed to do?
Reply With Quote
  #2 (permalink)  
Old 03-18-2008, 04:23 PM
Moderator
 
Posts: 6,237
Default

The server uses zimbraPublicServiceHostname to generate REST URLs, ie: briefcase, document, calendar sharing etc.

Say it's generating a URL like http:// server1.domain.com and you'd rather have it http:// mail.domain.com:
Quote:
zmprov md domain.com zimbraPublicServiceHostname mail.domain.com
(As long as 'mail' has a proper DNS entry to point at 'server1' both internally and externally.)
Reply With Quote
  #3 (permalink)  
Old 03-18-2008, 04:57 PM
Moderator
 
Posts: 6,237
Default

& before you ask

Say you have domainA & domainB:

If you point users at just one address (say it's mail.domainA.com) you just set:
Quote:
zmprov mcf zimbraDefaultDomainName domainA.com
and users can login with username/pass.

However, user's in domainB.com on the other hand will have to type the full login username@domainB.com/pass.

To solve that you can create a virtual host. This becomes the default domain for a user login so web-client users can log in without having to specify the domain name as part of their user name.

Admin console GUI > Domains > Virtual Hosts tab. The virtual host requires a valid DNS configuration with an A record.
OR
Quote:
zmprov md domainB.com zimbraVirtualHostname webmail.domainB.com
Users enter the virtual host name as the URL address (webmail.domainB.com) where they enter just their username/pass.
The authentication request searches for a domain with that virtual host name and authentication is completed against that domain.

Now, if you have a multi server setup you can deploy a login load balancer for the Zimbra server so that all users can log in using the same address/name instead of having to remember which server their mailbox is on.

You set up a virtual hostname of mail.example.com and configure four mail servers, mail1.example.com to mail4.example.com.

When users log on to mail.example.com, the load balancer directs the user to any one of the mail servers to verify the log on information. After successfully logging on, users are redirected to the actual server their mail is stored on. While they are logged on, all subsequent requests go directly to their server.

In order to configure this you must turn on the following for each mail server:
Quote:
zmlocalconfig -e zimbra_auth_always_send_refer=true
We also have an upcoming Bug 9469 - ZCS Mailbox Server Proxy (think of the IMAP/POP proxy principle) to take care of http, soap, rest, caldav, Zimbra Mobile, ZCO, etc.
-You should see most of that mailbox proxy completed in 5.0.3 as an alpha, except for a few things that we'll announce when it's released.

Last edited by mmorse; 08-18-2008 at 04:09 PM..
Reply With Quote
  #4 (permalink)  
Old 03-21-2008, 09:13 AM
Moderator
 
Posts: 1,147
Default

Ok thanks for the info. We have been using virtual hosts for a while now to allow users to login as email.domainname.com (we have ~20 domains running on this server).

For a while there I was sure that it was generating the share links using the virtual host address but either I was imagining that or it changed recently. I will now put in the address it should show up as in the public service host name field.

Thanks!
Reply With Quote
  #5 (permalink)  
Old 08-28-2008, 12:30 PM
Partner (VAR/HSP)
 
Posts: 425
Exclamation

A user in the standard default domain defauldomain.com logs in via ssl.webmaildomain.com (our standard webmail login) and views his documents.

When he clicks on a document, the link generated is : https://mail.defaultdomain.com... instead of https://ssl.webmaildomain.com/...

How can we change that to always be the correct https://ssl.webmaildomain.com ?

Thanks
Reply With Quote
  #6 (permalink)  
Old 08-28-2008, 01:38 PM
Moderator
 
Posts: 1,147
Default

Do you have your public service hostname set to ssl.webmaildomain.com?
That is what is used to generate the links.
Reply With Quote
  #7 (permalink)  
Old 08-28-2008, 01:46 PM
Moderator
 
Posts: 6,237
Default

Just another note: In 5.0.9+ REST URL's are now composed of 3 attributes: zimbraPublicService[Protocol + Hostname + Port] to avoid dependency on zimbraServer objects. 'Protocal' & 'Port' are automatically configured on upgrade if you have 'Hostname' set. Bug 29978 - remove requirement that zimbraPublicServiceHostname have a corresponding zimbraServer object
Reply With Quote
  #8 (permalink)  
Old 08-28-2008, 01:55 PM
Partner (VAR/HSP)
 
Posts: 425
Default

OK, but how exactly do I set those parameters?

And do I have to set them for every domain? All users (although they have mail addresses in different domains) log in via one webmail domain.

Thanks

Chris

Last edited by iway; 08-28-2008 at 02:13 PM..
Reply With Quote
  #9 (permalink)  
Old 08-28-2008, 02:19 PM
Moderator
 
Posts: 1,147
Default

As mmorse stated previously:
Quote:
Originally Posted by mmorse View Post
The server uses zimbraPublicServiceHostname to generate REST URLs, ie: briefcase, document, calendar sharing etc.
Code:
zmprov md domain.com zimbraPublicServiceHostname mail.domain.com
Say it's generating a URL like http:// server1.domain.com and you'd rather have it http:// mail.domain.com:
(As long as 'mail' has a proper DNS entry to point at 'server1' both internally and externally.)
So you will need to login to the zimbra user and run
Code:
zmprov md defaultdomain.com zimbraPublicServiceHostname ssl.webmaildomain.com
Edit: And yes it looks like you will have to set it up for every domain.
Reply With Quote
  #10 (permalink)  
Old 08-28-2008, 02:25 PM
Moderator
 
Posts: 6,237
Default

So you'd use like: zmprov md interways.de zimbraPublicServiceHostname mail.interways.de
I didn't go check but there might be fallback to server objects if you forget to provide protocol and/or port. You probably want 'https' & '443' based on the URL's you provided (zmprov gs `zmhostname` | grep zimbraMailMode would tell us more).
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.