Author Topic: External IMAP server  (Read 3825 times)

Offline WST

  • Newbie
  • *
  • Posts: 2
External IMAP server
« on: February 27, 2010, 12:44:13 PM »
Hello everyone,

I am using Roundcube 0.3.1 on SmartCommunity mail :: Selamat datang di SmartCommunity mail
I serve e-mail on domains jsmart.web.id, jabberid.org, unmondeparfait.org and fakhri.ru.
My IMAP server (dovecot) accepts full e-mail as username, but I’d like my users to be able to type only username and select the domain from a drop-down list.
It was OK when I had IMAP server installed on the same server as these domains’ A records:
Code: [Select]

$rcmail_config['default_host'] = array('jsmart.web.id','jabberid.org', 'fakhri.ru', 'unmondeparfait.org');

$rcmail_config['username_domain'] = array('jsmart.web.id'=>'jsmart.web.id', 'jabberid.org'=>'jabberid.org', 'fakhri.ru'=>'fakhri.ru', 'unmondeparfait.org'=>'unmondeparfait.org');



Today I have moved dovecot to another server, it’s IP differs from A records of these domains. How to save ability to type only username and select domain from drop-down list? Roundcube seems to display $rcmail_config['default_host'] as the servers list, but I need it to display $rcmail_config['username_domain'] to suit my target.

:confused:

Offline WST

  • Newbie
  • *
  • Posts: 2
External IMAP server
« Reply #1 on: February 27, 2010, 01:35:53 PM »
Found a stupid solution

DNS:
Code: [Select]
us5_1.jsmart.web.id. CNAME us5.jsmart.web.id.
us5_2.jsmart.web.id. CNAME us5.jsmart.web.id.
us5_3.jsmart.web.id. CNAME us5.jsmart.web.id.
us5_4.jsmart.web.id. CNAME us5.jsmart.web.id.

RC config:
Code: [Select]
$rcmail_config['default_host'] = array('us5_1.jsmart.web.id'=>'jsmart.web.id', 'us5_2.jsmart.web.id'=>'jabberid.org', 'us5_3.jsmart.web.id'=>'fakhri.ru', 'us5_4.jsmart.web.id'=>'unmondeparfait.org');
$rcmail_config['username_domain'] = $rcmail_config['default_host'];
« Last Edit: February 27, 2010, 01:39:55 PM by WST »