Can't authenticate with Imap - External User Authentication

Hi,

I hope I’m posting in the right category.

I encounter a problem on one of my Nextcloud instances, I can’t login using Imap credentials, my config is right though. I’m using a VPS web server with Plesk as an interface and just updated my instance to Nextcloud 17.0.1.
The nextcloud.log file indicate the following problem ERROR: Could not connect via roundcube lib: The Auth_SASL package is required for DIGEST-MD5 authentication . I checked on the server and Auth-SASL seem to be installed.
33
Here’s the config in my config.php file :
<?php
$CONFIG = array (
‘instanceid’ => ‘’,
‘passwordsalt’ => '
’,
‘secret’ => ‘’,
‘trusted_domains’ =>
array (
0 => ‘cloud.domain.eu’,
),
‘datadirectory’ => ‘/var/www/vhosts/domain.eu/cloud.domain.eu/data’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘17.0.1.1’,
‘overwrite.cli.url’ => ‘https://cloud.domain.eu’,
‘dbname’ => '
’,
‘dbhost’ => ‘’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => '
’,
‘dbpassword’ => ‘**’,
‘installed’ => true,
‘maintenance’ => false,
‘user_backends’ =>
array (
0 =>
array (
‘class’ => ‘OC_User_IMAP’,
‘arguments’ =>
array (
0 => ‘my_server.ovh.net’,
1 => 993,
2 => ‘ssl’,
3 => ‘domain.eu’,
4 => true,
5 => false,
),
),
),
‘theme’ => ‘’,
‘loglevel’ => 2,
);

Does anyone have an idea what my problem could be and how to fix it ?

Thanks,

Aunt G. provides the following answer on your question, which might help you too:

https://support.plesk.com/hc/en-us/articles/115003975753-Failed-authentication-via-Roundcube-AUTHENTICATE-DIGEST-MD5

Thanks for the answer, I wasn’t shure if this error was due to the Cram-MD5 auth.
I asked my hosting provider to modify the config file (I don’t have sudo access).
I’ll keep you in touch if it has work.

It did work, the roundcube config file was modified and I had to add “auth_type” => “CRAM-MD5” to $params[“ssl_mode”] in the /apps/user_external/lib/imap.php file.

Thansk for the help,

1 Like