Roundcube Community Forum

 

Multiple account and smtp server

Started by acarlomagno, January 04, 2010, 08:50:41 AM

Previous topic - Next topic

acarlomagno

Hi All,

I am a newbie of RoundCube.

I want use this web client in order to allow the end user to use the his email account.
but, each user/account has the his smtp server.

well, I can do it ? or I must use only smtp server ?

best regards
Antonello

SKaero

In the /config/main.inc.php you can set the $rcmail_config['smtp_server'] put "%h" RoundCube will replace it with the user's IMAP hostname.

acarlomagno

thanks, but if the user host name is different of smtp server ?

example:

user1 account:  [email protected]
pass1:  1234
smtpserver:  smtp.server1.com

AND

user2 account: [email protected]
pass2:   4321
smtpserver:  mail.server2.com

antonello

JohnDoh

it depends exactly how the smtp server is found. if the users use different urls to access RC then you can generate the value in the config file based on the url. you could also try using the smtp_connect plugin hook (Plugin_Hooks ? Roundcube Webmail) using this hook you can change the smtp server to what ever you want right before smtp connect.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

cdf6073