[Dovecot] How to stop mail_executable from cwd to ~home

Timo Sirainen tss at iki.fi
Sat May 21 18:52:08 EEST 2011


On 21.5.2011, at 10.51, Joseph Tam wrote:

> On Thu, 19 May 2011, I wrote:
> 
>> Gary Duncan <gduncan at engr.UVic.CA> writes:
>> 
>>> Works well except that dovecot still wants to cd to the real home
>>> triggering a useless and potentially hindering automount when it
>>> invokes the imap or pop3 process specified by mail_executable, ie an
>>> lsof of the process shows cwd of /home/<user> and the automounted
>>> home.
>> I see the same behaviour in 2.0.13, which process tracing of imap
>> shows more clearly (/nfs/user is per user mount, /nfs/home/user
>> is user home bundle)
> 
> This appears to be done (v2.0.13) in mail-storage-service.c in an attempt to
> make sure core files are dumped into a user's home directory

That's one reason, yes. It's also needed when doing chrooting. And in general it's cleaner..

> As to how to stop the mail process from chdir'ing to a home directory

If you don't want Dovecot to use a home directory, don't tell it a home directory.


More information about the dovecot mailing list