[Dovecot] LDA can't read dovecot.conf
Steffen Kaiser
skdovecot at smail.inf.fh-brs.de
Fri May 9 06:39:59 UTC 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 8 May 2014, Hit4er wrote:
Er, your message looks quite stipped down (see below) in contrast to the
nabble-link,
> Thanks for reply, still want to understand with LDA. Correct my error, here
> is my config dovecot
>
>
> Config Postfix
>
>
>
> right /etc/dovecot
>
>
> right /etc/postfix
>
>
>
> Any help/pointers gratefully received.
Nabble says this:
> virtual_alias_maps = mysql:/etc/postfix/mysql/virtual_alias_maps.cf, mysql:/etc/postfix/mysql/virtual_alias_domain_maps.cf
> virtual_gid_maps = static:5000
> virtual_mailbox_base = /var/vmail
> virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_domains.cf
> virtual_mailbox_maps = mysql:/etc/postfix/virtual_mailbox_maps.cf
> virtual_transport = dovecot
> virtual_uid_maps = static:5000
>
> right /etc/dovecot
>
> drwx------ 2 root root 4096 апр. 22 21:10 conf.d
> -rw-r--r-- 1 root root 4448 мая 8 01:04 dovecot.conf
I guess postfix calls Dovecot LDA as user 5000/5000 as per quoted
config above, right? **
That user has no access to the config in /etc/dovecot.
Do:
chmod a+x /etc/dovecot /etc/dovecot/conf.d
chmod a+r /etc/dovecot/*.conf* /etc/dovecot/conf.d/*.conf* /etc/dovecot/conf.d
** If you don't know, replace the call to the LDA in postfix with
a wrapper script:
===== BEGIN
#!/bin/bash
( date
id
echo "$@"
original_LDA "$@"
rc=$?
echo rc=$rc
exit $rc
) >>/tmp/lda.log 2>&1
=====END
If you don't have a test machine, better use
>>/tmp/log/lda-$$.log 2>&1
in order to put all log files into one subdir of /tmp
and make sure their logging does not overlap.
- --
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBU2x4QHz1H7kL/d9rAQJ4jggAuktMwHJpjQSoRdohj4ro2XW8NfSUr14X
uX4+45uMSkTtEZIwJULrrtNQ/Ej8jInikKlxboXSWQd/URHFXTyCrjREHeCYazD5
d6P8Gl6coUbbJfPXiSfYc5oZOUQ4Mbr9yxWu20fnIlCtQATdVccA9R9JQYtFUNLO
qSgv1gOivCfo5WhE4tH1y69ArcvR8dpeRRmJoS8QVaYaGDtHjV3O4T/juCm4VAuZ
W1nRwjw1OzGyWwkbGvA2rcvby0fVOMmuO3qcdhOfOs4B3wfKnzs1SPdWxDc6wqbu
TVcmOlTI3Y4N6L0Oa/bnF+m7jUlzdEO+Bf/16bat6mq0Km/6vsiFbg==
=ozvg
-----END PGP SIGNATURE-----
More information about the dovecot
mailing list