[Dovecot] dovecot-1.1 not using sieve
hi,
im using the atrpm packages dovecot-1.1.11-0_90.el5 and dovecot-sieve-1.1.6-9.el5 on a centos5.2 in combination with exim/vexim, mysql and virtual users.
everything (delivery /sending) seems to work out fine, but i can't use sieve filters, unfortunately when doing a dovecot -n sieve doesn't show up anywhere:
# 1.1.11: /etc/dovecot.conf # OS: Linux 2.6.18-92.1.22.el5 x86_64 CentOS release 5.2 (Final) ext3 listen: * login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login first_valid_uid: 90 mail_location: /usr/local/mail/%d/%u mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/lib64/dovecot/imap mail_plugin_dir(imap): /usr/lib64/dovecot/imap mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3 auth default: mechanisms: plain digest-md5 cram-md5 ntlm rpa passdb: driver: sql args: /etc/dovecot-sql.conf userdb: driver: sql args: /etc/dovecot-sql.conf
in dovecot.conf i added following:
protocol lda { # Address to use when sending rejection mails. postmaster_address = postmaster@mail.xxxxxxxx.com
# Hostname to use in various parts of sent mails, eg. in Message-Id. # Default is the system's real hostname. #hostname =
# Support for dynamically loadable plugins. mail_plugins is a space separated # list of plugins to load. # mail_plugins = cmusieve mail_plugin_dir = /usr/lib64/dovecot/lda mail_plugins = cmusieve # Binary to use for sending mails. sendmail_path = /usr/lib/sendmail
any hints?
regards, thomas
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 11 Mar 2009, Thomas Carstensen wrote:
mail_plugin_dir = /usr/lib64/dovecot/lda mail_plugins = cmusieve # Binary to use for sending mails. sendmail_path = /usr/lib/sendmail
any hints?
Do you have configured exim to use Dovecot deliver?
What does deliver log?
Does it work, if you invoke deliver from commandline, e.g.:
echo TEST | sudo deliver -d destuser -f sender
Bye,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBSbfL8nWSIuGy1ktrAQJ+kQgAku78U44gzt/WdvlhjzMhslHH9NjlkBCK oASUczPY7+GU9oQLMNPO2MNghaKeL7vo5d0gebcDg9FZ+w3LWScv+UPzTfrOVDoY fhBHckdtn479PkvDFhMSiqRnSkbUIHfhSy3UxrU5D8OXbdB8rXNobpZ52Y+SJGgA ePEjry92QZxYRwveqbCWacnbepsmq3T0xOLenDqYht27h6l8+l8FIxIqv1A8kcl+ /vVihVhFd32XyNoc812phil0uJW82WjJjS5JOFufDRVdNAfRwM+P6jhygiECp8Gv Vz4nMn0S6V9Kw8o8pgxfuTytNXJPfFPLrwNfcUIFyaxOb7Qv8aF+eg== =cNG+ -----END PGP SIGNATURE-----
Steffen Kaiser wrote:
On Wed, 11 Mar 2009, Thomas Carstensen wrote:
mail_plugin_dir = /usr/lib64/dovecot/lda mail_plugins = cmusieve # Binary to use for sending mails. sendmail_path = /usr/lib/sendmail
any hints?
Do you have configured exim to use Dovecot deliver? yes
What does deliver log? nothing, log_path = /tmp/deliver.log seems to be ignored
Does it work, if you invoke deliver from commandline, e.g.:
echo TEST | sudo deliver -d destuser -f sender mail arrives... no sorting :-(
Bye,
-- Steffen Kaiser
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 11 Mar 2009, Thomas Carstensen wrote:
What does deliver log? nothing, log_path = /tmp/deliver.log seems to be ignored
Does the file exists already? Maybe the user has no write permission for the file.
Looks like you haven't enabled mail_debug, I don't know for sure, if you need it, but it won't hurt.
I switched to syslog because of permission troubles:
protocol lda {
...
# Log to syslog log_path = info_log_path = syslog_facility = mail }
The logs would tell if sieve is used at all. So it is quite important.
Second: Try to delete the corresponding .dovecot.sievec file and see if it is re-created. Do you use user-specific scripts or a system-wide script? If latter, try an user script; it could be a permission problem as well.
Bye,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBSbjVjHWSIuGy1ktrAQL02QgAktJd6ouTttOicCJkfGm4AfLGBUW0eV3s UwZhQ7YrHIzhOGvnmabMujLJvWo2wNaTp5L3jAxGIH8zIE/P3Nn/yppdEYFx0+bt 5o++UWOoJNMca6A+ElpaIG1cHg3AvLtDEVh4x+7TdNKcjGTNUEkdyt9Zwvg1QYCs LRywHu6wHEabAQM8AphOmfQq500nyuDVAVgb6O3O+T1wUQUFwH0FKYANwGh48A+G jAclZ6fi9E5ORmFNxKibCecmKF1b276X1alEzt8gxmZUt0i20XXlk0NhGy+LEt9i CjwNEqxdYee1B236uasGqhaoopcaIa2moXrsyKZZqBcRpTjLD8UECw== =xjaQ -----END PGP SIGNATURE-----
no .dovecot.sievec is created anywhere :-(
i put the sieve-script named .dovecot.sieve in into this folder:
/usr/local/mail/domain.toplevel/username/Maildir/ and to as a sym-link into /usr/local/mail/domain.toplevel/username
maillog says nothing at all about imap/sieve:
Mar 12 11:10:45 mail spamd[2594]: spamd: connection from localhost [127.0.0.1] at port 50034 Mar 12 11:10:45 mail spamd[2594]: spamd: setuid to vexim succeeded Mar 12 11:10:45 mail spamd[2594]: spamd: checking message 49B8DF71.6090603@exitec.de for vexim:90 Mar 12 11:10:45 mail spamd[2594]: spamd: clean message (0.0/5.0) for vexim:90 in 0.3 seconds, 1087 bytes. Mar 12 11:10:45 mail spamd[2594]: spamd: result: . 0 - scantime=0.3,size=1087,user=vexim,uid=90,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=50034,mid=49B8DF71.6090603@exitec.de,autolearn=ham
Mar 12 11:10:45 mail spamd[2507]: prefork: child states: II
Steffen Kaiser wrote:
On Wed, 11 Mar 2009, Thomas Carstensen wrote:
What does deliver log? nothing, log_path = /tmp/deliver.log seems to be ignored
Does the file exists already? Maybe the user has no write permission for the file.
Looks like you haven't enabled mail_debug, I don't know for sure, if you need it, but it won't hurt.
I switched to syslog because of permission troubles:
protocol lda {
...
# Log to syslog log_path = info_log_path = syslog_facility = mail }
The logs would tell if sieve is used at all. So it is quite important.
Second: Try to delete the corresponding .dovecot.sievec file and see if it is re-created. Do you use user-specific scripts or a system-wide script? If latter, try an user script; it could be a permission problem as well.
Bye,
-- Steffen Kaiser
On 12.03.2009 11:15 Thomas Carstensen wrote:
no .dovecot.sievec is created anywhere :-(
i put the sieve-script named .dovecot.sieve in into this folder:
/usr/local/mail/domain.toplevel/username/Maildir/ and to as a sym-link into /usr/local/mail/domain.toplevel/username
maillog says nothing at all about imap/sieve:
Mar 12 11:10:45 mail spamd[2594]: spamd: connection from localhost [127.0.0.1] at port 50034 Mar 12 11:10:45 mail spamd[2594]: spamd: setuid to vexim succeeded Mar 12 11:10:45 mail spamd[2594]: spamd: checking message 49B8DF71.6090603@exitec.de for vexim:90 Mar 12 11:10:45 mail spamd[2594]: spamd: clean message (0.0/5.0) for vexim:90 in 0.3 seconds, 1087 bytes. Mar 12 11:10:45 mail spamd[2594]: spamd: result: . 0 - scantime=0.3,size=1087,user=vexim,uid=90,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=50034,mid=49B8DF71.6090603@exitec.de,autolearn=ham
Mar 12 11:10:45 mail spamd[2507]: prefork: child states: II
Add mail_debug = yes to your protocol lda {} section and try again.
Regards, Pascal
The trapper recommends today: fabaceae.0907111@localdomain.org
participants (3)
-
Pascal Volk
-
Steffen Kaiser
-
Thomas Carstensen