Author Topic: How to use mulitple users with multiple SMTP-Servers on a Synology E-Mail-Server  (Read 6270 times)

Offline ssdnvv

  • Newbie
  • *
  • Posts: 1
Hi @all,

I just started configuring native roundcube v.1.1.2 to fit my needs.
If I use only one user, everything works just fine. But I need to configure a second user. Unfortunately, the configs don't work:

config.inc.php:
Code: [Select]
<?php

/* Local configuration for Roundcube Webmail */
...
//I commented out any host- and smtp-related rows
...
$config['include_host_config'] = true;
...

user1
user1.inc.php
Code: [Select]
<?php

$config
['default_host'] = 'ssl://localhost';
$config['default_port'] = 993;
$rcmail_config['username_domain'] = 'user1';

$config['smtp_server'] = 'ssl://smtp.strato.de';

// SMTP port (default is 25; use 587 for STARTTLS or 465 for the
// deprecated SSL over SMTP (aka SMTPS))
$config['smtp_port'] = 465;

// SMTP username (if required) if you use %u as the username Roundcube
// will use the current username for login
$config['smtp_user'] = 'webmaster@mystratodomain1.de';

// SMTP password (if required) if you use %p as the password Roundcube
// will use the current user's password for login
$config['smtp_pass'] = 'mystratopassword1';

user2
user2.inc.php
Code: [Select]
<?php

$config
['default_host'] = 'ssl://localhost';
$config['default_port'] = 993;
$rcmail_config['username_domain'] = 'user2';

$config['smtp_server'] = 'ssl://smtp.strato.de';

// SMTP port (default is 25; use 587 for STARTTLS or 465 for the
// deprecated SSL over SMTP (aka SMTPS))
$config['smtp_port'] = 465;

// SMTP username (if required) if you use %u as the username Roundcube
// will use the current username for login
$config['smtp_user'] = 'webmaster@mystratodomain2.de';

// SMTP password (if required) if you use %p as the password Roundcube
// will use the current user's password for login
$config['smtp_pass'] = 'mystratopassword2';

I logged in using user1 and user2, but I'm not able to send any E-Mail - but the IMAP-connection to the localhost works.

Does anyone got a clue what I have to change to make it work?

Thanks in advance - at least for reading,
ssdnvv
« Last Edit: July 18, 2015, 10:40:13 PM by ssdnvv »

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
the include_host_config option includes config files based on the hostname used to access the server (see http://trac.roundcube.net/wiki/Howto_Config/Multidomains) not on the username. so you need to rename those files to match the hostnames.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