sieve files wont get parsed/compiled using cmusieve

View: New views
7 Messages — Rating Filter:   Alert me  

sieve files wont get parsed/compiled using cmusieve

by Moritz Krinke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Hello,

im trying to get sieve up and running, but apparently my sieve
rules file doesnt get parsed / compiled and i cant see any errors in my
logfile which would point me to the problem.

im using ubuntu 9.10 (and
the dovecot packages from it), dovecot version is 1.1.11.

in the protocol
lda section of the config file i have added:

 mail_plugins = cmusieve

mail_plugin_dir = /usr/lib/dovecot/modules/lda

and in the plugins
section:

 sieve = /var/vmail/%d/%n/.dovecot.sieve
 sieve_dir =
/var/vmail/%d/%n/sieve

root@mail:/# l
/usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.*
-rw-r--r-- 1 root root
247470 2009-10-15 06:38
/usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.a
-rw-r--r-- 1 root root
1038 2009-10-15 06:37
/usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.la
-rw-r--r-- 1 root
root 141384 2009-10-15 06:38
/usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so

in
/var/vmail/%d/%n/ i have a dir "sieve", containing a sieve rule file and a
symlink to it:

ls -la .dovecot.sieve
lrwxrwxrwx 1 root root 21
2009-11-07 17:14 .dovecot.sieve -> sieve/roundcube.sieve

ls -la
sieve/
total 16
drwxrw-rw- 3 vmail mail 4096 2009-11-07 17:02 .
drwxrw----
20 vmail mail 4096 2009-11-07 17:20 ..
-rwxrw-rw- 1 vmail mail 359
2009-11-07 17:02 roundcube.sieve

as i understand the documentation there
should be a ".dovecot.sievec" file after the first mail arrived. But there
isnt. There also is nor err file .

Since the dovecot user is in the group
"mail", deliver should have rw-access to the sieve file/directory.

The
Upload of the sieve rule via dovecots managesieve did work as expected.


Would be great if anyone had an idea what/where to check next...? ;-)


Thanks,

Moritz

Re: sieve files wont get parsed/compiled using cmusieve

by Steffen Kaiser-9 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, 7 Nov 2009, Moritz Krinke wrote:

> Would be great if anyone had an idea what/where to check next...? ;-)

Are you sure your MTA calls  Dovecot deliver at all?

See http://wiki.dovecot.org/Logging

Unset log_path in lda { } section to have all messages of deliver in
syslog and avoid permission problems. Then check the logs, e.g. if sieve
is mentioned there at all, the home dir sieve has determined, etc.pp.

Bye,

- --
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBSvfN8HWSIuGy1ktrAQLdyAgAnwrkcaqz1392gLl8uUx4kxqOLLNVFIn+
FO16zDKI/687JCpoSM4lLb5oOCFWevE7iHYEtoc5IV3zRnR+8V9woK2XHSWmNSDH
2FEy1fkEaEot7sWYBvXtYVyru0zgQI7d3ELWVbyR80B1CJlSiqgl+Y0/0w4yXJ00
B67+NXA8i03lHQeJlcYxKyzVB3Tc24uWAHzMoBV7Ux5634gYb/8LN0ay/nAoyfCA
H0wN0NqRfdiniym3l802pAEx5b/MpjeuA8Vaw4Nl/4gMf3DMe6tb22Dr1LYYrQKa
zHRHWRrOeiAUAHVWVw2dZihweKA+k6eh624fGyZgHzexzv7/x3ET+Q==
=cw9K
-----END PGP SIGNATURE-----

Re: sieve files wont get parsed/compiled using cmusieve

by Moritz Krinke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Steffen,

thanks for your reply.

deliver gets called and is saving the message to INBOX.
Sieve isn't mentioned at all in the log - only the MANAGESIEVE Service
does some logging when editing sieve rules via the MANAGESIEVE Service.

Any more ideas? ;-)

Thanks, Moritz

Nov 10 19:46:33 mail deliver(moritz@...): maildir++:
root=/var/vmail/krinke.biz/moritz, index=, control=,
inbox=/var/vmail/krinke.biz/moritz
Nov 10 19:46:33 mail deliver(moritz@...):
msgid=<d03a5a670911101046y51cf5347m2c79a1642e726a7b@...>: saved
mail to INBOX
Nov 10 19:46:33 mail postfix/pipe[21996]: 4134B29F50:
to=<moritz@...>, relay=dovecot, delay=0.07, delays=0.01/0.02/0/0.04,
dsn=2.0.0, status=sent (delivered via dovecot service)

