Author Topic: plugin for virtual users  (Read 7470 times)

Offline associates

  • Jr. Member
  • **
  • Posts: 15
plugin for virtual users
« on: June 27, 2012, 11:02:42 PM »
Hi,

I am running Postfix, Dovecot and MySQL on my Ubuntu Server 12.04. I'd like to use RoundCube mail as my webmail. I have already installed it on my system. I am using virtual users, I need to configure it for virtual users. I read in Howto_Config page, I found it saying  (I quote) "Since 0.4 this requires enabling of appropriate plugins". My question is whether or not I need to install plugin for virtual users OR can i just type the following in main.inc.php file

$rcmail_config['virtuser_file'] = '';
$rcmail_config['virtuser_query'] = "SELECT email_address FROM USERS WHERE login = '%u'";

For a test purpose, I have inserted a new user into USERS in MySQL.
 
Any help would be greatly appreciated.

Thank you in advance

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: plugin for virtual users
« Reply #1 on: June 27, 2012, 11:55:04 PM »
I'm not an expert in the virtual user setup, but you'll need to enable the virtuser_file or virtuser_query plugin depending on your setup.

Offline associates

  • Jr. Member
  • **
  • Posts: 15
Re: plugin for virtual users
« Reply #2 on: June 28, 2012, 02:46:03 AM »
Thank you for your reply.

Sorry, could I clarify with you? are you saying that both virtuser_file and virtuser_query plugins are already installed and it's just a matter of enabling them. Am I correct? Sorry for being slow to understand you.

My setup is pretty standard. I haven't done anything apart from configuring SMTP and IMAP. The rest settings I left them as they are by default.

Thank you once again

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: plugin for virtual users
« Reply #3 on: June 28, 2012, 02:36:12 PM »
Both plugins come with the default install of RoundCube they just have to be enabled. I'm not sure you need to enable both of them I think you just need to enable to method your using (ie. if you using the database enable the virtuser_query plugin) To enable it add the plugin name to the plugins array in the main.inc.php file.

Offline oldschool

  • Sr. Member
  • ****
  • Posts: 406
Re: plugin for virtual users
« Reply #4 on: June 28, 2012, 04:42:45 PM »
Hi!

As i understand the two plugins one is for a non-mysql-postfix installation and one is for a mysql-postfix-installation.
Currently i am using a non-mysql-postfix installation so i got a file for the virtual users and only one plugin enabled...


Rgds.

Offline associates

  • Jr. Member
  • **
  • Posts: 15
Re: plugin for virtual users
« Reply #5 on: June 29, 2012, 05:14:24 AM »
Thank you all.

Got it to work already. Yes, I just need one plugin which is virtuser_query.

Thanks again

Offline oldschool

  • Sr. Member
  • ****
  • Posts: 406
Re: plugin for virtual users
« Reply #6 on: July 11, 2012, 12:23:03 AM »
You are welcome...
;)