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

johnw johnw.mail at gmail.com
Mon Jun 6 19:59:52 EEST 2011


On 2011年06月07日 00:42, Timo Sirainen wrote:
> 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..
>
yes, i did it (put the mail_chroot inside the protocol !lmtp { 
mail_chroot = /var/vmail/ }
and no mail_chroot anywhere.

but the both doveconf mail_chroot and doveconf -f protocol=lmtp mail_chroot
result is same empty: mail_chroot =

then i retry add the mail_chroot = /var/vmail/ in 
(somewhere)10-mail.conf(i know it can be anywhere),
and still have protocol !lmtp { mail_chroot = /var/vmail/ }
then the both result is same: mail_chroot = /var/vmail/

i mean the protocol !lmtp { mail_chroot = /var/vmail/ }, look like not 
working.



More information about the dovecot mailing list