Author Topic: sieve plugin not working and display  (Read 5189 times)

Offline sorryboy

  • Jr. Member
  • **
  • Posts: 23
sieve plugin not working and display
« on: February 22, 2016, 04:33:00 AM »
Hi everyone
I install sieve plugin but there is no display tab on the top of sieve.
http://imgur.com/a/3q7UB

Below is some config info
1.package info
# dovecot-managesieve-0.11.13 Dovecot ManageSieve Server daemon
# dovecot-sieve-1.2+0.1.19 A Sieve plugin for the Dovecot 'deliver' LDA

2.platform
# FreeBSD 9.1-RELEASE
# Apache 2.2
# PHP 5.5
# roundcube 0.9.2

3.configuration of dovecot
protocol imap {
...
  mail_plugins = sieve
}
protocol managesieve {
  login_executable = /usr/local/libexec/dovecot/managesieve-login
  mail_executable = /usr/local/libexec/dovecot/managesieve
  managesieve_logout_format =  bytes=%i/%o
}
plugin {
...
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}

protocols =  imap pop3  managesieve
disable_plaintext_auth = no
mail_location = mbox:~/mail/:INBOX=/var/mail/%u
mail_privileged_group = dovecot
first_valid_uid=1000

4.configuration of postfix
mailbox_command = /usr/local/libexec/dovecot/deliver

5.configuration of roundcube
// List of active plugins (in plugins/ directory)
$rcmail_config['plugins'] = array('sieverules');
And place this plugin folder into plugins directory of Roundcube
Did I missing something?
Any suggestion will be appreciated ,thanks :)

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,881
    • SKaero - Custom Roundcube development
Re: sieve plugin not working and display
« Reply #1 on: February 22, 2016, 05:28:42 AM »
First update Roundcube. Roundcube version 0.9.2 was released on 6/16/2013 and isn't even the latest in the 0.9.x branch (that would be 0.9.5) which is no longer supported. If you still have the problem once you've updated post the error log.

Offline sorryboy

  • Jr. Member
  • **
  • Posts: 23
Re: sieve plugin not working and display
« Reply #2 on: February 23, 2016, 03:36:03 AM »
Thanks! , I updating to 1.0.8 , and the filter is display now.
But there is some problems.. the message says "unable  to connect to sieve server".
I set the following below
 
$config['sieverules_host'] = 'backup1.intra.net';
$config['sieverules_port'] = 4190;

But where is the sieve service to start ?
There is no 4190 port on listening in system
# sockstat -4l | grep 4190


Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
Re: sieve plugin not working and display
« Reply #3 on: February 23, 2016, 06:04:42 AM »
Quote
But where is the sieve service to start ?
There is no 4190 port on listening in system
# sockstat -4l | grep 4190
so managesieve is not running on your server. check your dovecot config or logs for errors to explain why its not started up. also check you have the port right it could be 2000 as well (thats the old port managesieve used to use)
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline sorryboy

  • Jr. Member
  • **
  • Posts: 23
Re: sieve plugin not working and display
« Reply #4 on: February 25, 2016, 03:08:16 AM »
The message still says "unable  to connect to sieve server" ,and dovecot log shows nothing about sieve problem.. and port 2000 is on listening .
Quote
dovecot  managesiev 2329  4  tcp4   *:2000                              *:*
I found the directory plugins/managesieve/  ,so should I set the main config 
Quote
$config['plugins'] = array('sieverules');
to
Quote
$config['plugins'] = array('sieverules' 'managesieve');
?
Whats different between sieve and managesieve ,I think managesieve is a service for sieve ,am I right ?

Below is dovecot log
Feb 24 15:55:55 dovecot: Info: Dovecot v1.2.17 starting up
Feb 25 10:39:39 dovecot: Warning: Killed with signal 15 (by pid=17550 uid=0 code=kill)
Feb 25 11:29:07 imap-login: Warning: Killed with signal 15 (by pid=17911 uid=0 code=kill)
Feb 25 11:29:07 imap-login: Warning: Killed with signal 15 (by pid=17911 uid=0 code=kill)
Feb 25 11:29:07 auth-worker(default): Warning: Killed with signal 15 (by pid=17911 uid=0 code=kill)
Feb 25 11:29:07 auth(default): Warning: Killed with signal 15 (by pid=17911 uid=0 code=kill)
Feb 25 11:29:07 imap-login: Warning: Killed with signal 15 (by pid=17911 uid=0 code=kill)
Feb 25 11:29:07 dovecot: Warning: Killed with signal 15 (by pid=17911 uid=0 code=kill)
Feb 25 14:03:58 dovecot: Warning: Killed with signal 15 (by pid=1659 uid=0 code=kill)
Feb 25 14:12:32 dovecot: Warning: Killed with signal 15 (by pid=1763 uid=0 code=kill)

Below is dovecot-debug log
root@backup1:/root # cat /var/log/dovecot-debug.log
Feb 25 10:39:39 dovecot: Info: Dovecot v1.2.17 starting up
Feb 25 13:06:33 dovecot: Info: Dovecot v1.2.17 starting up
Feb 25 14:03:58 dovecot: Info: Dovecot v1.2.17 starting up
Feb 25 14:12:32 dovecot: Info: Dovecot v1.2.17 starting up
« Last Edit: February 25, 2016, 03:41:13 AM by sorryboy »

Offline sorryboy

  • Jr. Member
  • **
  • Posts: 23
[SOLVED]Re: sieve plugin not working and display
« Reply #5 on: February 25, 2016, 04:03:24 AM »
I found the problem !!
I have to add "sieve" in dovecot.conf on protocols. ==>
Quote
protocols =  imap imaps managesieve sieve
And change the config aboout sieverules port to 2000 ==>
Quote
$config['sieverules_port'] = 2000;

Now there is no error message about filter.
http://imgur.com/IkmsCwg

Thanks all suggestion  ;)