[Dovecot] vacation problem with sieve and sogo
Hi, I have a problem with dovecot's sieve and SOGo ( http://www.sogo.nu/ )
I have installed last version of sogo ( 1.3.6) in one virtual machine with ubuntu, lucid. In another virtualmachine with ubuntu jaunty is running dovecot ( 1:1.1.11-0ubuntu4.1 )
When try to activate vacation function, after the "PUTSCRIPT "sogo" command, the manage-sieve answer:
NO "Script name 'sogo' is reserved for internal use."
And fails.
But I found, telneting the mail server on port 2000 that if I change script name, all works fine:
SETACTIVE "" OK "No scripts currently active." PUTSCRIPT "prueba" {536+} require ["vacation"]; if allof ( not exists ["list-help", "list-unsubscribe", "list-subscribe", "list-owner", "list-post", "list-archive", "list-id", "Mailing-List"], not header :comparator "i;ascii-casemap" :is "Precedence" ["list", "bulk", "junk"], not header :comparator "i;ascii-casemap" :matches "To" "Multiple recipients of*" ) {vacation :days 1 :addresses ["pluchetti@example.org", "pablo.luchetti@example.org"] text: hoy es 27 de abril de 2011, y estoy probando el nuevo sogo. 10:40 . ; } redirect "pllis@educ.ar"; keep;
OK "Putscript completed." SETACTIVE "prueba" OK "Setactive completed." logout OK "Logout completed." Connection closed by foreign host.
So, the question is: Why does this happen? How can I fix it ? Any ideas?
Here are dovecot's version and config:
# dovecot --version 1.1.11
# dovecot -n # 1.1.11: /etc/dovecot/dovecot.conf # OS: Linux 2.6.28-18-server i686 Ubuntu 9.04 log_path: /var/log/mail/dovecot-msa.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3 pop3s ssl_cert_file: /etc/ssl/local/WILD.jil_01+CHAIN.crt ssl_key_file: /etc/ssl/private/WILD.jil_01.key 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_greeting: JIL mail server ready. first_valid_uid: 106 last_valid_uid: 106 first_valid_gid: 112 last_valid_gid: 112 mail_privileged_group: mail mail_uid: vmail mail_gid: vmail mail_location: maildir:~ 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 auth default: mechanisms: plain login user: vmailauth passdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf userdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf socket: type: listen client: path: /var/spool/postfix/private/auth-client mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail group: vmail plugin: sieve: ~/sieve/s0g0.sieve
Thanks!!
Pablo.
On 5/6/2011 10:14 PM, Pablo Luchetti wrote:
Hi, I have a problem with dovecot's sieve and SOGo ( http://www.sogo.nu/ )
I have installed last version of sogo ( 1.3.6) in one virtual machine with ubuntu, lucid. In another virtualmachine with ubuntu jaunty is running dovecot ( 1:1.1.11-0ubuntu4.1 )
When try to activate vacation function, after the "PUTSCRIPT "sogo" command, the manage-sieve answer:
NO "Script name 'sogo' is reserved for internal use."
plugin: sieve: ~/sieve/s0g0.sieve
The default for sieve_dir is '~/sieve/', so now you are putting the active script symlink (as configured with sieve=) in the sieve storage. This is never a good idea, because that symlink may be confused with a normal script. To prevent issues, the ManageSieve daemon prevents you from using the symlink as a scriptname.
Why did you configure it like that? If you remove the above line, or change it to something sensible, like the default value sieve=~/.dovecot.sieve, it will work normally.
Regards,
Stephan.
Thanks Stephan, but doesn't work. I try both
plugin: sieve: ~/sieve/
and
plugin: sieve: ~/.dovecot.sieve
But still have message:
NO "Script name 'sogo' is reserved for internal use."
Regards,
Stephan Bosch wrote:
On 5/6/2011 10:14 PM, Pablo Luchetti wrote:
Hi, I have a problem with dovecot's sieve and SOGo ( http://www.sogo.nu/ )
I have installed last version of sogo ( 1.3.6) in one virtual machine with ubuntu, lucid. In another virtualmachine with ubuntu jaunty is running dovecot ( 1:1.1.11-0ubuntu4.1 )
When try to activate vacation function, after the "PUTSCRIPT "sogo" command, the manage-sieve answer:
NO "Script name 'sogo' is reserved for internal use."
plugin: sieve: ~/sieve/s0g0.sieve
The default for sieve_dir is '~/sieve/', so now you are putting the active script symlink (as configured with sieve=) in the sieve storage. This is never a good idea, because that symlink may be confused with a normal script. To prevent issues, the ManageSieve daemon prevents you from using the symlink as a scriptname.
Why did you configure it like that? If you remove the above line, or change it to something sensible, like the default value sieve=~/.dovecot.sieve, it will work normally.
Regards,
Stephan.
Thanks Stephan, but doesn't work. I try both
plugin: sieve: ~/sieve/
and
plugin: sieve: ~/.dovecot.sieve
But still have message:
NO "Script name 'sogo' is reserved for internal use."
Regards,
Stephan Bosch wrote:
On 5/6/2011 10:14 PM, Pablo Luchetti wrote:
Hi, I have a problem with dovecot's sieve and SOGo ( http://www.sogo.nu/ )
I have installed last version of sogo ( 1.3.6) in one virtual machine with ubuntu, lucid. In another virtualmachine with ubuntu jaunty is running dovecot ( 1:1.1.11-0ubuntu4.1 )
When try to activate vacation function, after the "PUTSCRIPT "sogo" command, the manage-sieve answer:
NO "Script name 'sogo' is reserved for internal use."
plugin: sieve: ~/sieve/s0g0.sieve
The default for sieve_dir is '~/sieve/', so now you are putting the active script symlink (as configured with sieve=) in the sieve storage. This is never a good idea, because that symlink may be confused with a normal script. To prevent issues, the ManageSieve daemon prevents you from using the symlink as a scriptname.
Why did you configure it like that? If you remove the above line, or change it to something sensible, like the default value sieve=~/.dovecot.sieve, it will work normally.
Regards,
Stephan.
Hello Stephan: Here are 4 distinct tests with all data requested. In all of them, dovecot answer is: NO "Script name 'sogo' is reserved for internal use." I don't understand why. Remember that I captured the traffic with tcpflow, and then, when telneting to port 2000, if I change PUTSCRIPT "sogo" {448+} with PUTSCRIPT "prueba" {448+} I receive a successful answer. I think the word "sogo" is anywhere in the config, but I don't find it. Here are the tests:
Test 1
With plugin { sieve = ~/sieve/ } in dovecot.conf shows in dovecot-lda.log when arrive mail:
deliver(pluchetti): 2011-05-11 19:29:49 Info: Loading modules from directory: /usr/lib/dovecot/modules/lda deliver(pluchetti): 2011-05-11 19:29:49 Info: Module loaded: /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so deliver(pluchetti): 2011-05-11 19:29:49 Info: auth input: home=/data/vmail/jil/pluchetti deliver(pluchetti): 2011-05-11 19:29:49 Info: maildir: data=~ deliver(pluchetti): 2011-05-11 19:29:49 Info: maildir++: root=/data/vmail/jil/pluchetti, index=, control=, inbox=/data/vmail/jil/pluchetti deliver(pluchetti): 2011-05-11 19:29:49 Info: cmusieve: Using sieve path: /data/vmail/jil/pluchetti/sieve/ deliver(pluchetti): 2011-05-11 19:29:49 Error: /data/vmail/jil/pluchetti/sieve/ should be a file, not a directory deliver(pluchetti): 2011-05-11 19:29:49 Info: msgid=<4DCAE395.9090600@educ.ar>|from=pllis@educ.ar|subject=prueba|saved mail to INBOX
And in dovecot-msa-notls.log when trying to set vacation:
dovecot: 2011-05-11 17:24:43 Info: managesieve-login: Login: user=<pluchetti>, method=PLAIN, rip=10.3.14.31, lip=10.3.14.18 dovecot: 2011-05-11 17:24:43 Info: MANAGESIEVE(pluchetti): Connection closed bytes=510/136
# dovecot -n # 1.1.11: /etc/dovecot/dovecot.conf # OS: Linux 2.6.28-18-server i686 Ubuntu 9.04 log_path: /var/log/mail/dovecot-msa.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3 pop3s ssl_cert_file: /etc/ssl/local/WILD.jil_01+CHAIN.crt ssl_key_file: /etc/ssl/private/WILD.jil_01.key 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_greeting: JIL mail server ready. first_valid_uid: 106 last_valid_uid: 106 first_valid_gid: 112 last_valid_gid: 112 mail_privileged_group: mail mail_uid: vmail mail_gid: vmail mail_location: maildir:~ 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_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 auth default: mechanisms: plain login user: vmailauth passdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf userdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf socket: type: listen client: path: /var/spool/postfix/private/auth-client mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail group: vmail plugin: sieve: ~/sieve/
Test 2
With plugin { sieve = ~/.dovecot.sieve } in dovecot.conf shows in dovecot-lda.log when arrive mail:
deliver(pluchetti): 2011-05-11 19:41:12 Info: Loading modules from directory: /usr/lib/dovecot/modules/lda deliver(pluchetti): 2011-05-11 19:41:12 Info: Module loaded: /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so deliver(pluchetti): 2011-05-11 19:41:12 Info: auth input: home=/data/vmail/jil/pluchetti deliver(pluchetti): 2011-05-11 19:41:12 Info: maildir: data=~ deliver(pluchetti): 2011-05-11 19:41:12 Info: maildir++: root=/data/vmail/jil/pluchetti, index=, control=, inbox=/data/vmail/jil/pluchetti deliver(pluchetti): 2011-05-11 19:41:12 Info: cmusieve: /data/vmail/jil/pluchetti/.dovecot.sieve doesn't exist deliver(pluchetti): 2011-05-11 19:41:12 Info: msgid=<4DCAE652.2020608@educ.ar>|from=pllis@educ.ar|subject=Re: prueba|saved mail to INBOX
And in dovecot-msa-notls.log when trying to set vacation:
dovecot: 2011-05-11 17:21:45 Info: managesieve-login: Login: user=<pluchetti>, method=PLAIN, rip=10.3.14.31, lip=10.3.14.18 dovecot: 2011-05-11 17:21:45 Info: MANAGESIEVE(pluchetti): Connection closed bytes=510/136
# dovecot -n # 1.1.11: /etc/dovecot/dovecot.conf # OS: Linux 2.6.28-18-server i686 Ubuntu 9.04 log_path: /var/log/mail/dovecot-msa.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3 pop3s ssl_cert_file: /etc/ssl/local/WILD.jil_01+CHAIN.crt ssl_key_file: /etc/ssl/private/WILD.jil_01.key 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_greeting: JIL mail server ready. first_valid_uid: 106 last_valid_uid: 106 first_valid_gid: 112 last_valid_gid: 112 mail_privileged_group: mail mail_uid: vmail mail_gid: vmail mail_location: maildir:~ 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_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 auth default: mechanisms: plain login user: vmailauth passdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf userdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf socket: type: listen client: path: /var/spool/postfix/private/auth-client mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail group: vmail plugin: sieve: ~/.dovecot.sieve
Test 3
With plugin {
} in dovecot.conf shows in dovecot-lda.log when arrive mail:
deliver(pluchetti): 2011-05-11 19:53:55 Info: Loading modules from directory: /usr/lib/dovecot/modules/lda deliver(pluchetti): 2011-05-11 19:53:55 Info: Module loaded: /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so deliver(pluchetti): 2011-05-11 19:53:55 Info: auth input: home=/data/vmail/jil/pluchetti deliver(pluchetti): 2011-05-11 19:53:55 Info: maildir: data=~ deliver(pluchetti): 2011-05-11 19:53:55 Info: maildir++: root=/data/vmail/jil/pluchetti, index=, control=, inbox=/data/vmail/jil/pluchetti deliver(pluchetti): 2011-05-11 19:53:55 Info: cmusieve: /data/vmail/jil/pluchetti/.dovecot.sieve doesn't exist deliver(pluchetti): 2011-05-11 19:53:55 Info: msgid=<4DCAE94D.60003@educ.ar>|from=pllis@educ.ar|subject=Re: prueba|saved mail to INBOX
And in dovecot-msa-notls.log when trying to set vacation:
dovecot: 2011-05-11 17:14:22 Info: managesieve-login: Login: user=<pluchetti>, method=PLAIN, rip=10.3.14.31, lip=10.3.14.18 dovecot: 2011-05-11 17:14:22 Info: MANAGESIEVE(pluchetti): Connection closed bytes=510/136
# dovecot -n # 1.1.11: /etc/dovecot/dovecot.conf # OS: Linux 2.6.28-18-server i686 Ubuntu 9.04 log_path: /var/log/mail/dovecot-msa.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3 pop3s ssl_cert_file: /etc/ssl/local/WILD.jil_01+CHAIN.crt ssl_key_file: /etc/ssl/private/WILD.jil_01.key 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_greeting: JIL mail server ready. first_valid_uid: 106 last_valid_uid: 106 first_valid_gid: 112 last_valid_gid: 112 mail_privileged_group: mail mail_uid: vmail mail_gid: vmail mail_location: maildir:~ 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_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 auth default: mechanisms: plain login user: vmailauth passdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf userdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf socket: type: listen client: path: /var/spool/postfix/private/auth-client mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail group: vmail
Test 4
With plugin { sieve = ~/sieve/sogo.sieve } in dovecot.conf shows in dovecot-lda.log when arrive mail:
deliver(pluchetti): 2011-05-11 19:59:48 Info: Loading modules from directory: /usr/lib/dovecot/modules/lda deliver(pluchetti): 2011-05-11 19:59:48 Info: Module loaded: /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so deliver(pluchetti): 2011-05-11 19:59:48 Info: auth input: home=/data/vmail/jil/pluchetti deliver(pluchetti): 2011-05-11 19:59:48 Info: maildir: data=~ deliver(pluchetti): 2011-05-11 19:59:48 Info: maildir++: root=/data/vmail/jil/pluchetti, index=, control=, inbox=/data/vmail/jil/pluchetti deliver(pluchetti): 2011-05-11 19:59:48 Info: cmusieve: /data/vmail/jil/pluchetti/sieve/sogo.sieve doesn't exist deliver(pluchetti): 2011-05-11 19:59:48 Info: msgid=<4DCAEAAE.9090601@educ.ar>|from=pllis@educ.ar|subject=Re: prueba|saved mail to INBOX
And in dovecot-msa-notls.log when trying to set vacation:
dovecot: 2011-05-11 17:08:16 Info: managesieve-login: Login: user=<pluchetti>, method=PLAIN, rip=10.3.14.31, lip=10.3.14.18 dovecot: 2011-05-11 17:08:16 Info: MANAGESIEVE(pluchetti): Connection closed bytes=510/136
# dovecot -n # 1.1.11: /etc/dovecot/dovecot.conf # OS: Linux 2.6.28-18-server i686 Ubuntu 9.04 log_path: /var/log/mail/dovecot-msa.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3 pop3s ssl_cert_file: /etc/ssl/local/WILD.jil_01+CHAIN.crt ssl_key_file: /etc/ssl/private/WILD.jil_01.key 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_greeting: JIL mail server ready. first_valid_uid: 106 last_valid_uid: 106 first_valid_gid: 112 last_valid_gid: 112 mail_privileged_group: mail mail_uid: vmail mail_gid: vmail mail_location: maildir:~ 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_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 auth default: mechanisms: plain login user: vmailauth passdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf userdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf socket: type: listen client: path: /var/spool/postfix/private/auth-client mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail group: vmail plugin: sieve: ~/sieve/sogo.sieve
Here is a result of a "find ." of /data/vmail/jil/pluchetti directory:
. ./new ./new/1305143988.M679460P7888.mail0.i.example.org,W=1386 ./dovecot.index.cache ./dovecot-uidvalidity.4dc9f475 ./dovecot.index ./dovecot-uidlist ./cur ./cur/1305081118.M221149P31051.mail0.i.example.org,W=1099:2,S ./cur/1305143635.M619342P7707.mail0.i.example.org,W=1381:2,S ./cur/1305142872.M409688P7312.mail0.i.example.org,W=1385:2,S ./cur/1305142189.M834057P6974.mail0.i.example.org,W=1087:2,RS ./dovecot.index.log ./sieve ./sieve/tmp ./tmp ./dovecot-uidvalidity ./.Sent ./.Sent/new ./.Sent/dovecot.index.cache ./.Sent/maildirfolder ./.Sent/dovecot-uidlist ./.Sent/cur ./.Sent/cur/1305142324.M371529P7045.mail0.i.example.org,W=533:2,S ./.Sent/dovecot.index.log ./.Sent/tmp
Thank you for your effort and patience! Regards, Pablo.
Stephan Bosch wrote:
Op 8-5-2011 1:47, Pablo Luchetti schreef:
Thanks Stephan, but doesn't work. I try both
plugin: sieve: ~/sieve/
and
plugin: sieve: ~/.dovecot.sieve
Could you enable mail_debug and show me any relevant log lines?
Regards,
Stephan.
Hi Stephan, you were right. The problem was that there is 2 instances of dovecot running, and while I configured one of them, the other is listening in port 2000. Thanks again and my apologies for the inconvenience. Pablo
Stephan Bosch wrote:
Op 8-5-2011 1:47, Pablo Luchetti schreef:
Thanks Stephan, but doesn't work. I try both
plugin: sieve: ~/sieve/
and
plugin: sieve: ~/.dovecot.sieve
Could you enable mail_debug and show me any relevant log lines?
Regards,
Stephan.
participants (3)
-
Pablo Luchetti
-
Pablo Luchetti
-
Stephan Bosch