[Dovecot] Permission problem with LDA and dovecot 2.2.1

Tobi tobster at brain-force.ch
Wed May 8 22:53:28 EEST 2013


Am 08.05.2013 19:21, schrieb Ben Morrow:
> At  6PM +0200 on  7/05/13 you (Tobi) wrote:
>> I tried with removing the base_dir definition from my config, restartet
>> dovecot and checked with the commands you provided below:
>> <<
>> root at nordkap:~# doveconf -d base_dir
>> base_dir = /usr/local/var/run/dovecot
>> root at nordkap:~# doveconf base_dir
>> base_dir = /usr/local/var/run/dovecot
>> root at nordkap:~# su vmail -s /bin/sh -c "doveconf base_dir"
>> base_dir = /usr/local/var/run/dovecot
>>   >>
>> for me it seems that all is build with /usr/local
> OK, that's odd. I was wondering if you had some permission problem which
> was stopping the lda from reading the config file, but apparently not.
Sorry my subject is a bit misleading ;-)
As I updated today to wheezy anyway I built dovecot again with the 
following options:
<<
./configure --prefix=/usr/local --localstatedir=/usr/local/var 
--with-mysql --with-sql
make && make install
 >>
but as well with those after starting dovecot and postfix the errors of 
the lda looking in /var/run occured again.
>> But after removing the symlink and restarting dovecot I get the errors again
>> <<
>> May  7 17:47:57 nordkap dovecot: lda: Error: userdb lookup:
>> connect(/var/run/dovecot/auth-userdb) failed: No such file or directory
>> May  7 17:47:57 nordkap dovecot: lda: Fatal: Internal error occurred.
>> Refer to server log for more information.
>>   >>
> Are you sure you're running the right copy of dovecot-lda? I think you
> mentioned xthread that you have a Debian-provided version installed as
> well?
Yes I had the version from apt as well, but removed it today after 
upgrading to wheezy. The lda is called from postfix by these lines in 
master.cf
<<
dovecot unix    -       n       n       -       -       pipe
  flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -f 
${sender} -d ${user}@${nexthop}
 >>
so according to the path prefix it should be the correct copy of 
deliver. Is there a switch to get the version from deliver? I tried the 
usual -v and --version but no success. But even without the version I'm 
99.99873% sure that the correct binary is used :-)

tobi



More information about the dovecot mailing list