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

Timo Sirainen tss at iki.fi
Mon Jun 6 19:42:28 EEST 2011


On 6.6.2011, at 19.32, johnw wrote:

>> 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 =

Put that mail_chroot setting inside the protocol !lmtp {} section. The settings don't have any hard coded places in the config files. You can put anything anywhere..

> i have only one mail_chroot setting in 10-mail.conf,
> but i also have valid_chroot_dirs = /var/vmail/.
> is it matter?

valid_chroot_dirs is ignored when mail_chroot is set.


More information about the dovecot mailing list