• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Issue Roundcube: Connection failed to imap or storage server

marvine

New Pleskian
Server operating system version
Almalinux 9.5
Plesk version and microupdate number
18.66 U2
Hi All,

I have setup a new plesk server while back but when updating plesk to the latest version i get underneath messages when logging in to roundcube webmail:

Connection with imap server failed
Connection to storage server failed.

The strangest thing is that i see not any log related to roundcube or what goes wrong.

Thanks in advance!
 
Also tried uninstalling the Roundcube component from Plesk and re-installing it without result.
Diagnose and repair also don't find anything.

And dovecot is running normally
● dovecot.service - Dovecot IMAP/POP3 email server
Loaded: loaded (/usr/lib/systemd/system/dovecot.service; enabled; preset: disabled)
Drop-In: /usr/lib/systemd/system/dovecot.service.d
└─respawn.conf
Active: active (running) since Thu 2025-01-16 14:24:48 CET; 2h 9min ago
Docs: man:dovecot(1)
Dovecot CE documentation
Main PID: 1277 (dovecot)
Status: "v2.3.21.1 (d492236fa0) running"
Tasks: 5 (limit: 100192)
Memory: 11.6M
CPU: 109ms
CGroup: /system.slice/dovecot.service
├─1277 /usr/sbin/dovecot -F
├─1378 dovecot/anvil
├─1380 dovecot/log
├─1383 dovecot/config
└─6766 dovecot/stats
 
Hi Raul,

/var/log/httpd/access_log here i see ipadress - - [16/Jan/2025:18:00:54 +0100] "POST /?_task=login HTTP/1.1" 401 2139 "https://webmail.user.nl/?_task=login" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"

/var/log/plesk-roundcube/errors is empty.

So dont have many logs to see what error is triggering.
 
I also did try that but doesnt solve the issue unfornate

[16/Jan/2025:18:00:54 +0100] "POST /?_task=login HTTP/1.1" 401 2139
But the 401 message will say something denied right ?
 
Hi, i also checked that one again but nothing to see not any error message.
Mail works just fine but Roundcube webmail is not able to connect to something tried to reinstall dovecot roundcube some other sugetionst chatgpt did make but not any result.

But don't understand why /var/log/plesk-roundcube/errors is empty ?
 
/var/log/plesk-roundcube/errors should contain only PHP errors:
Code:
/usr/share/psa-roundcube/config/php.ini.tpl:display_errors = Off
/usr/share/psa-roundcube/config/php.ini.tpl:log_errors = On
/usr/share/psa-roundcube/config/php.ini.tpl:error_log = "/var/log/plesk-roundcube/errors"

You can try to add in /usr/share/psa-roundcube/config/config.inc.php
Code:
// system error reporting, sum of: 1 = log; 4 = show
$config['debug_level'] = 4;

// Log SQL queries
$config['sql_debug'] = true;

// Log IMAP conversation
$config['imap_debug'] = true;

// Log LDAP conversation
$config['ldap_debug'] = true;

// Log SMTP conversation
$config['smtp_debug'] = true;

Remember to comment them out after the issue is resolved.

Do the DB login details from $config['db_dsnw'] (/usr/share/psa-roundcube/config/config.inc.php) work on your server?

What do you have in /usr/share/psa-roundcube/config/defaults.inc.php?

Key points:
Code:
$config['log_driver'] = 'file';
$config['log_dir'] = '/var/log/plesk-roundcube/';
// Log sent messages to <log_dir>/sendmail.log or to syslog
$config['smtp_log'] = true;

// Log successful/failed logins to <log_dir>/userlogins.log or to syslog
$config['log_logins'] = false;

// Log session debug information/authentication errors to <log_dir>/session.log or to syslog
$config['session_debug'] = false;

// Log SQL queries to <log_dir>/sql.log or to syslog
$config['sql_debug'] = false;

// Log IMAP conversation to <log_dir>/imap.log or to syslog
$config['imap_debug'] = false;

// Log LDAP conversation to <log_dir>/ldap.log or to syslog
$config['ldap_debug'] = false;

// Log SMTP conversation to <log_dir>/smtp.log or to syslog
$config['smtp_debug'] = false;

// Log Memcache conversation to <log_dir>/memcache.log or to syslog
$config['memcache_debug'] = false;

// Log APC conversation to <log_dir>/apc.log or to syslog
$config['apc_debug'] = false;

// Log Redis conversation to <log_dir>/redis.log or to syslog
$config['redis_debug'] = false;
 
Back
Top