Hello, after I have done a dist-upgrade to Squeeze, I got some nasty problem with my dovecot. When I try to establish a connection via IMAP, it doesn't react and writes the following into my logfile: 2011-02-16 15:23:49 imap-login: Info: Login: user=<thomas at XXX>, method=PLAIN, rip=84.130.16.134, lip=XX.XXX.XX.XXX, TLS 2011-02-16 14:23:49 dovecot: Fatal: chdir(/home/vmail/XXX/thomas/) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) stat() failed: No such file or directory) 2011-02-16 15:23:49 dovecot: Error: child 14493 (imap) returned error 89 (Fatal failure) dovecot -n: # 1.2.15: /etc/dovecot/dovecot.conf # OS: Linux 2.6.26-2-xen-amd64 x86_64 Debian 6.0 ext3 log_path: /home/vmail/dovecot-info.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3 pop3s ssl_ca_file: /etc/ssl/certs/sub.class1.server.ca.pem login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login mail_privileged_group: vmail mail_uid: vmail mail_gid: vmail mail_location: maildir:/home/vmail/%d/%n/ mbox_write_locks: fcntl dotlock mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 namespace: type: private separator: . prefix: INBOX. inbox: yes list: yes subscriptions: yes lda: log_path: /home/vmail/dovecot-deliver.log postmaster_address: postmaster at XXX auth_socket_path: /var/run/dovecot/auth-master global_script_path: /home/vmail/globalsieverc auth default: mechanisms: plain login passdb: driver: pam passdb: driver: sql args: /etc/dovecot/dovecot-sql.conf userdb: driver: passwd userdb: driver: static args: uid=vmail gid=vmail home=/home/vmail/%d/%n allow_all_users=yes socket: type: listen client: path: /var/run/dovecot/auth-client mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail I tried to change privileges for /home/vmail/, didn't work. What makes me wonder is the <unknown>-label after euid=5000. Anyone an idea how to fix that problem? Thomas
On 02/16/11 16:42, Thomas Skowron wrote:> Hello, > > after I have done a dist-upgrade to Squeeze, I got some nasty problem with my dovecot. > When I try to establish a connection via IMAP, it doesn't react and writes the following into my logfile: > > 2011-02-16 15:23:49 imap-login: Info: Login: user=<thomas at XXX>, method=PLAIN, rip=84.130.16.134, lip=XX.XXX.XX.XXX, TLS > 2011-02-16 14:23:49 dovecot: Fatal: chdir(/home/vmail/XXX/thomas/) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) stat() failed: No such file or directory) > 2011-02-16 15:23:49 dovecot: Error: child 14493 (imap) returned error 89 (Fatal failure)> master: > path: /var/run/dovecot/auth-master > mode: 384 > user: vmailHello, I think your user "vmail" (uid=5000, gid=5000) got lost along the line somewhere .... Cheers Jan -- MAX-PLANCK-INSTITUT fuer Radioastronomie Jan Behrend - Rechenzentrum ---------------------------------------- Auf dem Huegel 69, D-53121 Bonn Tel: +49 (228) 525 359, Fax: +49 (228) 525 229 jbehrend at mpifr-bonn.mpg.de http://www.mpifr-bonn.mpg.de -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 5855 bytes Desc: S/MIME Cryptographic Signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20110216/c9251517/attachment-0002.bin>
Am 16.02.2011 um 16:48 schrieb Jan Behrend:> I think your user "vmail" (uid=5000, gid=5000) got lost along the line > somewhere ....Well, I believe it didn't, /etc/passwd contains vmail:x:5000:5000::/home/vmail:/bin/sh I already have deleted the user and created vmail again, but still... it doesn't work.
On 16.2.2011, at 17.42, Thomas Skowron wrote:> 2011-02-16 14:23:49 dovecot: Fatal: chdir(/home/vmail/XXX/thomas/) failed: Permission denied (euid=5000(<unknown>) egid=5000(<unknown>) stat() failed: No such file or directory)Weirdness 1: So there's <unknown> even though 5000 uid and gid exists? Weirdness 2: stat() fails with ENOENT. Do you have SELinux or something enabled?
On Wed, 16 Feb 2011 16:42:34 +0100, Thomas Skowron <thskowron at googlemail.com> wrote:> after I have done a dist-upgrade to Squeeze, I got some nasty problem > with my dovecot. When I try to establish a connection via IMAP, it > doesn't react and writes the following into my logfile:We also have systems based in Debian (Squeeze). After all what has been said it sure looks like a chroot problem. Could you post the (exact) contents of the following command: grep 'vmail\|5000' /etc/passwd /etc/group /etc/dovecot/dovecot.conf As in Squeeze Postfix runs chrooted, I wonder, did you re-configured the postfix chroot (see /var/spool/postfix/) and put there all what you need to avoid chroot problemas while combining Dovecot +Postfix + MySQL? Finally, are shure that your VPS provider isn't encapsulating in chroot jails either your private configs in /etc/ or your stuff in /home/ ? M.