[Dovecot] Cannot get cmusieve to work
Hi, # I messed with the identities in my MUA and sent the email with a non registered address, sorry for the incinvenience ## I'm not able to make cmusieve to work to filter emails. Below is my configuration. I'm using a .dovecot-sieve example from the wiki: require "fileinto"; if exists "X-Spam-Flag" { fileinto ".Junk/"; } I've been following (as acurately as I could) the documentation, tuts and examples. I found this in the dovecot list: http://www.dovecot.org/list/dovecot/2007-March/020674.html and I used the CONCAT method but anyway mails don't filter because of two "//". *********LOGS******** Jun 12 14:12:52 yad deliver(dani@exampledomain.org): Loading modules from directory: /usr/lib/dovecot/modules/lda Jun 12 14:12:52 yad deliver(dani@exampledomain.org): Module loaded: /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so Jun 12 14:12:52 yad deliver(dani@exampledomain.org): auth input: dani@exampledomain.org Jun 12 14:12:52 yad deliver(dani@exampledomain.org): auth input: maildir=dani@exampledomain.org/ Jun 12 14:12:52 yad deliver(dani@exampledomain.org): auth input: uid=110 Jun 12 14:12:52 yad deliver(dani@exampledomain.org): auth input: gid=8 Jun 12 14:12:52 yad deliver(dani@exampledomain.org): auth input: home=/home/vmail/exampledomain.org/dani@exampledomain.org/ Jun 12 14:12:52 yad deliver(dani@exampledomain.org): maildir: data=/home/vmail/exampledomain.org/dani@exampledomain.org Jun 12 14:12:52 yad deliver(dani@exampledomain.org): maildir: root=/home/vmail/exampledomain.org/dani@exampledomain.org, index=/home/vmail/exampledomain.org/dani@exampledomain.org, control=, inbox= Jun 12 14:12:52 yad deliver(dani@exampledomain.org): cmusieve: Using sieve ****path: /home/vmail/exampledomain.org/dani@exampledomain.org//.dovecot.sieve*** Jun 12 14:12:52 yad deliver(dani@exampledomain.org): msgid=<20070612110825.F38F61054E8@sc8-sf-spam1.sourceforge.net>: saved mail to INBOX I've been looking into the problem and I must have forget something obvious, but I cannot make it work. does anyone can point me to the problem? thanks in advance. Dani CONFIGS ************** dovecot --version 1.0.0 (debian) ************** ******************** # /etc/dovecot/dovecot.conf protocol lda { postmaster_address = postmaster@exampledomain.org mail_plugin_dir = /usr/lib/dovecot/modules/lda sendmail_path = /usr/lib/sendmail auth_socket_path = /var/run/dovecot/auth-master mail_plugins = cmusieve } *************** dovecot-sql.conf *************driver = mysql connect = dbname=postfix user=postfix password=qwe123dsazxc port=3306 host=localhost default_pass_scheme = CRYPT password_query = SELECT password FROM mailbox WHERE username ='%u' user_query = SELECT maildir, 110 AS uid, 8 AS gid, CONCAT('/home/vmail/%d/', @home := maildir) AS home FROM mailbox WHERE username = '%u
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 12 Jun 2007, Dani wrote:
I'm using a .dovecot-sieve example from the wiki:
require "fileinto"; if exists "X-Spam-Flag" { fileinto ".Junk/"; }
It should be fileinto "Junk";
and I used the CONCAT method but anyway mails don't filter because of two "//". sieve ****path: /home/vmail/exampledomain.org/dani@exampledomain.org//.dovecot.sieve*** Jun 12 14:12:52 yad deliver(dani@exampledomain.org): msgid=<20070612110825.F38F61054E8@sc8-sf-spam1.sourceforge.net>: saved mail to INBOX
The filesystem does not care about duplicate slashes, you can verify it by checking, if the compiled script exists: /home/vmail/exampledomain.org/dani@exampledomain.org//.dovecot.sievec (see the 'c' at the end of the filename). Also watch out for an *.err file, if present. Bye, - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iQEVAwUBRm6b0y9SORjhbDpvAQJHuAf/Vy6E4eux4BZ9QRDnfBN9m1EvfxdLo743 AEnB0doEed6VD3HG7hA8RXnXH1fjfR9w/WVogcxhg0/8mX5hRvL79Za8mgg+2uP3 5bW4AP75igzdt0UMdwn57N8Olu3g2D6Dksn4TF2ltwGwr9SQSM6fegdLcMz5QXgg wy33prjUqzzHHqA434GyebG7X5p2WOXsJfPQrTkkbqo+10YCxcsPa32NduxvA+94 K6eSYdYnyqr6Y2v2c/klFWB0j0pjGUJWioUMJ/oA3fYsXD26BgL3gxbhCe1R1wR/ MHwkt8HdMBIhQ9YJlrfkHmvAyp1U82KAz24PYisLYJhGPe57mXNfEQ== =hl8D -----END PGP SIGNATURE-----
A Dimarts 12 Juny 2007 15:12, Steffen Kaiser va escriure:
On Tue, 12 Jun 2007, Dani wrote:
I'm using a .dovecot-sieve example from the wiki:
require "fileinto"; if exists "X-Spam-Flag" { fileinto ".Junk/"; }
It should be
fileinto "Junk";
Oh, my God! That is!
-->saved mail to Junk <-- I was used to procmail's way and that was the very first thing I changed in the script, it's been ther all the time.
Besides, the // got me to think the system wasn't able to find the the path.
Bye,
Thanks a lot!
dani
participants (2)
-
Dani
-
Steffen Kaiser