Roundcube Community Forum

 

how to set domain account different from IMAP server

Started by drafintech, May 29, 2015, 11:41:28 AM

Previous topic - Next topic

drafintech

Hi,
in both 1.0.5 and 1.1.1 I'm facing an issue:
We have an IMAP Server imap.something.it containing and lot of users such as [email protected].
During the configuration, I want that RoundCube creates entries in both users and identities tables with [email protected], but the only thing I reach out for is to have in both tables [email protected], that means that every user that first logs into the system must change his identity to send emails.

I looked for every possibile configuration property but I haven't found any suitable except making a very dirty hack to
program/include/rcmail.php:603 :
if ($created = rcube_user::create($username, "asd.qwe.it")) {


Can you please guide me to a better solution?
Thanks in advance

SKaero

The username_domain config option should be set to "asd.qwe.it".

drafintech

It's already set to $config['username_domain'] = array('asd.qwe.it' => 'asd.qwe.it',); but it keeps creating the identity with imap.something.it
What can I do?

JohnDoh

I think it should be the imap host as the key so `$config['username_domain'] = array('imap.something.it' => 'asd.qwe.it');` certainly having the same thing for key and value does not make sense. Also if you want them all to be asd.qwe.it then you do not need to define an array it can just be `$config['username_domain'] = 'asd.qwe.it';`
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...