[Dovecot] Dovecot auto vacation with sieve doesn't work

CJ Keist cjay at engr2.colostate.edu
Wed Aug 6 20:54:07 EEST 2008


Guys, I'm running out of hair to pull out ;).

Can anyone out there say that this does work??  To me this is looking
like a bug and I'm not sure whether it's the sieve plugin or the dovecot
deliver program.  I have also had no luck the the "reject" sending any
reply back to the sender.

My setup:
OS: Solaris 10 sparc platform
postfix: 2.5.2
dovecot: 1.1.2
sieve plugin: 1.1.5

I'm going back forth between procmail and sieve and having no luck. 
procmail will send the reply to the sender but doesn't deliver the
message to the recipient.  Sieve will deliver the message to the
recipient but doesn't send the reply to the sender.  Now if I can just
combine the two, I'll be in business.

Postfix mail command:

mailbox_command = /userM/mail-services/dovecot/libexec/dovecot/deliver
-d $USER*
*
Dovecot -n (I've made some changes from my previous posting namely with
the master_auth settings)

# 1.1.2: /userM/mail-services/dovecot/etc/dovecot.conf
Warning: fd limit 256 is lower than what Dovecot can use under full load
(more than 3072). Either grow the limit or change
login_max_processes_count and max_mail_processes settings
base_dir: /userM/mail-services/dovecot/var/run/dovecot/
protocols: imap imaps pop3 pop3s
ssl_cert_file: /userM/mail-services/dovecot/etc/ssl/dovecot.pem
ssl_key_file: /userM/mail-services/dovecot/etc/ssl/privkey.pem
ssl_parameters_regenerate: 0
ssl_cipher_list: MEDIUM:!LOW
disable_plaintext_auth: no
login_dir: /userM/mail-services/dovecot/var/run/dovecot/login
login_executable(default):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(imap):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(pop3):
/userM/mail-services/dovecot/libexec/dovecot/pop3-login
login_greeting: Cyrus ready.
login_max_processes_count: 1024
max_mail_processes: 1024
mail_location: mbox:~/:INBOX=/userM/mail/%u
mail_debug: yes
mmap_disable: yes
mail_nfs_index: yes
mail_executable(default): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(imap): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(pop3): /userM/mail-services/dovecot/libexec/dovecot/pop3
mail_plugin_dir(default): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(imap): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(pop3): /userM/mail-services/dovecot/lib/dovecot/pop3
auth default:
  mechanisms: plain login
  verbose: yes
  debug: yes
  passdb:
    driver: pam
  passdb:
    driver: passwd
    args: blocking=yes
  userdb:
    driver: passwd
    args: blocking=yes
  socket:
    type: listen
    client:
      path: /userM/mail-services/postfix/var/private/auth
      mode: 432
      user: postfix
      group: postfix
    master:
      path: /userM/mail-services/dovecot/var/run/dovecot/auth-master
      mode: 384
      user: postfix
      group: postfix

My .dovecot.sieve file:

require ["vacation"];
   if header :matches "subject" "*" {
       vacation
       :days 30
       :addresses "cj.keist at colostate.edu"
       :subject "Automatic response to: ${1}"
                "I'm away -- send mail to foo in my absence";
   }

I made some modifications to the vacation reply base on the following URL:

http://ietfreport.isoc.org/idref/draft-ietf-sieve-vacation/

In my testing I know the sieve plugin is reading my .dovecot.sieve
script and creating the .dovecot.sievec, but that is as for as it goes. 
The .dovecot.lda-dupes file is not being created (or any
.dovecot.sieve.err file) and no reply is even being attempted from the logs:

