Roundcube Community Forum

 

Virtual users

Started by amaze646, May 12, 2020, 04:07:03 AM

Previous topic - Next topic

amaze646

Hello,

im trying to get virtual users to work. I would like to achive that user could have only identities that are clients address or aliases. Those are in different database, not roundcube one.

Bellow is what I have in my config.inc.php. I have debug enabled for sql also but I cant see any errors, nore querys on mail database.

$config['virtuser_query_dsn'] = 'mysql://mailrc:[email protected]/mail';
$config['virtuser_query'] = 'SELECT address FROM mail.users WHERE username=%u';

$config['plugins'] = array(
        ....
        'virtuser_query',
        ....
);

I also tryed like:
$config['virtuser_query'] = array('email' => 'SELECT address FROM mail.users WHERE username=%u');

Nothing works.

Thank you and kind regards

JohnDoh

QuoteI would like to achive that user could have only identities that are clients address or aliases
Are you talking about logins or identitites? The virtuser_query plugin is for login aliases.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...