Author Topic: Multiple account and smtp server  (Read 4489 times)

Offline acarlomagno

  • Jr. Member
  • **
  • Posts: 10
Multiple account and smtp server
« 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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Multiple account and smtp server
« Reply #1 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.

Offline acarlomagno

  • Jr. Member
  • **
  • Posts: 10
Multiple account and smtp server
« Reply #2 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

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Multiple account and smtp server
« Reply #3 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) 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ā€¦

Offline cdf6073

  • Newbie
  • *
  • Posts: 2
Multiple account and smtp server
« Reply #4 on: January 06, 2010, 07:52:49 AM »
Can you do the same for IMAP

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Multiple account and smtp server
« Reply #5 on: January 06, 2010, 08:30:44 AM »