Author Topic: How can I sent mails with different users using different smtp servers?  (Read 2412 times)

Offline AMG

  • Newbie
  • *
  • Posts: 5
Hi,

I use roundcuve 0.2a to RECEIVE mails with different users using different imap servers. Therefore the following entries in my main.inc.php works well for me:

$rcmail_config['default_host'] = array( 'imap.domain1.de' => 'domain1', 'imap.domain2.de' => 'domain2' );
$rcmail_config['default_port'] = 143;
$rcmail_config['imap_auth_type'] = "check";
$rcmail_config['virtuser_query'] = 'SELECT i.`email` FROM rcmail_identities i JOIN rcmail_users u ON i.`user_id` = u.`user_id` WHERE u.`alias` = "%u"';

The virtuser_query contains all email adresses (identities) which are connected to the regarding alias.

But: I cannot SEND any email for these users using different smtp servers. I have tried the following entreis in my main.inc.php:

$rcmail_config['smtp_server'] = array( 'smtp.domain1.de', 'smtp.domain2.de' );
$rcmail_config['smtp_port'] = 25;
$rcmail_config['smtp_user'] = '%u';
$rcmail_config['smtp_pass'] = '%p';

The problem seems to be that %u is not my correct username but my alias (as described above). So I also tried the following entry - but without success:
$rcmail_config['smtp_user'] = 'SELECT u.`username` FROM rcmail_users u WHERE u.`alias` = "%u"';

The result row should now contain the regarding username, but this also doesn't work for me.

Can anybody help me to configure roundcube to send mails with different users using different smtp servers?

Thanks in advance!

Andreas

Offline AMG

  • Newbie
  • *
  • Posts: 5
How can I sent mails with different users using different smtp servers?
« Reply #1 on: October 15, 2008, 03:20:26 PM »
No suggestions??

I still haven't figured out how it goes... If anybody could help me, help me please ;-)

Andy