Carbonio not using ...
 
Notifications
Clear all

Carbonio not using the virtual hostname properly

16 Posts
6 Users
1 Reactions
1,009 Views
(@rwebb616)
Joined: 9 years ago
Posts: 59
Topic starter  

I am running two domains on a single server and have the virtual host set for both domains but when trying to log into either domain with just the user portion of the email address it is checking this against the default domain not using the virtual host name for the domain specified in the URL. 

Should this be working now? 

Rich


   
Quote
(@anahuac)
Joined: 1 year ago
Posts: 324
 

I know this is not the best answer and it also doesn't have a "solution" per se, but it works on my deployments.

And all I can think about is:

1 - add virtualhosts to all domains;

2 - fix "Public Service Host Name" to be one of the virtualnames you're using for that domain

3 - restart the whole server


   
ReplyQuote
(@rwebb616)
Joined: 9 years ago
Posts: 59
Topic starter  

Posted by: @anahuac

I know this is not the best answer and it also doesn't have a "solution" per se, but it works on my deployments.

And all I can think about is:

1 - add virtualhosts to all domains;

2 - fix "Public Service Host Name" to be one of the virtualnames you're using for that domain

3 - restart the whole server

 

So this is working on your Carbonio deployments?  I will give it a try, Thanks! 

 


   
ReplyQuote
(@rwebb616)
Joined: 9 years ago
Posts: 59
Topic starter  

I just tried this - I set the public service hostname to match the name that is used to access the server on each domain and then created a virtual host with the same name.  Virtual hosts have Let's Encrypt certificates.  

When I go to the login for one of the domains I still need to put the @domain in or it will not let me log in.  When I do append the domain it works as expected. 


   
ReplyQuote
(@rwebb616)
Joined: 9 years ago
Posts: 59
Topic starter  

So for example - two domains are exampleA.com and exampleB.com

For exampleA.com I set the Public Service Hostname (PSH) to mail.examplea.com (and DNS resolves for this) and then under virtual hosts and certificates I created mail.examplea.com and got a Let's Encrypt certificate for it.

For exampleB.com I did the same thing - set the PSH to mail.exampleb.com and created the virtual host mail.exampleb.com then got a certificate.

Rebooted the entire server and then going to mail.exampleA.com I get the login and I try to login with just the username and it says invalid.  I add @exampleA.com to the username and it works. 

Do you see anything I did wrong? 

Thanks,

Rich


   
ReplyQuote
(@rwebb616)
Joined: 9 years ago
Posts: 59
Topic starter  

Anyone?  I really need this to work properly.  

So by putting a 50 character minimum on the content of a post you just ensure that people will add junk that means nothing to exceed the 50 characters.. so might as well turn it off.  🙂 


   
ReplyQuote
(@anahuac)
Joined: 1 year ago
Posts: 324
 

I honestly can't see anything wrong on your setups... I do it exactly as you described and it's working flawlessly.


   
ReplyQuote
(@stefanodavid)
Joined: 3 years ago
Posts: 226
 

@rwebb616 if you have multiple domains/vhosts, you should always use the full email address, including the domain portion, despite what's written on the docs and on the AP. We're fixing this right now.

(There are technical reasons for this current behaviour, but in the future we might change it)


   
ReplyQuote
(@rwebb616)
Joined: 9 years ago
Posts: 59
Topic starter  

Posted by: @stefanodavid

@rwebb616 if you have multiple domains/vhosts, you should always use the full email address, including the domain portion, despite what's written on the docs and on the AP. We're fixing this right now.

(There are technical reasons for this current behaviour, but in the future we might change it)

@stefanodavid

I hope it changes because without it there is no point to having Virtual Hosting.  People don't want to have to type their entire domain name when logging in especially if they have a super long domain name.  This has been a part of Zimbra since the beginning - I would hope Carbonio follows suit.

 

This post was modified 12 months ago by rwebb616

   
ReplyQuote
(@danijel-tudek)
Joined: 1 year ago
Posts: 5
 

I have only two domains: main with all users, example.com, and the server hostname one created during installation, mx1.example.com. I wanted to set example.com to default, but changing hostnames in GUI didn't work for me either. I solved it with editing zimbraDefaultDomainName in LDAP (located at cn=config,cn=zimbra).


   
ReplyQuote
(@rwebb616)
Joined: 9 years ago
Posts: 59
Topic starter  

According to the latest release notes for version 24.3.0 this is apparently fixed and working, however I cannot make it work.  Release notes:

Simplified Login Experience for Users

The latest update to Carbonio CE webmail introduces a streamlined login experience, eliminating the need for users to type their full email address. With this enhancement, users can now log in using just their username and password, enhancing convenience and efficiency. Administrators have the flexibility to configure domain-specific virtual host names, ensuring seamless access management across various domains. This improvement prioritizes user experience and simplifies the login process, providing clarity on default domain association without additional user input.

I have two domains currently on my test server with certificates from Let's Encrypt.  Both domains are presenting the appropriate certificate.  I have their login URL in the virtual host name area field in the admin panel for each respective domain so it should be able to determine where I'm trying to log in.  I still must supply @domain.tld after my user name in order to log in.  Is there a setting somewhere that I have to toggle this feature on? 

Thanks,

Rich


   
ReplyQuote
(@rwebb616)
Joined: 9 years ago
Posts: 59
Topic starter  

Documentation seems to indicate that I need to use virtual IP addresses for this to work?  Can anyone confirm? 

This is the Documentation Link where it talks about zimbraVirtualIPAddress.  

Rich


   
ReplyQuote
 Klug
(@klug)
Joined: 13 years ago
Posts: 65
 

Posted by: @rwebb616
For exampleA.com I set the Public Service Hostname (PSH) to mail.examplea.com (and DNS resolves for this) and then under virtual hosts and certificates I created mail.examplea.com and got a Let's Encrypt certificate for it.

.../...

Rebooted the entire server and then going to mail.exampleA.com I get the login and I try to login with just the username and it says invalid.  I add @exampleA.com to the username and it works. 

PublicServiceHostname and zimbraVirtualHostName are two different things.

PublicServiceHostname is used internaly for some apps/links (password change, drive, etc).
zimbraVirtualHostName is used for handling the login (without domain) and to link with the listening IP (using zimbraVirtualIPAddress).

You have to setup zimbraVirtualHostName (to the same value than PublicServiceHostname) if you want to log in using only username and not username@domain.tld.

 


   
ReplyQuote
(@rwebb616)
Joined: 9 years ago
Posts: 59
Topic starter  

Posted by: @klug

You have to setup zimbraVirtualHostName (to the same value than PublicServiceHostname) if you want to log in using only username and not username@domain.tld.

I do have that set and verified for two domains on the box yet the login still requires the @domain.tld to log in.  Also I'm using the same thing on a zimbra machine and it's set up and working so I know how to use the function - I'm just not seeing it working on Carbonio.  I don't know if I'm missing something or if it's broken. 


   
ReplyQuote
(@rwebb616)
Joined: 9 years ago
Posts: 59
Topic starter  

Can someone from Carbonio support chime in here?  It's supposedly supposed to be working in this latest version. 


   
ReplyQuote
Page 1 / 2