Roundcube Community Forum

 

send emails through multiple servers using one login screen in RoundCube

Started by _mash_, January 09, 2018, 12:30:55 AM

Previous topic - Next topic

_mash_

I am using the latest version of round cube. My mail are in different servers. I wanted to login to them using one screen.
$config['default_host'] =  array('singlehost.domain.com' => 'domain1.com', 'singlehost.domain.com' => 'domain2.com');
When we use this method we have to select the correct server. I wanted to automatically feed the system with correct server details when we enter the email address.(I assume that this can be achieved by using if-else conditions.)
Any one knows how to do it?

JohnDoh

depending on exactly what you need have you tried the %s macro for default_host? that uses the domain part of the username - see https://github.com/roundcube/roundcubemail/blob/master/config/defaults.inc.php#L134
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

_mash_

Thanks for your response. But it is not working because the domain name after the @sign of email address doesn't match with the server name.The server has a different name.So I need to map them. The domain name and server name that maps to it can be given from a table.So I need help to map them. When the user enter the email address, the system should check the domain name and map the server name which related to it.

JohnDoh

Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...