Enabling Roundcube Client-Side Filters

If you would like your users to be ble to setup their own custom rules, you can do this with managesieve as shown below.


# cd /usr/ports/mail/dovecot-managesieve
# make install clean

You can enable the managesieve service in dovecot by adding managesieve to the protocols in dovecot.conf


# vi /usr/local/etc/dovecot.conf

add managesieve to the protocols setting. Save and then restart dovecot:


# svc -t /service/dovecot

Next we need to check what port managesieve is running on. Run sockstat -l4 and look for the following:


dovecot managesiev 23920 4 tcp4 *:2000 *:*
dovecot managesiev 23919 4 tcp4 *:2000 *:*

This is telling you that managesieve is running on port 2000. I have marked the relevant sections above in red. Now lets copy a few things:


# cd /usr/local/www/roundcube/plugins/managesieve/
# cp config.inc.php.dist config.inc.php
# vi config.inc.php

And at the top we need to match the port number with the port we found when running sockstat -l4.


$config['managesieve_port'] = 2000;

Save, exit and run the following:


# cd /usr/local/www/roundcube/config/
# vi config.inc.php

and add managesieve to the plugins section:


'managesieve'

Save and exit. You should now have the filter enabled and working on roundcube. Further information on configuration can be found at:

http://Wiki.Dovecot.org/ManageSieve