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

johnw johnw.mail at gmail.com
Tue Jun 7 17:26:10 EEST 2011


On 2011年06月07日 22:15, Timo Sirainen wrote:
> On Tue, 2011-06-07 at 22:02 +0800, johnw wrote:
>> On 2011年06月07日 21:13, Timo Sirainen wrote:
>>> On Tue, 2011-06-07 at 19:19 +0800, johnw wrote:
>>>> Couldn't drop privileges: Process is already chrooted, can't un-chroot
>>>> for this user
>>>>
>>>> and lmtp can not delivery mail
>>> This'll fix it: http://hg.dovecot.org/dovecot-2.0/rev/ed05316ed441
>>>
>>> Also remove the protocol !lmtp {} around mail_chroot. Looks like I
>>> already had code that was supposed to handle it, but I had forgotten
>>> about it and I had never tested it.
>>>
>>>
>> after apply the patch with 2.0.13, and remove the protocol !lmtp {}, the
>> error like this:
>>
>> Couldn't drop privileges: Process is already chrooted to /var/vmail,
>> can't chroot to /var/vmail/
>>
>> and lmtp still can not delivery mail
> The trick is to make the strings equal :) mail_chroot = /var/mail
> without the trailing /.
>
>
Ok, i change mail_chroot = /var/vmail/ to mail_chroot = /var/vmail
now, lmtp can delivery mail with chroot.

thank you.


More information about the dovecot mailing list