On 2011年06月07日 00:09, Timo Sirainen wrote:
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.
when i have mail_chroot = /var/vmail/ in 10-mail.conf
both doveconf mail_chroot and doveconf -f protocol=lmtp mail_chroot
result is same: mail_chroot = /var/vmail/
when i remove mail_chroot = /var/vmail/ in 10-mail.conf
both result is empty: mail_chroot =
i have only one mail_chroot setting in 10-mail.conf,
but i also have valid_chroot_dirs = /var/vmail/.
is it matter?