[Dovecot] Automounted home dirs not working

Roy McMorran mcmorran at mdibl.org
Mon May 12 23:01:53 EEST 2008


Timo Sirainen wrote:
> On Mon, 2008-05-12 at 10:46 -0400, Roy McMorran wrote:
>   
>> May 12 10:30:24 testbed dovecot: [ID 107833 mail.info] imap-login: 
>> Login: user=<adent>, method=PLAIN, rip=xxx.xxx.xxx.242, 
>> lip=xxx.xxx.xxx.242, secured
>> May 12 10:30:24 testbed dovecot: [ID 107833 mail.error] IMAP(adent): 
>> mkdir_parents(/home/adent/Mail) failed: No such file or directory
>> May 12 10:30:24 testbed dovecot: [ID 107833 mail.error] IMAP(adent): 
>> Mail storage creation failed with mail_location: 
>> mbox:/home/adent/Mail:INBOX=/var/mail/adent
>> May 12 10:30:24 testbed dovecot: [ID 961074 mail.error] child 21816 
>> (imap) returned error 89
>>     
>
> Does this happen only for your LDAP users or also passwd users? Before
> the above mkdir() Dovecot should chdir() to user's home directory. So if
> LDAP returns user's home directory, I'd think the chdir() causes
> automount?
>
>   
This seems to have been a Solaris issue.  I've applied some recent 
patches to my test machine and it seems to be resolved.

You're right Timo about the chdir - I ran a truss and that was where it 
was initially failing (with ENOENT).  Now it works:
...
6983:   seteuid(20025)                                  = 0
6983:   alarm(30)                                       = 0
6983:   chdir("/home/adent")                            = 0
6983:   alarm(0)                                        = 30
6983:   seteuid(0)                                      = 0
...

Thanks for the help!

Cheers,

-- 

Roy McMorran
Systems Administrator
MDI Biological Laboratory
mcmorran at mdibl.org



More information about the dovecot mailing list