[Dovecot] chroot lmtp, then can not open /usr/local/lib/dovecot

Timo Sirainen tss at iki.fi
Mon Jun 6 19:09:20 EEST 2011


On Tue, 2011-06-07 at 00:02 +0800, johnw wrote:
> >>>> i already config mail_chroot, should i remove it?(mail_chroot)
> >>>> any how-to document is for lmtp chroot?
> >>> protocol !lmtp {
> >>>     mail_chroot = /somewhere
> >>> }
> >>>
> i added it to 20-lmtp.conf, is it correct?

It doesn't matter where you add it, as long as the "doveconf -n" output
looks correct.

> protocol !lmtp {
>         mail_chroot = /var/vmail/
> }

Looks right.

> then, i still see this error in log:
> Couldn't drop privileges: Process is already chrooted, can't un-chroot 
> for this user

Is there another mail_chroot setting elsewhere? The important thing is
that when you do:

doveconf mail_chroot

it shows the chroot, but when you do:

doveconf -f protocol=lmtp mail_chroot

the result should be empty.



More information about the dovecot mailing list