[Dovecot] 1.2.3 - fchown failed messages

Rob Mangiafico rmang at lexiconn.com
Wed Aug 5 02:31:15 EEST 2009


> On Tue, 4 Aug 2009, Timo Sirainen wrote:
>> On Tue, 2009-08-04 at 16:46 -0400, Rob Mangiafico wrote:
>>> Hello,
>>> 
>>> I installed 1.2.3 and we are seeing a few messages in the log files such
>>> as:
>>> ---
>>> Aug  4 16:40:24 xyz dovecot: IMAP(john): fchown() failed with file
>>> /home/john/.imap/INBOX/dovecot.index.log.newlock: Operation not permitted
>>> Aug  4 16:40:24 xyz dovecot: IMAP(john): fchown() failed with file
>>> /home/john/.imap/INBOX/dovecot.index.tmp: Operation not permitted
>> 
>> This patch should give you a bit better error message that would explain
>> the reason: http://hg.dovecot.org/dovecot-1.2/rev/8ea90a23ed74

The log file now shows:
---
Aug  4 19:10:10 rezclick dovecot: IMAP(john): 
fchown(/home/john/.imap/INBOX/dovecot.index.tmp, -1, 12(mail)) failed: 
Operation not permitted (egid=509(johngrp), group based on 
/var/spool/mail/john)
---

/var/spool/mail/john has a group of "mail", whereas the home directory has 
their own "group". In 1.1.x we did not get these errors. Is this a fix in 
1.2? I assume we have to make the group match from their home dir and 
/var/spool/mail to get rid of the error? Any downside to allowing this 
error to continue? Thanks.

Rob


More information about the dovecot mailing list