1 (edited by giorgiolago 2011-11-23 04:28:47)

Topic: [SOLVED] Not auto response! Per user Sieve problem!

==== Provide basic information to help troubleshoot ====
- iRedMail version: 0.6.1
- Linux/BSD distribution name and version: Debian Lenny
- Any related log? Log is helpful for troubleshooting.
====

Hi guys, I'm having problems with the use of per user sieve rules. Rules do not work. This is rule on roundcube:
http://img577.imageshack.us/img577/7082/13251654.png==== Provide basic information to help troubleshoot ====
my dovecoat.conf:
webmail:~# dovecot -n
# 1.1.13: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-5-xen-amd64 x86_64 Debian 5.0.9
log_path: /var/log/dovecot.log
protocols: pop3 pop3s imap imaps managesieve
listen(default): *
listen(imap): *
listen(pop3): *
listen(managesieve): 127.0.0.1:2000
ssl_cert_file: /etc/ssl/certs/iRedMail_CA.pem
ssl_key_file: /etc/ssl/private/iRedMail.key
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
mail_uid: 1000
mail_gid: 1000
mail_location: maildir:/%Lh/Maildir/:INDEX=/%Lh/Maildir/
mail_debug: yes
mail_executable(default): /usr/bin/trackLastLogin.sh imap
mail_executable(imap): /usr/bin/trackLastLogin.sh imap
mail_executable(pop3): /usr/bin/trackLastLogin.sh pop3
mail_executable(managesieve): /usr/lib/dovecot/managesieve
mail_plugins(default): quota imap_quota zlib
mail_plugins(imap): quota imap_quota zlib
mail_plugins(pop3): quota zlib
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
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
pop3_client_workarounds(managesieve):
sieve_storage(default):
sieve_storage(imap):
sieve_storage(pop3):
sieve_storage(managesieve): /var/vmail/sieve/%Ld/%Ln/
sieve(default):
sieve(imap):
sieve(pop3):
sieve(managesieve): /var/vmail/sieve/%Ld/%Ln/dovecot.sieve
auth default:
  mechanisms: plain login
  default_realm: fama.br
  user: vmail
  passdb:
    driver: ldap
    args: /etc/dovecot/dovecot-ldap.conf
  userdb:
    driver: ldap
    args: /etc/dovecot/dovecot-ldap.conf
  socket:
    type: listen
    client:
      path: /var/spool/postfix/dovecot-auth
      mode: 438
      user: postfix
      group: postfix
    master:
      path: /var/run/dovecot/auth-master
      mode: 438
      user: vmail
      group: vmail
