[Dovecot] Deliver/LDA, no data in the logs, even with debug set (dovecot + qmail-ldap), and sieve issue
Hi,
I am trying to integrate sieve with qmail-ldap. I can't get it to work, and deliver isn't logging anything to the log files (or syslog, if selected). Hence I have got no way to diagnose the problem. Any help appreciated.
*root@debtwo:~# dovecot --version* 1.2.13
*root@debtwo:~# dovecot -n* # 1.2.13: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-3-686 i686 Debian squeeze/sid log_path: /dev/stderr protocols: imap imaps pop3 pop3s login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login mail_privileged_group: mail mail_location: maildir:~/Maildir mbox_write_locks: fcntl dotlock mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 lda: postmaster_address: mirko@deb.vm hostname: debtwo.deb.vm sendmail_path: /usr/lib/sendmail mail_plugins: sieve mail_plugin_dir: /usr/lib/dovecot/modules/lda log_path: /var/log/ldaone.log info_log_path: /var/log/ldatwo.log debug: yes auth default: passdb: driver: ldap args: /etc/dovecot/dovecot-ldap.conf userdb: driver: prefetch userdb: driver: ldap args: /etc/dovecot/dovecot-ldap.conf plugin: sieve: ~/.dovecot.sieve
*root@debtwo:~# grep -v '^ *\(#.*\)\?$' /etc/dovecot/dovecot-ldap.conf*
hosts = debtwo.deb.vm
uris = ldap://debtwo.deb.vm ldaps://debtwo.deb.vm
dn = cn=admin,dc=deb,dc=vm
dnpass = secret
auth_bind = yes
ldap_version = 3
base = ou=People,dc=deb,dc=vm
scope = subtree
user_attrs = homeDirectory=home,uidNumber=uid,gidNumber=gid
user_filter = (&(objectClass=posixAccount)(uid=%u))
pass_attrs = uid=user,userPassword=password,
homeDirectory=userdb_home,uidNumber=userdb_uid,gidNumber=userdb_gid
user_attrs = homeDirectory=home, uidNumber=uid, gidNumber=gid
*
root@debtwo:~# cat /home/mirko/.dovecot.sieve *
require ["reject"];
reject "blah"; * root@debtwo:~# ls -l /var/log/lda** -rw-rw-rw- 1 root root 0 Sep 16 16:49 /var/log/ldaone.log -rw-rw-rw- 1 root root 0 Sep 16 16:49 /var/log/ldatwo.log
Also, * root@debtwo:~# cat /var/qmail/control/defaultdelivery * |/var/qmail/bin/preline -f /usr/lib/dovecot/deliver
On Thu, Sep 16, 2010 at 5:33 PM, Mohit Chawla wrote: Hi, I am trying to integrate sieve with qmail-ldap. I can't get it to work, and
deliver isn't logging anything to the log files (or syslog, if selected).
Hence I have got no way to diagnose the problem. Any help appreciated. *root@debtwo:~# dovecot --version*
1.2.13 *root@debtwo:~# dovecot -n*
# 1.2.13: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-3-686 i686 Debian squeeze/sid
log_path: /dev/stderr
protocols: imap imaps pop3 pop3s
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
mail_privileged_group: mail
mail_location: maildir:~/Maildir
mbox_write_locks: fcntl dotlock
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
lda:
postmaster_address: mirko@deb.vm
hostname: debtwo.deb.vm
sendmail_path: /usr/lib/sendmail
mail_plugins: sieve
mail_plugin_dir: /usr/lib/dovecot/modules/lda
log_path: /var/log/ldaone.log
info_log_path: /var/log/ldatwo.log
debug: yes
auth default:
passdb:
driver: ldap
args: /etc/dovecot/dovecot-ldap.conf
userdb:
driver: prefetch
userdb:
driver: ldap
args: /etc/dovecot/dovecot-ldap.conf
plugin:
sieve: ~/.dovecot.sieve *root@debtwo:~# grep -v '^ *\(#.*\)\?$' /etc/dovecot/dovecot-ldap.conf*
hosts = debtwo.deb.vm
uris = ldap://debtwo.deb.vm ldaps://debtwo.deb.vm
dn = cn=admin,dc=deb,dc=vm
dnpass = secret
auth_bind = yes
ldap_version = 3
base = ou=People,dc=deb,dc=vm
scope = subtree
user_attrs = homeDirectory=home,uidNumber=uid,gidNumber=gid
user_filter = (&(objectClass=posixAccount)(uid=%u))
pass_attrs = uid=user,userPassword=password, reject "blah";
*
root@debtwo:~# ls -l /var/log/lda**
-rw-rw-rw- 1 root root 0 Sep 16 16:49 /var/log/ldaone.log
-rw-rw-rw- 1 root root 0 Sep 16 16:49 /var/log/ldatwo.log
homeDirectory=userdb_home,uidNumber=userdb_uid,gidNumber=userdb_gid
user_attrs = homeDirectory=home, uidNumber=uid, gidNumber=gid
*
root@debtwo:~# cat /home/mirko/.dovecot.sieve *
require ["reject"];
Hi again.
I just tried using .qmail instead of just changing the defaultdelivery control variable, and its working. I guess dovecot's working just fine, will have a look at the qmail control variables again.
On Thu, Sep 16, 2010 at 5:35 PM, Mohit Chawla wrote: Also,
*
root@debtwo:~# cat /var/qmail/control/defaultdelivery *
|/var/qmail/bin/preline -f /usr/lib/dovecot/deliver On Thu, Sep 16, 2010 at 5:33 PM, Mohit Chawla <
mohit.chawla.binary@gmail.com> wrote: Hi, I am trying to integrate sieve with qmail-ldap. I can't get it to work,
and deliver isn't logging anything to the log files (or syslog, if
selected). Hence I have got no way to diagnose the problem. Any help
appreciated. *root@debtwo:~# dovecot --version*
1.2.13 *root@debtwo:~# dovecot -n*
# 1.2.13: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-3-686 i686 Debian squeeze/sid
log_path: /dev/stderr
protocols: imap imaps pop3 pop3s
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
mail_privileged_group: mail
mail_location: maildir:~/Maildir
mbox_write_locks: fcntl dotlock
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
lda:
postmaster_address: mirko@deb.vm
hostname: debtwo.deb.vm
sendmail_path: /usr/lib/sendmail
mail_plugins: sieve
mail_plugin_dir: /usr/lib/dovecot/modules/lda
log_path: /var/log/ldaone.log
info_log_path: /var/log/ldatwo.log
debug: yes
auth default:
passdb:
driver: ldap
args: /etc/dovecot/dovecot-ldap.conf
userdb:
driver: prefetch
userdb:
driver: ldap
args: /etc/dovecot/dovecot-ldap.conf
plugin:
sieve: ~/.dovecot.sieve *root@debtwo:~# grep -v '^ *\(#.*\)\?$' /etc/dovecot/dovecot-ldap.conf*
hosts = debtwo.deb.vm
uris = ldap://debtwo.deb.vm ldaps://debtwo.deb.vm
dn = cn=admin,dc=deb,dc=vm
dnpass = secret
auth_bind = yes
ldap_version = 3
base = ou=People,dc=deb,dc=vm
scope = subtree
user_attrs = homeDirectory=home,uidNumber=uid,gidNumber=gid
user_filter = (&(objectClass=posixAccount)(uid=%u))
pass_attrs = uid=user,userPassword=password, reject "blah";
*
root@debtwo:~# ls -l /var/log/lda**
-rw-rw-rw- 1 root root 0 Sep 16 16:49 /var/log/ldaone.log
-rw-rw-rw- 1 root root 0 Sep 16 16:49 /var/log/ldatwo.log
homeDirectory=userdb_home,uidNumber=userdb_uid,gidNumber=userdb_gid
user_attrs = homeDirectory=home, uidNumber=uid, gidNumber=gid
*
root@debtwo:~# cat /home/mirko/.dovecot.sieve *
require ["reject"];
On Thu, 2010-09-16 at 17:33 +0530, Mohit Chawla wrote:
deliver isn't logging anything to the log files (or syslog, if selected).
Well, I did explore every option possible for logging, manipulating permissions et al. And as I said, using a .qmail in user's home directory makes all those issues disappear. The dilemma I am facing is that why, qmail-lspawn sending data to dovecot lda doesn't work (setting |/var/qmail/bin/preline -f /usr/lib/dovecot/deliver), while a .qmail works perfectly.
On Thu, Sep 16, 2010 at 6:21 PM, Timo Sirainen tss@iki.fi wrote:
On Thu, 2010-09-16 at 17:33 +0530, Mohit Chawla wrote:
deliver isn't logging anything to the log files (or syslog, if selected).
participants (2)
-
Mohit Chawla
-
Timo Sirainen