On Thu, 8 Feb 2007, Tognini Samuele wrote:
Hi, I don't know if it's a bug or my configuration fault, but LDA does not work as i expect. Dovecot auth connects to a pgsql database that mirrors Nis users infos, but it has also quota settings because i'd like to use a per-user quota environment. Mailserver and Postfix authenticates users with Nis (through PAM), while imap and local delivery (with the postfix mailbox_command setting) are left to dovecot mechanism. Imap works perfectly, dovecot retrieves authentication and quota setting from database, but dovecot LDA seems to not query any database (and nothing is logged) , so that quota is not retrived and message is not bounced when user is overquota.
I think i' ve solved although i'm not sure it's the best solution.
With mailbox_command, executable needs an optional parameter not mentioned in the wiki: mailbox_command = /usr/lib/dovecot/deliver -d ${LOCAL}
I had to give full permission to everyone to spool mail, dovecot log files and lda socket too. The reason why is that postfix runs deliver with the same recipient user privileges:
socket listen { master { path = /var/run/dovecot/auth-master mode = 0666 #needed by postfix user = mail # User running Dovecot LDA group = mail # Or alternatively mode 0660 + LDA user in this group } }
Samuele