[Dovecot] Chroot

Bambero bambero at gmail.com
Wed Nov 16 18:23:02 EET 2011


On Wed, Nov 16, 2011 at 3:59 PM, Timo Sirainen <tss at iki.fi> wrote:
> On Wed, 2011-11-16 at 15:54 +0100, Bambero wrote:
>> >> Error: userdb lookup: connect(/var/dovecot/auth-userdb) failed: No
>> >> such file or directory
>> >
>> > This is done because you used %%h, to look up home directory from
>> > userdb. If you don't use %%h, it's not done.
>> >
>>
>> Thanks but my db backend returns home dir in chroot like
>> /test at example.com
>>
>> while the realpath with no chroot is:
>> /var/mail/test at example.com
>>
>> So both locations in this case are the same
>> location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u
>> location = maildir:/%%u/Maildir:INDEX=~/Maildir/shared/%%u
>
> Yes, they are the same, but the difference is that with the second one
> you shouldn't fail with the userdb lookup error. Right?
>

Thanks a lot it almost helped. But now there is another problem:
Nov 16 17:13:45 zeus exim[10613]: 2011-11-16 17:13:45 1RQi7C-0001lG-BX
** test at apisoft.pl R=localuser T=local_delivery: Child process of
local_delivery transport (running command
"/usr/local/libexec/dovecot/dovecot-lda -d $local_part@$domain  -f
$sender_address -a $original_local_part@$original_domain") was
terminated by signal 11 (Segmentation fault)

But it anly appear if user has .sieve filter with mail redirection
(uses submission_host)



More information about the dovecot mailing list