[Dovecot] vacation problem with sieve and sogo

Pablo Luchetti pllis at educ.ar
Thu May 12 00:07:33 EEST 2011


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 at educ.ar>|from=pllis at 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 at educ.ar>|from=pllis at 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 at educ.ar>|from=pllis at 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 at educ.ar>|from=pllis at 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.
>



More information about the dovecot mailing list