Please i have been having the problem for long now. after installing roundcube on my virtualmin i cant login to my account with it but if use the Usermin to log it in it will work. Please i need help on what to do so that i can be signing with roundcube
I also struggle for few days with the same issue. First I thought is about Debian 11 incompatibilty, have tried with Ubuntu 22, Debian 10, Rocky 9 and 8 but the result is the same. On each fresh install, Roudcube does not let you login even credentials are good.
What I find out after looking into logs and doing a lot of trial and errors is:
when you create a new mail user āname@domainā it also creates an alias āname \ @domainā
when you try to login into roundcube it checkes ā/etc/postfix/virtualā and finds the alias with "" and the result is an error
to cofirm the above i created an alias āname2@domainā for āname@domainā. it will connect in roundcube as it finds the right user
another way i find out it works is to set your user to "No: in āPrimary email address enabledā
(Edit Users ā select user ā Email settings) You will be able to login into Roundcube with the user āname@domainā but you will not be able to receive any emails as the user will not be found in user list.
Just to underline the fact that this happens only on fresh install.
I have older Debian 10 updated to latest versions and it works perfect.
The difference I could find is that setting a primary email adddres it makes an alias in ā/etc/postfix/virtualā āname-domainā
Hope this helps. Looking forward for a solution on this.
Cheers.
The solution for this is to edit roundcube/config/config.inc.php and remove mentions of virtuser_file at the end of the file.
The other solution would be to go to System Settings ā¾ Virtualmin Virtual Servers ā¾ Configuration: Defaults for new domains and change Include domain name in usernames option from Yes to Only to avoid a clash. Although, this would only be applied to newly created users.
please which of this will i have to edit cause there are two of virtuser_file there
// This key is used to encrypt the users imap password which is stored
// in the session record. For the default cipher method it must be
// exactly 24 characters long.
// YOUR KEY MUST BE DIFFERENT THAN THE SAMPLE VALUE FOR SECURITY REASONS
$config[ādes_keyā] = ārcmail-!24ByteDESkey*Strā;
// List of active plugins (in plugins/ directory)
$config[āpluginsā] = [
āvirtuser_fileā,
āarchiveā,
āzipdownloadā,
];