[Dovecot] fdatasync -- Error -- bad file descriptor

Timo Sirainen tss at iki.fi
Sun Sep 22 04:43:07 EEST 2013

On 9.9.2013, at 9.54, Vijay Rajah <vijayrajah at gmail.com> wrote:

> Ok I finally figured it...
> It was because of improper permissions for the attachments folder.... I did
> an strace and found this.
> Once I changed the permision to the attachments folder it was alright..
> I think this is a bug... it must check and fail and report a proper error
> message.. instead of this cryptic error…

I did various fixes related to this. The new error message looks like this:

Sep 22 04:36:44 lda(tss 11769 ): Error: read(stdin) failed: Couldn't create attachment /tmp/mdbox/attachments/95/84/9584a63bd21ba5db6c92f6efb162c46f9e351d16-7a1fa036ac493e52f92d00007049b30b: mkdir_parents(/tmp/mdbox/attachments/95/84) failed: Permission denied

More information about the dovecot mailing list