• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Resolved Cannot login to plesk webmail

cipcip

Basic Pleskian
Hello,

It seems that for couple of days I cannot login to the plesk webmail that i use for my domains.
I get the following message: Connection to storage server failed.

The login is good as it used to work before...
I am getting this on all my domains where i use the webmail.

Webmail domain is secured.
Using roundcube

Thanks,
Cristian
 
I have used the command systemctl start dovecot.service as specified, I rebooted the server and now I get a new message:

Connecting to IMAP server failed

systemctl status dovecot.service says:

dovecot.service - Dovecot IMAP/POP3 email server
Loaded: loaded (/lib/systemd/system/dovecot.service; enabled; vendor preset:
Active: failed (Result: exit-code) since Wed 2020-05-27 10:30:53 CEST; 2min 3
Docs: man:dovecot(1)
FrontPage - Dovecot Wiki
Process: 794 ExecStart=/usr/sbin/dovecot -F (code=exited, status=89)
Main PID: 794 (code=exited, status=89)

May 27 10:30:44 zulu902 systemd[1]: Started Dovecot IMAP/POP3 email server.
May 27 10:30:53 zulu902 dovecot[794]: doveconf: Fatal: Error in configuration fi
May 27 10:30:53 zulu902 systemd[1]: dovecot.service: Main process exited, code=e
May 27 10:30:53 zulu902 systemd[1]: dovecot.service: Failed with result 'exit-

This is after I enable it using the command provided in the article.

Using:
Plesk Obsidian Web Admin Edition
Version 18.0.27 Update #1

OS: Ubuntu 18.04 LTS
 
UPDATE:

In syslog I have the following:

May 27 06:45:21 zulu902 dovecot: service=lda, user=hello@tutorialindex.com, ip=[]. Error: auth-master: userdb lookup(hello@tutorialindex.com): connect(/var/run/dovecot/auth-userdb) failed: No such file or directory
May 27 06:45:21 zulu902 dovecot: lda: Fatal: Internal error occurred. Refer to server log for more information.

Maybe something got deleted when Plesk updated ?! ...

In /var/run/dovecot/ I do not have a auth-userdb
 
Looks like you have wrong dovecot config. Have you customized it?

Haven't touched it.
Here is what is in the file.

## Dovecot configuration file

# PLEASE DON'T EDIT ANYTHING IN THIS FILE! ANY CHANGES WILL BE LOST ON UPGRADE.
# Instead add your custom configuration to /etc/dovecot/conf.d/
# See the end of this file for details on customization.

# See example configuration files in /usr/share/doc/dovecot/example-config/
# See stock configuration files in /usr/share/doc/plesk-dovecot/dist-config/


# Space separated list of wanted authentication mechanisms.
# NOTE: See also disable_plaintext_auth setting.
auth_mechanisms = plain login digest-md5 cram-md5 apop

# Valid UID range should include popuser.
first_valid_uid = 30

# List of allowed characters in username. "'&" is added here to the default list.
auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890&.-_@'

# Plesk Maildirs layout.
mail_home = /var/qmail/mailnames/%Ld/%Ln
mail_location = maildir:/var/qmail/mailnames/%Ld/%Ln/Maildir:UTF-8

# Enable Maildir++ quota support.
mail_plugins = $mail_plugins quota

plugin {
# Take quota limits from maildirsize file. If it doesn't exist, don't enforce.
quota = maildir:User quota
# LDA/LMTP allows saving the last mail to bring user from under quota to
# over quota, if the quota doesn't grow too high. Default is to allow as
# long as quota will stay under 10% above the limit. Also allowed e.g. 10M.
# 0 doesn't allow going over quota (compatibility with Courier-IMAP behavior).
quota_grace = 0
}


service auth {
# Allow userdb lookups for popuser.
unix_listener auth-userdb {
mode = 0600
user = popuser
group = popuser
}
}

service stats {
unix_listener stats-writer {
user = popuser
}
}

# PEM encoded X.509 SSL/TLS certificate and private key.
ssl_cert = </etc/dovecot/private/ssl-cert-and-key.pem
ssl_key = </etc/dovecot/private/ssl-cert-and-key.pem


# Protocols support.

protocols = imap pop3

protocol imap {
mail_plugins = $mail_plugins imap_quota
}

protocol pop3 {
# POP3 UIDL format similar to the one used by Courier-IMAP.
pop3_uidl_format = UID%u-%v
}

# Applicable workarounds for various client bugs.
imap_client_workarounds = delay-newmail
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh


# Default private namespace setup compatible with Courier-IMAP.

namespace inbox {
separator = .
prefix = INBOX.
inbox = yes

mailbox Sent {
auto = subscribe # autocreate and autosubscribe the Sent mailbox
special_use = \Sent
}
mailbox Spam {
auto = create # autocreate Spam, but don't autosubscribe
special_use = \Junk
}
mailbox Drafts {
auto = create
special_use = \Drafts
}
mailbox Trash {
auto = create
special_use = \Trash
}
}


# Logging verbosity and debugging.

# Log unsuccessful authentication attempts and the reasons why they failed.
#auth_verbose = yes

# In case of password mismatches, log the attempted password. Valid values are
# no, plain and sha1. sha1 can be useful for detecting brute force password
# attempts vs. user simply trying the same password over and over again.
#auth_verbose_passwords = no

# Even more verbose logging for debugging purposes.
#auth_debug = yes

# In case of password mismatches, log the passwords and used scheme so the
# problem can be debugged. Enabling this also enables auth_debug.
#auth_debug_passwords = yes

# Enable mail process debugging. This can help you figure out why Dovecot
# isn't finding your mails.
#mail_debug = yes

# Show protocol level SSL errors.
#verbose_ssl = yes


# Log format compatible with Plesk statistics collector.
mail_log_prefix = "service=%s, user=%u, ip=[%r]. "
pop3_logout_format = "rcvd=%i, sent=%o, top=%t/%p, retr=%r/%b, del=%d/%m, size=%s"
imap_logout_format = "rcvd=%i, sent=%o"

# Customizable part of configuration gets included below. The filenames are
# first sorted by their ASCII value and parsed in that order. The 00-prefixes
# in filenames are intended to make it easier to understand the ordering.
#
# Prefixes 10 through 20 and 90 through 95 (inclusive) are reserved for Plesk.
# Please do not occupy them or edit files with these prefixes!
!include conf.d/*.conf

# vim:ts=2 sts=2 sw=2 et:
 
What's the permission of directory '/var/run/dovecot'?
Do you have SELinux / AppArmor enabled on this server?
 
Hello Igor,

Permissions of the '/var/run/dovecot' is rwxr-xr-x (0755)
I see that by default, on the server I have AppArmor enabled. Server is bought from my.server4you.net

Thanks,
Cristian
 
I'd suggest you contact Plesk Support Team for investigation and fixing the issue directly on your server.
 
I have reached out to the my.server4you.net support for this.
The issue was fixed with a reinstall of dovecot.

Thank you,
Cristian
 
Back
Top