We will be adding mail filtering rules so “X” Message can be moved to “Y” Directory. Set by adding filters to emails FROM, TO, SUBJECT So on and so forth.

First we need to have Roundcube installed.. I am assuming you have already done that. I am using Ubuntu Server 12.04 with Dovecot and Postfix. Roundcube is a excellent AJAX based web mail server to install on your server system. There are unique plugins to Roundcube which will enable you to set this up very easily.

Roundcube as of version .3 supports managesieve which is far better than plain sieve or Squirrel Mail’s sieve.

I assume you have roundcube installed and working so lets get down to it.

Open Roundcube configuration file config.inc.php either found in /etc/roundcube/plugins/managesieve or /var/lib/roundcube/plugins/managesieve — If the file doesn’t have any code in it we will need to copy your Dist example to it and overwrite the file. directory

sudo cp /var/lib/roundcube/plugins/managesieve/config.inc.php.dist /etc/roundcube/plugins/managesieve/config.inc.php

Optional: You may change the server port if needed by ISP. Found in your new copy of config.inc.php

sudo vim /etc/roundcube/plugins/managesieve/config.inc.php

Next we will need to edit the main Roundcube Config to allow ManageSieve

sudo vim /etc/roundcube/main.inc.php

Look For Line:

$rcmail_config['plugins'] = array('password');
**Note the ‘password’ part my not be there depending on RC Version, it will just allow users to change their RC password in the settings section.
Change to:

$rcmail_config['plugins'] = array('password','managesieve');

That’s it! You should be able to go into your Roundcube Config under Settings > Filters.