TS> OK, so two problems:
write(7, "From MAILER-DAEMON Fri Oct 16 2"..., 168) = 168 pwrite64(7, "\nContent-Length: 0", 18, 4235) = 18
TS> It's writing a zero byte mail. Was the incoming mail really zero bytes, TS> or is there something that truncates it?
No, it's not a problem. This is a really zero bytes message: $ echo "123123123" | strace /usr/local/libexec/dovecot/deliver -d koc
fstat64(7, {st_mode=S_IFREG|0600, st_size=4255, ...}) = 0 fdatasync(7) = 0 write(7, "\n", 1) = 1
TS> write() happened after fdatasync(), that causes this to fail:
close(7) = -1 EDQUOT (Disk quota exceeded)
TS> So this later problem should be fixed by: TS> http://hg.dovecot.org/dovecot-1.2/rev/b5e6de777e52
Yabba-Dabba Do! :) Yes, this patch solves the problem: "rejected: Not enough disk space". And inbox is rollbacked now.
Timo, many thanks for all your help!
=kostik