Central webmail login

ricardo777

Verified User
Joined
Mar 29, 2012
Messages
89
Location
Netherlands
Hello,

Can someone explain and help me how other host combine 1 webmail login for multiple server like: https://mail.ovh.net/ or https://transip.email/ or many other webhosts.

If I got multiple server users now login per server.

How can I use 1 webmail for multiple server how do the other host do it, I have search I can only find something like use a proxy for login but I did not find any working solution.
 
It's easy. You have your main domain like yourcompany.nl (or another domain) with webmail which you want to use to make this happen.
So change it, in such way that webmail points to webmail.yourcompany.nl instead of to www.yourcompany.nl/webmail like this:
https://help.directadmin.com/item.php?id=214

Now everybody can visit webmail.yourcompany.nl and login with their own domain credentials like [email protected] and their own password.
 
Hello,

Yes but if they are using another mail server how do they authenticate? like 1 webmail and 10 mail servers?
 
Thats why they use webmail.theirdomain.com and not your site.
 
@scsi: Yes I told that too, but that still does not answer the question on how to give the login there for multiple servers.

@ricardo777: I came across some configuration options which might make this also possible, but I forgot to copy and paste the link, because I was looking for something else.
This is however a roundcube question, maybe you can ask best at their forum because this will require some additional configuration as far as I could see.
Maybe this can help:
http://www.roundcubeforum.net/index.php?topic=4696.0
 
You just need to use variables in roundcube:
$config['default_host'] = 'mail.%s';
$config['smtp_server'] = 'mail.%z';

Those two set the mailserver to be always mail.domain.tld (the domain is taken from the part after @) as explained in roundcube config:
FOR IMAP
// %s - domain name after the '@' from e-mail address provided at login screen
FOR SMTP:
// %z - IMAP domain (IMAP hostname without the first part)

This will allow you to have a centralized webmail that use standard protocol to connect to the server which is actually hosting the domain.

Best regards
 
@scsi: Yes I told that too, but that still does not answer the question on how to give the login there for multiple servers.

@ricardo777: I came across some configuration options which might make this also possible, but I forgot to copy and paste the link, because I was looking for something else.
This is however a roundcube question, maybe you can ask best at their forum because this will require some additional configuration as far as I could see.
Maybe this can help:
http://www.roundcubeforum.net/index.php?topic=4696.0

Hello,

Yes we now use a custom script to see the corresponding server but I am still looking for a proxy.



You just need to use variables in roundcube:
$config['default_host'] = 'mail.%s';
$config['smtp_server'] = 'mail.%z';

Those two set the mailserver to be always mail.domain.tld (the domain is taken from the part after @) as explained in roundcube config:
FOR IMAP
// %s - domain name after the '@' from e-mail address provided at login screen
FOR SMTP:
// %z - IMAP domain (IMAP hostname without the first part)

This will allow you to have a centralized webmail that use standard protocol to connect to the server which is actually hosting the domain.

Best regards

Hello,

I have tried that one before but SSL is not possible with that one, then is says the SSL certificate is invalid.
 
Well, don't use SSL so, if all the host have no an SSL cert and the host are on different server you may need to don't use SSL or request an SSL Certificate (using Let's Encrypt for example) for each certificate.

Best regards
 
I am trying to set this up as well, for some reason though my roundcube won't resolve the domainnames. If i set

Code:
$config['default_host'] = '';

Then i get the extra server box. When i fill in a server url (eg. mail.domain.com), i'll get a imap error. If i however fill out the IP-address of the same server, i am able to connect.

If i try to resolve the IP directly with php through gethostbynamel, it resolves without a problem.

Any idea's ?
 
Back
Top