[Dovecot] cmusieve don't works for me...
Ok, sorry to bother again, but i am going crazy to make work cmusieve with dovecot. I intend to use it for the vacation system, but...seems the system ignores the .dovecot.sieve file into the user dir... I am doing something wrong, but i don't know what...
Here is my configs:
I use OpenSuse 11.0.
# 1.1.7: /etc/dovecot/dovecot.conf # OS: Linux 2.6.25.20-0.1-pae i686 openSUSE 11.0 (i586) ext3 log_path: /var/log/dovecot-err.log info_log_path: /var/log/dovecot-inf.log protocols: imap imaps pop3 pop3s managesieve disable_plaintext_auth: no 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 login_executable(managesieve): /usr/lib/dovecot/managesieve-login first_valid_uid: 51 last_valid_uid: 51 first_valid_gid: 51 last_valid_gid: 51 mail_location: maildir:/var/mail/virtual/%d/%u mail_debug: yes mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_executable(managesieve): /usr/lib/dovecot/managesieve mail_plugins(default): quota imap_quota mail_plugins(imap): quota imap_quota mail_plugins(pop3): quota mail_plugins(managesieve): 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 mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve imap_client_workarounds(default): outlook-idle imap_client_workarounds(imap): outlook-idle imap_client_workarounds(pop3): imap_client_workarounds(managesieve): pop3_uidl_format(default): %08Xu%08Xv pop3_uidl_format(imap): %08Xu%08Xv pop3_uidl_format(pop3): %Mf pop3_uidl_format(managesieve): %08Xu%08Xv sieve_storage(default): sieve_storage(imap): sieve_storage(pop3): sieve_storage(managesieve): ~/sieve sieve(default): sieve(imap): sieve(pop3): sieve(managesieve): /var/mail/virtual/%d/%u/.dovecot.sieve auth default: passdb: driver: sql args: /etc/dovecot/dovecot-mysql.conf userdb: driver: passwd userdb: driver: sql args: /etc/dovecot/dovecot-mysql.conf socket: type: listen master: path: /var/run/dovecot/auth-master mode: 384 plugin: quota: maildir quota: maildir:user quota quota_warning: storage=80%% /usr/bin/quota_warning.sh 80 quota_warning2: storage=90%% /usr/bin/quota_warning.sh 90 quota_warning3: storage=99%% /usr/bin/quota_warning.sh 90
I have also created a .dovecot.sieve file into the user dir like this:
ls -la .dovecot.sieve -rw-r--r-- 1 postfix postfix 149 Jan 24 07:59 .dovecot.sieve
cat .dovecot.sieve require "vacation"; vacation :days 23 :addresses ["test@domain.pri"] "I'm away until October 19." ;
If i try to send a mail, in dovecot-inf.log i read this:
deliver(test@domain.pri): Jan 24 09:00:32 Info: Loading modules from directory: /usr/lib/dovecot/modules/lda deliver(test@domain.pri): Jan 24 09:00:32 Info: Module loaded: /usr/lib/dovecot/modules/lda/lib10_quota_plugin.so deliver(test@domain.pri): Jan 24 09:00:32 Info: Module loaded: /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so deliver(test@domain.pri): Jan 24 09:00:32 Info: auth input: test@domain.pri deliver(test@domain.pri): Jan 24 09:00:32 Info: auth input: maildir=test@domain.pri/ deliver(test@domain.pri): Jan 24 09:00:32 Info: auth input: uid=51 deliver(test@domain.pri): Jan 24 09:00:32 Info: auth input: gid=51 deliver(test@domain.pri): Jan 24 09:00:32 Info: auth input: quota_rule=*:bytes=0 deliver(test@domain.pri): Jan 24 09:00:32 Info: Quota root: name=user quota backend=maildir args= deliver(test@domain.pri): Jan 24 09:00:32 Info: Quota rule: root=user quota mailbox=* bytes=0 (0%) messages=0 (0%) deliver(test@domain.pri): Jan 24 09:00:32 Info: Quota warning: bytes=0 (80%) messages=0 (0%) command=/usr/bin/quota_warning.sh 80 deliver(test@domain.pri): Jan 24 09:00:32 Info: Quota warning: bytes=0 (90%) messages=0 (0%) command=/usr/bin/quota_warning.sh 90 deliver(test@domain.pri): Jan 24 09:00:32 Info: Quota warning: bytes=0 (99%) messages=0 (0%) command=/usr/bin/quota_warning.sh 90 deliver(test@domain.pri): Jan 24 09:00:32 Info: maildir: data=/var/mail/virtual/domain.pri/test@domain.pri deliver(test@domain.pri): Jan 24 09:00:32 Info: maildir++: root=/var/mail/virtual/domain.pri/test@domain.pri, index=, control=, inbox=/var/mail/virtual/domain.pri/test@domain.pri deliver(test@domain.pri): Jan 24 09:00:32 Info: msgid=<49789612.7060203@atpss.net>: saved mail to INBOX
As u can see, the cmusieve module is loaded, but if i go to the mail dir of the user..
ls -la total 80 drwx------ 5 postfix postfix 4096 Jan 24 09:01 . drwx------ 3 postfix postfix 4096 Jan 14 23:07 .. -rw-r--r-- 1 postfix postfix 149 Jan 24 07:59 .dovecot.sieve drwx------ 2 postfix postfix 4096 Jan 23 06:59 cur -rw------- 1 postfix postfix 1727 Jan 24 09:00 dovecot-uidlist -rw------- 1 postfix postfix 8 Jan 14 23:07 dovecot-uidvalidity -rw------- 1 postfix postfix 0 Jan 14 23:07 dovecot-uidvalidity.496e622e -rw------- 1 postfix postfix 472 Jan 24 08:41 dovecot.index -rw------- 1 postfix postfix 28672 Jan 24 09:00 dovecot.index.cache -rw------- 1 postfix postfix 9544 Jan 24 09:00 dovecot.index.log -rw------- 1 postfix postfix 242 Jan 24 09:00 maildirsize drwx------ 2 postfix postfix 4096 Jan 24 09:00 new drwx------ 2 postfix postfix 4096 Jan 24 09:00 tmp
not any compiled file of sieve was created, and naturally no response was sended.
I have tryied some configurations, but with no results.
What can be my error?
Thank u for your support,
Claudio Prono.
--
Claudio Prono Systems Development @ PSS Srl, Divisione Implementazione Sistemi Via San Bernardino, 17 - 10137 Torino (TO) - IT Tel +39-011.32.72.100 Fax +39-011.32.46.497 PGP Fingerprint: 75C2 4049 E23D 2FBF A65F 40DB EA5C 11AC C2B0 3647 Disclaimer: http://atpss.net/disclaimer
On 22.01.2009 16:55 Claudio Prono wrote:
Ok, sorry to bother again, but i am going crazy to make work cmusieve with dovecot. I intend to use it for the vacation system, but...seems the system ignores the .dovecot.sieve file into the user dir... I am doing something wrong, but i don't know what... ...
Put the .dovecot.sieve script in the (virtual) users home directory (http://wiki.dovecot.org/UserDatabase). If your setup doesn't allow you to specify a home directory you have to specify the sieve location in the plugin section (http://wiki.dovecot.org/LDA/Sieve#head-3940e226e2a575b992a4303c52b9253ae5136...)
If you want to get more details (e.g. what happens on delivery) add "maild_debug = yes" to your lda {} section in dovecot.conf
Regards, Pascal
-- Ubuntu is an ancient African word meaning “I can’t install Debian.” -- unknown
Pascal Volk ha scritto:
On 22.01.2009 16:55 Claudio Prono wrote:
Ok, sorry to bother again, but i am going crazy to make work cmusieve with dovecot. I intend to use it for the vacation system, but...seems the system ignores the .dovecot.sieve file into the user dir... I am doing something wrong, but i don't know what... ...
Put the .dovecot.sieve script in the (virtual) users home directory (http://wiki.dovecot.org/UserDatabase). If your setup doesn't allow you to specify a home directory you have to specify the sieve location in the plugin section (http://wiki.dovecot.org/LDA/Sieve#head-3940e226e2a575b992a4303c52b9253ae5136...)
If you want to get more details (e.g. what happens on delivery) add "maild_debug = yes" to your lda {} section in dovecot.conf
Regards, Pascal
Thank u to all, now it works perfectly.The problem was is missing the sieve = config into the plugin section of dovecot.conf.
Thank u! :)
Claudio.
--
Claudio Prono Systems Development @ PSS Srl, Divisione Implementazione Sistemi Via San Bernardino, 17 - 10137 Torino (TO) - IT Tel +39-011.32.72.100 Fax +39-011.32.46.497 PGP Fingerprint: 75C2 4049 E23D 2FBF A65F 40DB EA5C 11AC C2B0 3647 Disclaimer: http://atpss.net/disclaimer
Claudio Prono schreef:
Ok, sorry to bother again, but i am going crazy to make work cmusieve with dovecot. I intend to use it for the vacation system, but...seems the system ignores the .dovecot.sieve file into the user dir... I am doing something wrong, but i don't know what...
Here is my configs:
sieve(managesieve): /var/mail/virtual/%d/%u/.dovecot.sieve
plugin: quota: maildir quota: maildir:user quota quota_warning: storage=80%% /usr/bin/quota_warning.sh 80 quota_warning2: storage=90%% /usr/bin/quota_warning.sh 90 quota_warning3: storage=99%% /usr/bin/quota_warning.sh 90
What can be my error?
You need to add a sieve= setting to the plugin {...} section as well for Dovecot v1.1. So copy it to there from the protocol managesieve {...} section. This duplicate configuration is removed for v1.2. With your current configuration it is looking for the Sieve script in the user's home directory (~/.dovecot.sieve) if he even has one.
Enable mail_debug to see what it is doing.
Regards,
-- Stephan Bosch stephan@rename-it.nl
On 22.01.2009 16:55 Claudio Prono wrote:
... plugin: ... quota_warning: storage=80%% /usr/bin/quota_warning.sh 80 quota_warning2: storage=90%% /usr/bin/quota_warning.sh 90 quota_warning3: storage=99%% /usr/bin/quota_warning.sh 90 ^^ ^^
Please check also the order of your quota warnings. See http://wiki.dovecot.org/Quota/1.1#head-03d8c4f6fb28e2e2f1cb63ec623810b45bec1... for more details.
Regards, Pascal
-- Ubuntu is an ancient African word meaning “I can’t install Debian.” -- unknown
participants (3)
-
Claudio Prono
-
Pascal Volk
-
Stephan Bosch