Roundcube Community Forum

Release Support => Release Discussion => Topic started by: associates on June 27, 2012, 11:02:42 PM

Title: plugin for virtual users
Post by: associates 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
Title: Re: plugin for virtual users
Post by: SKaero 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.
Title: Re: plugin for virtual users
Post by: associates 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
Title: Re: plugin for virtual users
Post by: SKaero 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.
Title: Re: plugin for virtual users
Post by: oldschool 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.
Title: Re: plugin for virtual users
Post by: associates 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
Title: Re: plugin for virtual users
Post by: oldschool on July 11, 2012, 12:23:03 AM
You are welcome...
;)