Vesta roundcube mail login failed

Check both

 1. Roundcube error log in /var/log/rouncubemail/error.log

Eroor: rcube imap.php on line 202 (POST /webmail/?_task=mail&_action=login

 2. Dovecot error log in / var/log/maillog

auth: Error: passwd-file: open(/etc/dovecot/users)

this error comes as it is trying to read the password from dovecot users but the password is stored in a different location

/etc/dovecot/conf.d

vi auth-passwdfile.conf.ext

passdb {
  driver = passwd-file
  args = scheme=MD5-CRYPT username_format=%n /etc/exim/domains/%d/passwd
}

userdb {
  driver = passwd-file
  args = username_format=%n /etc/exim/domains/%d/passwd
}

and make these changes in /etc/dovecot/dovecot.conf

protocols = imap pop3
listen = *
base_dir = /var/run/dovecot/
!include conf.d/*.conf

10-auth.conf

disable_plaintext_auth = no
auth_verbose = yes
auth_mechanisms = plain login
!include auth-passwdfile.conf.ext

Error: Namespace ”: Mail storage autodetection failed with home=/home/

Added to /etc/dovecot/conf.d/10-mail.conf
mail_location = maildir:~/Maildir

and it started working.

Leave a Comment

Your email address will not be published. Required fields are marked *