On Mon, 9 Nov 2009 09:08:16 +0100 (CET), Steffen Kaiser
<skdovecot@...> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Sat, 7 Nov 2009, Moritz Krinke wrote:
>
>> Would be great if anyone had an idea what/where to check next...? ;-)
>
> Are you sure your MTA calls  Dovecot deliver at all?
>
> See http://wiki.dovecot.org/Logging
>
> Unset log_path in lda { } section to have all messages of deliver in
> syslog and avoid permission problems. Then check the logs, e.g. if sieve

> is mentioned there at all, the home dir sieve has determined, etc.pp.
>
> Bye,
>
> - --
> Steffen Kaiser
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iQEVAwUBSvfN8HWSIuGy1ktrAQLdyAgAnwrkcaqz1392gLl8uUx4kxqOLLNVFIn+
> FO16zDKI/687JCpoSM4lLb5oOCFWevE7iHYEtoc5IV3zRnR+8V9woK2XHSWmNSDH
> 2FEy1fkEaEot7sWYBvXtYVyru0zgQI7d3ELWVbyR80B1CJlSiqgl+Y0/0w4yXJ00
> B67+NXA8i03lHQeJlcYxKyzVB3Tc24uWAHzMoBV7Ux5634gYb/8LN0ay/nAoyfCA
> H0wN0NqRfdiniym3l802pAEx5b/MpjeuA8Vaw4Nl/4gMf3DMe6tb22Dr1LYYrQKa
> zHRHWRrOeiAUAHVWVw2dZihweKA+k6eh624fGyZgHzexzv7/x3ET+Q==
> =cw9K
> -----END PGP SIGNATURE-----


Re: sieve files wont get parsed/compiled using cmusieve

by Steffen Kaiser-9 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 10 Nov 2009, Moritz Krinke wrote:

> Any more ideas? ;-)

turn on mail_debug

> Nov 10 19:46:33 mail deliver(moritz@...): maildir++:
> root=/var/vmail/krinke.biz/moritz, index=, control=,
> inbox=/var/vmail/krinke.biz/moritz
> Nov 10 19:46:33 mail deliver(moritz@...):
> msgid=<d03a5a670911101046y51cf5347m2c79a1642e726a7b@...>: saved
> mail to INBOX

You should have some more lines in the log.

Regards,

- --
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBSvp/eXWSIuGy1ktrAQLtrAgAwY7ryyDz/Tw8CM4Wi0hecZGqxG/RSpkO
4/1dUiQZCYH7yx0h2Es31KQ824scH304fe/YHQupuX+MqOn6ndPgFu/qB3+JaIC4
+iFKEwiFnPGBlIuPyrbOycp8/vyKNRiy5qoL2d1LTDLyULESUuO9iaZA9HpjDg1D
fbJyBqpqCIS/sF/eMRwUrVNPQWBaXd/Uenc7PK8sIE9iOCBi0k4SYAV3ZJIzY4ZF
dkKqbARAxdKCptN55T+TO1d1kJqO7rCaThzjZmb9CIheRyBktONiV9EujxgwzI56
hSeqKfP/vZ5kyuwoL8aNhCl2U1VYluSWT9M+ylMEokwlRqC0enzquw==
=ZjDN
-----END PGP SIGNATURE-----

Re: sieve files wont get parsed/compiled using cmusieve

by Timo Sirainen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 2009-11-10 at 19:55 +0100, Moritz Krinke wrote:
> deliver gets called and is saving the message to INBOX.
> Sieve isn't mentioned at all in the log - only the MANAGESIEVE Service

My guess: You don't have protocol lda { mail_plugins=sieve }



signature.asc (204 bytes) Download Attachment

Re: sieve files wont get parsed/compiled using cmusieve

by Moritz Krinke-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

i have mail_debug turned on, and of course i've got a lot more messages in the log, but nothing which mentions sieve or an error.

Timo:
in the protocol lda section i've got mail_plugins = cmusieve so it should be active. please see my original message from the 7th of November.


Here is the complete output in my log concerning dovecot and one message which should have been placed in a subdir of inbox by a sieve rule:


