Roundcube and virtuser_file plugin

SYSTEM INFORMATION
OS type and version Ubuntu 22.04.3 LTS
Webmin version 2.105
Virtualmin version 7.9.0
Related packages SUGGESTED

Hi!
This is a new installation. We do have other Virtualmin servers, and as I can remember never had the same problem.

The problem is:

  • I install RoudCube webmail via Install Scripts under any virtual server
  • I log in with a valid account and send an e-mail. RoudCube sends it as user@localhost instead of user@domain and the mail is being defferred
  • I figured out the problem: the RoudCube plugin ā€œvirtuser_fileā€ must be enabled for the proper identity to be automaticaly choosen
  • On an older Virtualmin server it looks like this (/home/domain/public_html/roundcube/config/config.inc.php):

// List of active plugins (in plugins/ directory)
$config[ā€˜pluginsā€™] = [ā€˜virtuser_fileā€™, ā€˜archiveā€™, ā€˜zipdownloadā€™];
$config[ā€˜virtuser_fileā€™] = ā€˜/etc/postfix/virtualā€™;

  • But on this new server only archive and zipdowload are enabled

My problem is, that our customers can install scripts and when they do install RoundCube they end up with this error and we have to modify the settings of their RoudCube.

Is there a way to set Virtualmin to add this plugin automaticaly when installing RoudCube? I feel like there shoud be a solution for this, as it works on all the other servers but I never had to configure it (as I can remember).

Thanks for any suggestion!

1 Like

Is it only when your customers use the install script?

I have not had this problem if I do the install (I do not give my clients/customers that level of access - goodness knows what they would do.)

No, wheter I install it as root user or as a client, the result is the same.
Neither I had problems with the other Virtualmin servers. RoudCube always worked fine.

That is worrying!

The first thing I do after adding a new VS and adding myself as a user is to run the roundcube script and never have had a problem with it - I also have all Ubuntu VMs and most up-to-date 22.04.3, I can only think something went astray in running the script or a required php module is missing.

I can also confirm
$config['plugins'] = ['archive','zipdownload',];
are the only plugins in my /roundcube/conf/conf.inc.php file

Thank you for the answer!

I donā€™t think that a php module is missing. When I manually add virtuser_file module to RoundCube config everything works fine. Itā€™s just not enabled initially.

Which type of webmin user format are you using ? user.domain or user@domain.com I remember from way back that I had to use that plugin with roundcube. But in the end I pushed the romote users to use usermin as the web email client as it has more integrated features (with webmin/virtualmin) than any other web email client, it just takes time getting used to

On all our servers we use user name in format user.domain
The Postfix virtual does contain all the virtual users, and on all other servers RoudCube uses the virtuser_file plugin by default.
As I specified earlier, everything works fine if I manually add this module to the RoundCube config file. The problem is that it isnā€™t enabled during the installation.
Thanks for trying to help me!

It is worth noting that this line is missing from Roundcube v1.6.5 along with any use of a plugin called ā€˜virtuser_fileā€™ so perhaps Roundcube has stopped obtaining users from postfix virtual.

So where is Roundcube obtaining its user details?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.