Roundcube Community Forum

 

sieve plugin not working and display

Started by sorryboy, February 22, 2016, 04:33:00 AM

Previous topic - Next topic

sorryboy

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 :)

SKaero

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.

sorryboy

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


JohnDoh

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...

sorryboy

#4
The message still says "unable  to connect to sieve server" ,and dovecot log shows nothing about sieve problem.. and port 2000 is on listening .
Quotedovecot  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

sorryboy

I found the problem !!
I have to add "sieve" in dovecot.conf on protocols. ==>
Quoteprotocols =  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  ;)