• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • Our UX team believes in the in the power of direct feedback and would like to invite you to participate in interviews, tests, and surveys.
    To stay in the loop and never miss an opportunity to share your thoughts, please subscribe to our UX research program. If you were previously part of the Plesk UX research program, please re-subscribe to continue receiving our invitations.
  • 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.
 
Try to reinstall Roundcube by removing it from Plesk Installer. Afterwards, install it back from Plesk Installer.
 
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;
 
After more investigating i changed in the default config file imap and smtp from localhost to 127.0.0.1 and now it works.
But what could be that localhost dont work now after update does that file change ?
 
But of course after updating to Plesk Obsidian 18.0.67 Update #2 the same problems reappear.
Does anyone have idea why localhost wont work but 127.0.0.1 works with roundcube ?
 
Hi Raul,

Yes thats possible

[root@... ~]# ping localhost
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.051 ms
 
@marving, I suggest opening a support ticket with Plesk to let support engineers investigate the issue on your server. Because this does not look like a generic issue, rather seems specific to your server.
 
Yes thats probally the best most of time i can solve it myself or with little help but i looked at everything i know.
 
Back
Top