chroot: Error: Temp file creation to /tmp

Timo Sirainen tss at iki.fi
Tue Jun 28 21:17:02 UTC 2016


On 28 Jun 2016, at 10:55, bvr <bvr at dds.nl> wrote:
> 
> 
> Hello,
> 
> We are using dovecot (2.2.10) and it's working great! When I enable chrooting by appending /./ to the homedirs I'm getting errors like this:
> 
> mail1 dovecot[47074]: imap(user): Error: Temp file creation to /tmp/dovecot.imap.mail1.70079. failed: No such file or directory
> 
> On the surface everything seems to be working fine and I have not been able to produce the error myself.

Sometimes Dovecot wants to create temporary files to avoid excessive memory usage. If it can't create the temp file it'll just keep the temporary data in memory. You can control the temporary file location with mail_temp_dir setting. But maybe the nicest solution would be to just create tmp/ director to everybody's home dir? I guess Dovecot could do this also automatically if it has permissions, but I'm not entirely sure if that's a good idea.



More information about the dovecot mailing list