Nov 12 17:31:00 mail dovecot: auth(default): master in: USER#0111#011moritz@...#011service=deliver
Nov 12 17:31:00 mail dovecot: auth-worker(default): sql(moritz@...): SELECT '/var/vmail/krinke.biz/moritz' as home, 'maildir:/var/vmail/krinke.biz/moritz' as mail, 150 AS uid, 8 AS gid FROM mailbox WHERE username = 'moritz@...' AND active = '1'
Nov 12 17:31:00 mail dovecot: auth(default): master out: USER#0111#011moritz@...#011home=/var/vmail/krinke.biz/moritz#011mail=maildir:/var/vmail/krinke.biz/moritz#011uid=150#011gid=8
Nov 12 17:31:00 mail deliver(moritz@...): auth input: home=/var/vmail/krinke.biz/moritz
Nov 12 17:31:00 mail deliver(moritz@...): auth input: mail=maildir:/var/vmail/krinke.biz/moritz
Nov 12 17:31:00 mail deliver(moritz@...): auth input: uid=150
Nov 12 17:31:00 mail deliver(moritz@...): auth input: gid=8
Nov 12 17:31:00 mail deliver(moritz@...): maildir: data=/var/vmail/krinke.biz/moritz
Nov 12 17:31:00 mail deliver(moritz@...): maildir++: root=/var/vmail/krinke.biz/moritz, index=, control=, inbox=/var/vmail/krinke.biz/moritz
Nov 12 17:31:00 mail deliver(moritz@...): msgid=<2F91B0BB-6356-44FB-9518-23C65B9BBCBF@...>: saved mail to INBOX
Nov 12 17:31:00 mail postfix/pipe[14791]: BD93D29F6A: to=<moritz@...>, relay=dovecot, delay=0.06, delays=0.02/0.02/0/0.02, dsn=2.0.0, status=sent (delivered via dovecot service)
Nov 12 17:31:00 mail postfix/qmgr[14053]: BD93D29F6A: removed




Thanks,
Moritz

Am 11.11.2009 um 10:10 schrieb Steffen Kaiser:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Tue, 10 Nov 2009, Moritz Krinke wrote:
>
>> Any more ideas? ;-)
>
> turn on mail_debug
>
>> Nov 10 19:46:33 mail deliver(moritz@...): maildir++:
>> root=/var/vmail/krinke.biz/moritz, index=, control=,
>> inbox=/var/vmail/krinke.biz/moritz
>> Nov 10 19:46:33 mail deliver(moritz@...):
>> msgid=<d03a5a670911101046y51cf5347m2c79a1642e726a7b@...>: saved
>> mail to INBOX
>
> You should have some more lines in the log.
>
> Regards,
>
> - -- Steffen Kaiser
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iQEVAwUBSvp/eXWSIuGy1ktrAQLtrAgAwY7ryyDz/Tw8CM4Wi0hecZGqxG/RSpkO
> 4/1dUiQZCYH7yx0h2Es31KQ824scH304fe/YHQupuX+MqOn6ndPgFu/qB3+JaIC4
> +iFKEwiFnPGBlIuPyrbOycp8/vyKNRiy5qoL2d1LTDLyULESUuO9iaZA9HpjDg1D
> fbJyBqpqCIS/sF/eMRwUrVNPQWBaXd/Uenc7PK8sIE9iOCBi0k4SYAV3ZJIzY4ZF
> dkKqbARAxdKCptN55T+TO1d1kJqO7rCaThzjZmb9CIheRyBktONiV9EujxgwzI56
> hSeqKfP/vZ5kyuwoL8aNhCl2U1VYluSWT9M+ylMEokwlRqC0enzquw==
> =ZjDN
> -----END PGP SIGNATURE-----


Re: sieve files wont get parsed/compiled using cmusieve

by Timo Sirainen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 2009-11-12 at 17:49 +0100, Moritz Krinke wrote:
> Timo:
> in the protocol lda section i've got mail_plugins = cmusieve so it should be active. please see my original message from the 7th of November.
>
> Here is the complete output in my log concerning dovecot and one message which should have been placed in a subdir of inbox by a sieve rule:

Your log doesn't show this message:

Loading modules from directory:

That means deliver thinks mail_plugins setting is empty.



signature.asc (204 bytes) Download Attachment