plugin:
  quota_warning: storage=85%% /usr/bin/dovecot-quota-warning.sh 85
  quota_warning2: storage=90%% /usr/bin/dovecot-quota-warning.sh 90
  quota_warning3: storage=95%% /usr/bin/dovecot-quota-warning.sh 95
  quota: maildir
  quota_rule: *:storage=100M
  expire: Trash 7 Trash/* 7 Junk 30
  expire_dict: proxy::expire
  auth_socket_path: /var/run/dovecot/auth-master
dict:
  expire: db:/var/lib/dovecot/expire/expire.db

My sieve.log:

webmail:~# tail -f   /var/log/sieve.log | grep -i giorgio
deliver(giorgio#fama.br): Nov 21 23:41:57 Info: Loading modules from directory: /usr/lib/dovecot/modules/lda
deliver(giorgio#fama.br): Nov 21 23:41:57 Info: Module loaded: /usr/lib/dovecot/modules/lda/lib10_quota_plugin.so
deliver(giorgio#fama.br): Nov 21 23:41:57 Info: Module loaded: /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so
deliver(giorgio#fama.br): Nov 21 23:41:57 Info: auth input: home=/var/vmail/vmail01
deliver(giorgio#fama.br): Nov 21 23:41:57 Info: auth input: mail=maildir:~/fama.brg/gi/gio/giorgio-2009.10.07.02.34.14//Maildir/
deliver(giorgio#fama.br): Nov 21 23:41:57 Info: auth input: quota_rule=*:bytes=1048576000
deliver(giorgio#fama.br): Nov 21 23:41:57 Info: Quota root: name= backend=maildir args=
deliver(giorgio#fama.br): Nov 21 23:41:57 Info: Quota rule: root= mailbox=* bytes=1048576000 messages=0
deliver(giorgio#fama.br): Nov 21 23:41:57 Info: Quota warning: bytes=891289600 (85%) messages=0 command=/usr/bin/dovecot-quota-warning.sh 85
deliver(giorgio#fama.br): Nov 21 23:41:57 Info: Quota warning: bytes=943718400 (90%) messages=0 command=/usr/bin/dovecot-quota-warning.sh 90
deliver(giorgio#fama.br): Nov 21 23:41:57 Info: Quota warning: bytes=996147200 (95%) messages=0 command=/usr/bin/dovecot-quota-warning.sh 95
deliver(giorgio#fama.br): Nov 21 23:41:57 Info: maildir: data=~/fama.brg/gi/gio/giorgio-2009.10.07.02.34.14//Maildir/
deliver(giorgio#fama.br): Nov 21 23:41:57 Info: maildir++: root=/var/vmail/vmail01/fama.brg/gi/gio/giorgio-2009.10.07.02.34.14//Maildir, index=, control=, inbox=/var/vmail/vmail01/fama.brg/gi/gio/giorgio-2009.10.07.02.34.14//Maildir
deliver(giorgio#fama.br): Nov 21 23:41:57 Info: cmusieve: Using sieve path: /var/vmail/vmail01/.dovecot.sieve
deliver(giorgio#fama.br): Nov 21 23:41:57 Info: cmusieve: Executing script /var/vmail/vmail01/.dovecot.sievec
deliver(giorgio#fama.br): Nov 21 23:41:57 Info: msgid=<CAJAYy1ijJEL-zeUCMgjNz41Sw0vw5-Cb8mzqkafK9k6SX3WqUA@mail.gmail.com>: saved mail to INBOX

my vmail directory:
webmail:~# ls -al  /var/vmail/sieve/fama.br/giorgio/
total 16
drwx------  3 vmail vmail 4096 Nov 21 23:43 .
drwx------ 93 vmail vmail 4096 Nov  8 18:39 ..
lrwxrwxrwx  1 vmail vmail   15 Nov 21 23:43 dovecot.sieve -> roundcube.sieve
-rwx------  1 vmail vmail   91 Nov 21 23:43 roundcube.sieve
drwx------  2 vmail vmail 4096 Nov 21 23:43 tmp

webmail:~# cat  /var/vmail/sieve/fama.br/giorgio/dovecot.sieve
require ["vacation"];
# rule:[teste]
if anyof (true)
{
    vacation "!! Vacation TesT !!!";
}

Whats wrong ?! sad

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: [SOLVED] Not auto response! Per user Sieve problem!

How did you test it? Send an email from giorgio#fama.br to giorgio#fama.br? If so, it won't send you a vacation message. Try to send an email from other email address instead.

3

Re: [SOLVED] Not auto response! Per user Sieve problem!

I sent from my gmail account ! giorgiolago@gmail to my giorgio@fama.br  , Zang thx for your help ;D

4

Re: [SOLVED] Not auto response! Per user Sieve problem!

I just realized that it used incorrect sieve file: '/var/vmail/vmail01/.dovecot.sieve':

deliver(giorgio#fama.br): Nov 21 23:41:57 Info: cmusieve: Using sieve path: /var/vmail/vmail01/.dovecot.sieve

Could you please paste output of command "dovecot -n" here? And paste /etc/dovecot/dovecot-ldap.conf here AFTER removing password in it.

5

Re: [SOLVED] Not auto response! Per user Sieve problem!

webmail:~# dovecot -n
# 1.1.13: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-5-xen-amd64 x86_64 Debian 5.0.9
log_path: /var/log/dovecot.log
protocols: pop3 pop3s imap imaps managesieve
listen(default): *
listen(imap): *
listen(pop3): *
listen(managesieve): 127.0.0.1:2000
ssl_cert_file: /etc/ssl/certs/iRedMail_CA.pem
ssl_key_file: /etc/ssl/private/iRedMail.key
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
mail_uid: 1000
mail_gid: 1000
mail_location: maildir:/%Lh/Maildir/:INDEX=/%Lh/Maildir/
mail_debug: yes
mail_executable(default): /usr/bin/trackLastLogin.sh imap
mail_executable(imap): /usr/bin/trackLastLogin.sh imap
mail_executable(pop3): /usr/bin/trackLastLogin.sh pop3
mail_executable(managesieve): /usr/lib/dovecot/managesieve
mail_plugins(default): quota imap_quota zlib
mail_plugins(imap): quota imap_quota zlib
mail_plugins(pop3): quota zlib
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
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
pop3_client_workarounds(managesieve):
sieve_storage(default):
sieve_storage(imap):
sieve_storage(pop3):
sieve_storage(managesieve): /var/vmail/sieve/%Ld/%Ln/
sieve(default):
sieve(imap):
sieve(pop3):
sieve(managesieve): /var/vmail/sieve/%Ld/%Ln/dovecot.sieve
auth default:
  mechanisms: plain login
  default_realm: fama.br
  user: vmail
  passdb:
    driver: ldap
    args: /etc/dovecot/dovecot-ldap.conf
  userdb:
    driver: ldap
    args: /etc/dovecot/dovecot-ldap.conf
  socket:
    type: listen
    client:
      path: /var/spool/postfix/dovecot-auth
      mode: 438
      user: postfix
      group: postfix
    master:
      path: /var/run/dovecot/auth-master
      mode: 438
      user: vmail
      group: vmail
plugin:
  quota_warning: storage=85%% /usr/bin/dovecot-quota-warning.sh 85
  quota_warning2: storage=90%% /usr/bin/dovecot-quota-warning.sh 90
  quota_warning3: storage=95%% /usr/bin/dovecot-quota-warning.sh 95
  quota: maildir
  quota_rule: *:storage=100M
  expire: Trash 7 Trash/* 7 Junk 30
  expire_dict: proxy::expire
  auth_socket_path: /var/run/dovecot/auth-master
dict:
  expire: db:/var/lib/dovecot/expire/expire.db


webmail:~# cat /etc/dovecot/dovecot-ldap.conf
#
# File generated by iRedMail (2009.10.06.23.58.08):
#
# Version:  0.5.0
# Project:  http://code.google.com/p/iredmail/
#
# If you deploy iRedMail in product environment, we suggest
# you public your information in 'Success Stories' forum to help us
# promote iRedMail.
#
# Forum: http://www.iredmail.org/forum/
#

hosts           = 127.0.0.1:389
ldap_version    = 3
auth_bind       = yes
dn              = cn=vmail,dc=fama,dc=br
dnpass          = ********************************
base            = o=domains,dc=fama,dc=br
scope           = subtree
deref           = never
user_filter     = (&(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=%Ls%Lc)(|(mail=%u)(&(enabledService=shadowaddress)(shadowAddress=%u))))
pass_filter     = (&(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=%Ls%Lc)(|(mail=%u)(&(enabledService=shadowaddress)(shadowAddress=%u))))
pass_attrs      = userPassword=password
default_pass_scheme = CRYPT
user_attrs      = storageBaseDirectory=home,mailMessageStore=mail=maildir:~/%$/Maildir/,mailQuota=quota_rule=*:bytes=%$

6

Re: [SOLVED] Not auto response! Per user Sieve problem!

Did you apply hotfix for iRedMail-0.5.0? It's fixed:
http://www.iredmail.org/forum/topic182- … tting.html

All upgrade tutorials for iRedMail are available here:
http://iredmail.org/wiki/index.php?titl … _Tutorials

7

Re: [SOLVED] Not auto response! Per user Sieve problem!

Thanks Zhang !  SOLVED !
I forgot to enter it here in dovecot.conf:
plugin {
    sieve = /var/vmail/sieve/%Ld/%Ln/dovecot.sieve
}