Aug  6 11:30:51 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info]
auth(def
ault): new auth connection: pid=27187
Aug  6 11:30:51 mail2.engr.colostate.edu postfix/smtpd[27187]: [ID
197553 mail.i
nfo] connect from akron.colostate.edu[129.82.103.160]
Aug  6 11:30:51 mail2.engr.colostate.edu postfix/smtpd[27187]: [ID
197553 mail.i
nfo] setting up TLS connection from akron.colostate.edu[129.82.103.160]
Aug  6 11:30:51 mail2.engr.colostate.edu postfix/smtpd[27187]: [ID
197553 mail.i
nfo] Anonymous TLS connection established from
akron.colostate.edu[129.82.103.16
0]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
Aug  6 11:30:52 mail2.engr.colostate.edu postfix/smtpd[27187]: [ID
197553 mail.i
nfo] 16E2059984: client=akron.colostate.edu[129.82.103.160]
Aug  6 11:30:52 mail2.engr.colostate.edu postfix/cleanup[27192]: [ID
197553 mail
.info] 16E2059984:
message-id=<3b676ae5f90fadad863930dcc61db3f8.squirrel at webmail
.engr.colostate.edu>
Aug  6 11:30:52 mail2.engr.colostate.edu postfix/smtpd[27187]: [ID
197553 mail.i
nfo] disconnect from akron.colostate.edu[129.82.103.160]
Aug  6 11:30:52 mail2.engr.colostate.edu postfix/qmgr[18021]: [ID 197553
mail.in
fo] 16E2059984: from=<joeblow at engr.colostate.edu>, size=1877, nrcpt=1
(queue act
ive)
Aug  6 11:30:52 mail2.engr.colostate.edu deliver(cjay): [ID 315030
mail.info] Lo
ading modules from directory: /userM/mail-services/dovecot/lib/dovecot/lda
Aug  6 11:30:52 mail2.engr.colostate.edu deliver(cjay): [ID 619685
mail.info] Mo
dule loaded:
/userM/mail-services/dovecot/lib/dovecot/lda/lib90_cmusieve_plugin.
so
Aug  6 11:30:52 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info]
auth(def
ault): master in: USER  1       cjay    service=deliver
Aug  6 11:30:52 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info]
auth-wor
ker(default): passwd(cjay): lookup
Aug  6 11:30:52 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info]
auth(def
ault): master out: USER 1       cjay    system_user=cjay       
uid=10946      
gid=32  home=/top/admin/ENS/people/cjay/home
Aug  6 11:30:52 mail2.engr.colostate.edu deliver(cjay): [ID 868608
mail.info] au
th input: cjay
Aug  6 11:30:52 mail2.engr.colostate.edu deliver(cjay): [ID 868608
mail.info] au
th input: system_user=cjay
Aug  6 11:30:52 mail2.engr.colostate.edu deliver(cjay): [ID 868608
mail.info] au
th input: uid=10946
Aug  6 11:30:52 mail2.engr.colostate.edu deliver(cjay): [ID 868608
mail.info] au
th input: gid=32
Aug  6 11:30:52 mail2.engr.colostate.edu deliver(cjay): [ID 868608
mail.info] au
th input: home=/top/admin/ENS/people/cjay/home
Aug  6 11:30:52 mail2.engr.colostate.edu deliver(cjay): [ID 848615
mail.info] mb
ox: data=/top/admin/ENS/people/cjay/home/:INBOX=/userM/mail/cjay
Aug  6 11:30:52 mail2.engr.colostate.edu deliver(cjay): [ID 885103
mail.info] fs
: root=/top/admin/ENS/people/cjay/home, index=, control=,
inbox=/userM/mail/cjay
Aug  6 11:30:52 mail2.engr.colostate.edu deliver(cjay): [ID 223526
mail.info] cm
usieve: Using sieve path: /top/admin/ENS/people/cjay/home/.dovecot.sieve
Aug  6 11:30:52 mail2.engr.colostate.edu deliver(cjay): [ID 507699
mail.info] cm
usieve: Executing script /top/admin/ENS/people/cjay/home/.dovecot.sievec
Aug  6 11:30:53 mail2.engr.colostate.edu deliver(cjay): [ID 702911
mail.info] ms
gid=<3b676ae5f90fadad863930dcc61db3f8.squirrel at webmail.engr.colostate.edu>:
save
d mail to INBOX
Aug  6 11:30:53 mail2.engr.colostate.edu postfix/local[27193]: [ID
197553 mail.i
nfo] 16E2059984: to=<cjay at engr2.colostate.edu>, relay=local, delay=1.2,
delays=0
.32/0.08/0/0.82, dsn=2.0.0, status=sent (delivered to command:
/userM/mail-servi
ces/dovecot/libexec/dovecot/deliver -d $USER)
Aug  6 11:30:53 mail2.engr.colostate.edu postfix/qmgr[18021]: [ID 197553
mail.in
fo] 16E2059984: removed
Aug  6 11:34:12 mail2.engr.colostate.edu postfix/anvil[27190]: [ID
197553 mail.i
nfo] statistics: max connection rate 1/60s for (smtp:129.82.103.160) at
Aug  6 1
1:30:51
Aug  6 11:34:12 mail2.engr.colostate.edu postfix/anvil[27190]: [ID
197553 mail.i
nfo] statistics: max connection count 1 for (smtp:129.82.103.160) at
Aug  6 11:3
0:51
Aug  6 11:34:12 mail2.engr.colostate.edu postfix/anvil[27190]: [ID
197553 mail.i
nfo] statistics: max cache size 1 at Aug  6 11:30:51



More information about the dovecot mailing list