Roundcube Community Forum

 

Trouble with virtuser plugins

Started by matrixn, May 23, 2010, 08:20:26 AM

Previous topic - Next topic

matrixn

Hello ppls.

I have 2 versions of roundcube installed the 0.31 wich works fine with the setting $rcmail_config['virtuserfile'] = '/etc/postfix/virtusertable' and the second testing installation with 0.4 where i have noticed that virtuser is now splitted into a 2 plugins (virtuser_file and virtuser_query).
My question is.. why doesn`t work in 0.4 when i enable the virtuser_* plugins and write in the main.inc.php $rcmail_config['virtuserfile'] = '/etc/postfix/virtusertable'.

I always get on 0.4 this error when i`m trying to login with user@domain:

IMAP connect:  NOT OK(Authentication for [email protected] failed (LOGIN): a001 NO Login failed.)

and this when i`m trying to login with a system user (web#_radu):

IMAP connect:  OK(SORT capability: yes)

matrixn


ABerglund

Wrong way to configure it.

Enable virtuser_file in the plugins array in main.inc.php:

$rcmail_config['plugins'] = array('virtuser_file');
Then specify the file in [rc-root]/plugins/virtuser_file/virtuser_file.php:

$rcmail_config['virtuser_file'] = '/etc/postfix/virtusertable';
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

matrixn

thanks, now it works. have a nice day :)

ABerglund

#4
OK, now it's my turn. The virtuser_file plugin had been working fine for me, but yesterday I noticed that it appears to be broken. I've made no changes to my system other than keeping up to date using SVN. Other plugins for initial user setup (new_user_dialog, and squirrelmail_usercopy) still work OK, but not virtuser_file, even if the other two (or even all other plugins) are disabled.

Anyone else having this issue? I went so far as to check out a fresh SVN copy and built a new clean DB, but that one doesn't work either.

I need to find an answer to this before early July, as that is our turnup date for Roundcube, and the virtuser email address resolution is critical for us.
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

ABerglund

#5
Post deleted - I posted bad data...
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

ABerglund

#6
Post deleted - I posted bad data...
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

ABerglund

Still fighting this. I have discovered that neither virtuser_file nor new_user_identity seem to be working for me. No errors shown anywhere. The other two plugins that run at first login (squirrelmail_usercopy and new_user_dialog) still work fine. But even in a clean SVN checkout (currently at 3740) neither of the first two plugins will run, even with all other plugins disabled.

I also tried a fresh download of the 0.4-beta, still no joy. Any ideas would be appreciated.
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

ABerglund

I have still been unable to get the virtuser_file plugin to work, and I really need to have this functionality from SOMEWHERE, if not here. I am no longer certain that I have EVER had this working, as I now believe that when I thought I worked I may have been pulling data from squirrelmail_usercopy instead. That is fine for existing user migrations, but I need a mechanism to insert the correct email address for new users (who never used squirrelmail) going forward.

Here is my situation - RC connects to an external IMAP server (sendmail/dovecot). We have 14 different domains on that single server, but all use a shared namespace. The domain of the IMAP server is not the same as any of the 14 domains in use, and because of the shared namespace, many of the email addresses in use are not common with the username.

Example:

The server is at hidden.domain.net
My username (limited to 8 chars) is aberglun
My email address is [email protected]

But when logging in for the first time, RC constructs the email address in my identity as [email protected].

I have a copy of the sendmail virtusertable flat file on the RC server, and have pointed the plugin at that file. The file is in the format of:

[email protected]  aberglun

I can find no evidence that the virtuser lookup is even happening. But can't say for certain that it's not, either.

Is it possible that the virtuser_file plugin can't be used for my particular scenario?
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA