Error in dovecot.log

If you get a error in /var/log/dovecot.log that looks something like this (but Dovecot is still working):
Jun 05 15:34:50 imap(user1): Error: chown(/home/user1/mail/.imap/INBOX, -1, 12(mail)) failed: Operation not permitted (egid=503(user1), group based on /var/spool/mail/user1)
Jun 05 15:34:50 imap(user1): Error: mkdir(/home/user1/mail/.imap/INBOX) failed: Operation not permitted
Jun 05 15:34:50 imap(user1): Error: fchown(/home/user1/mail/.imap/INBOX/dovecot.index.log.newlock, -1, 12(mail)) failed: Operation not permitted (egid=503(user1), group based on /var/spool/mail/user1)

Check user characteristics :
# id user1
uid=503(user1) gid=503(user1) groups=503(user1)

See under which user Sendmail is running (usually “mail”) :
# id mail
uid=8(mail) gid=12(mail) groups=12(mail)
And to the user1 add group “mail” :
# usermod -a -G mail user1
Check :
# id user1
uid=503(user1) gid=503(user1) groups=503(user1),12(mail)

This entry was posted in Linux and tagged , , . Bookmark the permalink.

Comments are closed.