Carbonio not using ...
 
Notifications
Clear all

Carbonio not using the virtual hostname properly

9 Posts
3 Users
1 Likes
145 Views
(@rwebb616)
Joined: 8 years ago
Posts: 39
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: 6 months ago
Posts: 228
 

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: 8 years ago
Posts: 39
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: 8 years ago
Posts: 39
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: 8 years ago
Posts: 39
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: 8 years ago
Posts: 39
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: 6 months ago
Posts: 228
 

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: 2 years ago
Posts: 120
 

@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: 8 years ago
Posts: 39
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 2 weeks ago by rwebb616

   
ReplyQuote