[Dovecot] Dsync error when working dir o-rwx
Timo Sirainen
tss at iki.fi
Mon Jul 26 21:25:11 EEST 2010
On Sat, 2010-07-24 at 11:15 +0200, Jan Vítek wrote:
> # dsync -D -v -u 'info at example.org' -o 'mail_privileged_group=mail' -o
> 'mail_location=mbox:/email/info at example.org/mail:INBOX=/var/mail/info at example.org'
> mirror 'maildir:~/Maildir'
> dsync(info at example.org): Info: Sport: only in source
> dsync(info at example.org): Info: INBOX: only in source
> dsync(info at example.org): Error: open(.) failed: Permission denied
The problem was mail_privileged_group. It wanted to chdir() and then
fchdir() back to original directory. I fixed this by making dsync -u
always chdir() to user's home directory first (it should have been doing
that anyway).
> dsync(info at example.org): Panic: file mbox-sync-rewrite.c: line 247
> (mbox_sync_try_rewrite): assertion failed: (sync_ctx->mbox->mbox_lock_type
> == F_WRLCK)
Fixed also this crash.
More information about the dovecot
mailing list