Author Topic: Virtual users  (Read 156 times)

Offline amaze646

  • Newbie
  • *
  • Posts: 3
Virtual users
« on: May 12, 2020, 04:07:03 AM »
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:asdasdasd@1.1.1.1/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

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,438
Re: Virtual users
« Reply #1 on: May 13, 2020, 11:00:22 AM »
Quote
I 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ā€¦