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

2011-06-07 Thread johnw
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

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

2011-06-07 Thread Timo Sirainen
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

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

2011-06-07 Thread johnw
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 pro

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

2011-06-07 Thread Timo Sirainen
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. Lo

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

2011-06-07 Thread johnw
On 2011年06月07日 02:41, Timo Sirainen wrote: On 6.6.2011, at 19.59, johnw wrote: 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 emp

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

2011-06-06 Thread Timo Sirainen
On 6.6.2011, at 19.59, johnw wrote: > 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 = Oh, looks like

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

2011-06-06 Thread johnw
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

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

2011-06-06 Thread Timo Sirainen
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 h

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

2011-06-06 Thread johnw
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 doe

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

2011-06-06 Thread Timo Sirainen
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 matte

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

2011-06-06 Thread johnw
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 ma

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

2011-06-06 Thread Timo Sirainen
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 rem

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

2011-06-06 Thread johnw
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

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

2011-06-06 Thread Timo Sirainen
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

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

2011-06-06 Thread johnw
On Mon, 06 Jun 2011 17:46:31 +0300, Timo Sirainen wrote: On Sat, 2011-06-04 at 21:48 +0800, johnw wrote: i want to chroot lmtp with sieve, but have some problem, look like lmtp can not load sieve's lib or something. the error message like this: dovecot: lmtp(12799): Fatal: opendir(/usr/local/l

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

2011-06-06 Thread Timo Sirainen
On Sat, 2011-06-04 at 21:48 +0800, johnw wrote: > i want to chroot lmtp with sieve, but have some problem, look like lmtp > can not load sieve's lib or something. > the error message like this: > > dovecot: lmtp(12799): Fatal: opendir(/usr/local/lib/dovecot) failed: No > such file or directory >

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

2011-06-04 Thread johnw
i want to chroot lmtp with sieve, but have some problem, look like lmtp can not load sieve's lib or something. the error message like this: dovecot: lmtp(12799): Fatal: opendir(/usr/local/lib/dovecot) failed: No such file or directory all is work fine, when not config lmtp chroot. can i config lm