Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: acarlomagno on January 04, 2010, 08:50:41 AM

Title: Multiple account and smtp server
Post by: acarlomagno on January 04, 2010, 08:50:41 AM
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
Title: Multiple account and smtp server
Post by: SKaero on January 04, 2010, 09:00:10 AM
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.
Title: Multiple account and smtp server
Post by: acarlomagno on January 04, 2010, 09:06:20 AM
thanks, but if the user host name is different of smtp server ?

example:

user1 account:  one@server1.com
pass1:  1234
smtpserver:  smtp.server1.com

AND

user2 account: two@server2.com
pass2:   4321
smtpserver:  mail.server2.com

antonello
Title: Multiple account and smtp server
Post by: JohnDoh on January 04, 2010, 01:12:40 PM
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 (http://trac.roundcube.net/wiki/Plugin_Hooks#smtp_connect)) using this hook you can change the smtp server to what ever you want right before smtp connect.
Title: Multiple account and smtp server
Post by: cdf6073 on January 06, 2010, 07:52:49 AM
Can you do the same for IMAP
Title: Multiple account and smtp server
Post by: SKaero on January 06, 2010, 08:30:44 AM
Yes you can, http://trac.roundcube.net/wiki/Plugin_Hooks#imap_connect