On 05/18/2013 05:35 PM, Stephan Bosch wrote:
root@hostname:/usr/local/dovecot-2.2.1# doveconf -n # 2.2.1: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.0
mail_debug = yes
So, mail_debug is enabled.
Here's the file that calls dovecot-lda for user jim:
vpopmail@hostname:~/domains/domain.com/jim$ cat .qmail-default |/var/qmail/bin/preline -f /usr/local/libexec/dovecot/dovecot-lda -d $EXT@$USER
Both /var/qmail/bin/preline and /usr/local/libexec/dovecot/dovecot-lda exist.
Are you sure this is actually being executed? What happens if you execute dovecot-lda manually?
I found that LDA was not being executed from the user's .qmail-default file, I changed that file to call a non-existent delivery agent, and the message still ended up in the inbox, not sorted as it should have been, so vpopmail was still handling the delivery. This is a qmail issue, simply renaming .qmail-default to .qmail in that user's vpopmail directory allowed lda to begin functioning.
This is an example of what you're supposed to see in the logs with mail_debug=yes:
May 18 23:28:02 klara dovecot: lda: Debug: Loading modules from directory: /usr/lib/dovecot/modules May 18 23:28:02 klara dovecot: lda: Debug: Module loaded: /usr/lib/dovecot/modules/lib90_sieve_plugin.so May 18 23:28:02 klara dovecot: lda(stephan): Debug: Effective uid=1000, gid=1000, home=/home/stephan May 18 23:28:02 klara dovecot: lda(stephan): Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir May 18 23:28:02 klara dovecot: lda(stephan): Debug: maildir++: root=/home/stephan/Maildir, index=, indexpvt=, control=, inbox=/home/stephan/Maildir, alt= May 18 23:28:02 klara dovecot: lda(stephan): Debug: userdb lookup skipped, username taken from USER environment May 18 23:28:02 klara dovecot: lda(stephan): Debug: none: root=, index=, indexpvt=, control=, inbox=, alt= May 18 23:28:02 klara dovecot: lda(stephan): Debug: Destination address: stephan@klara (source: user@hostname) May 18 23:28:02 klara dovecot: lda(stephan): Debug: sieve: Pigeonhole version 0.4.0 initializing
Regards,
Stephan.
Now this is interesting - I do have Pigeonhole and sieve enabled according to doveconf -n, but the only mention of sieve is as a subdirectory of the user's home, no mention of the sieve module at all. I do see that Pigeonhole 0.4.0 is enabled. Also, there have only been 0 mentions of lda in the current dovecot log, and that log is 6 hours old.
I'll try running dovecot-lda manually after checking out the man page.
Thanks again for the help!