On 21.5.2011, at 10.51, Joseph Tam wrote:

> On Thu, 19 May 2011, I wrote:
> 
>> Gary Duncan <gdun...@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.

Reply via email to