Author Topic: sieverules rules not working  (Read 7191 times)

Offline timmy_sunter

  • Newbie
  • *
  • Posts: 7
sieverules rules not working
« on: September 16, 2013, 04:05:08 AM »
Hi All,

i am new with this forum, just registered and seeking for help now.

i googled the issue, but still can't found the answer.

i managed to make the filters appears on roundcube, create new rules, and i can see it saved under the user folder rules, however, the rules not working.

i need this for out of office message.

i tried vacation as well, it doesn't work as well.

my server is 10.8 mountain lion.
sieverules 1.18
roundcubemail-0.9.3


logs doesn't show anything just success disable and enable rules

[16-Sep-2013 14:58:04 +0800]: S: ## Generated by Roundcube Webmail SieveRules Plugin ##
# rule:[1234]
# disabledRule:[a:5:{s:4:"join";b:0;s:4:"name";s:4:"1234";s:8:"disabled";s:1:"1";s:5:"tests";a:1:{i:0;a:1:{s:4:"type";         s:4:"true";}}s:7:"actions";a:1:{i:0;a:10:{s:4:"type";s:8:"vacation";s:4:"days";s:0:"";s:7:"subject";s:4:"1234";s:11:"o         rigsubject";s:0:"";s:4:"from";s:0:"";s:9:"addresses";s:0:"";s:6:"handle";s:0:"";s:3:"msg";s:4:"1234";s:7:"htmlmsg";b:0         ;s:7:"charset";s:5:"UTF-8";}}}]
[16-Sep-2013 14:58:04 +0800]: S: OK "Getscript completed."
[16-Sep-2013 14:58:04 +0800]: C: LOGOUT
[16-Sep-2013 14:58:04 +0800]: S: OK "Logout completed."
[16-Sep-2013 14:58:21 +0800]: C: PUTSCRIPT "roundcube" {160+}
## Generated by Roundcube Webmail SieveRules Plugin ##
require ["vacation"];

# rule:[1234]
if anyof (true)
{
        vacation
                :subject "1234"
                "1234";
}
[16-Sep-2013 14:58:21 +0800]: S: OK "PUTSCRIPT completed."
[16-Sep-2013 14:58:21 +0800]: C: SETACTIVE "roundcube"
[16-Sep-2013 14:58:21 +0800]: S: OK "Script is already active."
[16-Sep-2013 14:58:21 +0800]: C: LISTSCRIPTS
[16-Sep-2013 14:58:21 +0800]: S: "managesieve"
[16-Sep-2013 14:58:21 +0800]: S: "roundcube" ACTIVE
[16-Sep-2013 14:58:21 +0800]: S: OK "Listscripts completed."
[16-Sep-2013 14:58:21 +0800]: C: GETSCRIPT "roundcube"
[16-Sep-2013 14:58:21 +0800]: S: {160}
[16-Sep-2013 14:58:21 +0800]: S: ## Generated by Roundcube Webmail SieveRules Plugin ##
require ["vacation"];

# rule:[1234]
if anyof (true)
{
        vacation
                :subject "1234"
                "1234";
}
[16-Sep-2013 14:58:21 +0800]: S: OK "Getscript completed."
[16-Sep-2013 14:58:21 +0800]: C: LOGOUT
[16-Sep-2013 14:58:21 +0800]: S: OK "Logout completed."


i am still figure out on dovecot and postfix version, do you guys want to know the version?

any suggestion are welcome.

thanks a lot

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
Re: sieverules rules not working
« Reply #1 on: September 16, 2013, 01:34:05 PM »
looks like the rule file is being written correctly. have you checked your dovecot config to make sure its actually using sieve for message delivery?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline timmy_sunter

  • Newbie
  • *
  • Posts: 7
Re: sieverules rules not working
« Reply #2 on: September 16, 2013, 11:05:54 PM »
Hi John,

Thanks for the reply,

seems it all inside the dovecot conf,

protocols = imap pop3 lmtp sieve (tried change it to sieverules, still doesn't work)



under conf.d there is lda.conf and lmtp.conf, tried to change the "mail_plugins = $mail_plugins sieve" into sieverules as well, and cause all the traffic deferred


tail var log mail.log =

 relay=dovecot, delay=1.4, delays=1.4/0/0/0.03, dsn=4.3.0, status=deferred (temporary failure)

so i renamed it back to sieve under lda conf and lmtp conf

and under conf.d i got 2 sieve, 20-managesieve.conf  and 90-sieve.conf 

this confusing, which one is being used by dovecot.


i am sure it is just a small tuning up need to apply,

thanks again for the help


Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
Re: sieverules rules not working
« Reply #3 on: September 17, 2013, 02:12:25 AM »
hi, first of all please read this. you are getting confused between terms alot http://wiki.dovecot.org/LDA/Sieve.

In Roundcube managesieve and sieverules are names of plugins thats it, the mean nothing else. they have nothing to do with message delivery or applying your filters or anything.

more generally.... Sieve is the name of a mail filtering language and Managesieve is the name of a service used to manage a set of sieve rules

All the plugins in roundcube do is allow you to access and update your rule files. the MDA (in your case dovcecot) must be configured to read these files and apply the rules to incoming mail. If you check the link I posted at the start there are insturctions how to configure dovecot to do this. Do not forget you'll need to restart dovecot after you have changed your config.

Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline timmy_sunter

  • Newbie
  • *
  • Posts: 7
Re: sieverules rules not working
« Reply #4 on: September 17, 2013, 05:06:32 AM »
Hi John,

first of all thanks for all the advice.

now i am going through all the dovecot config and the documentation on dovecot sieve wiki2 as well.

so far, my lda.conf configure correctly, lmtp.conf as well.

the pigeonhole is on 4190 is working fine as well, i can telnet to localhost 4190

this will take me sometime to digest all the documentation

i will update you if i got issue again

thanks again

Offline uptimejeff

  • Newbie
  • *
  • Posts: 8
Re: sieverules rules not working
« Reply #5 on: October 02, 2013, 06:09:59 PM »
For reference, an installer for 10.8 server
http://www.roundcubeforum.net/index.php/topic,14898.0.html

This comes complete/configured with managesieve working.