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

johnw johnw.mail at gmail.com
Mon Jun 6 19:02:46 EEST 2011


On 2011年06月06日 23:39, Timo Sirainen wrote:
> On Mon, 2011-06-06 at 23:36 +0800, johnw wrote:
>> On 2011年06月06日 23:28, Timo Sirainen wrote:
>>> On Mon, 2011-06-06 at 23:20 +0800, johnw wrote:
>>>> (lmtp) Couldn't drop privileges: Process is already chrooted, can't
>>>> un-chroot for this user
>>>>
>>>> i already config mail_chroot, should i remove it?(mail_chroot)
>>>> any how-to document is for lmtp chroot?
>>> protocol !lmtp {
>>>     mail_chroot = /somewhere
>>> }
>>>
>>>
>> doveconf: Fatal: Error in configuration file
>> /etc/dovecot/conf.d/10-master.conf line 50: Unknown setting: mail_chroot
> Did you put it inside service lmtp {} or something? That's different
> from protocol lmtp {}
>
>
i added it to 20-lmtp.conf, is it correct?
-----------------------------------
##
## LMTP specific settings
##

# Support proxying to other LMTP/SMTP servers by performing passdb lookups.
#lmtp_proxy = no

# When recipient address includes the detail (e.g. user+detail), try to save
# the mail to the detail mailbox. See also recipient_delimiter and
# lda_mailbox_autocreate settings.
#lmtp_save_to_detail_mailbox = no

protocol lmtp {
   # Space separated list of plugins to load (default is global 
mail_plugins).
   mail_plugins = $mail_plugins sieve
}

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

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



More information about the dovecot mailing list