Skip to content

Server side mail filtering with dovecot and squirrelmail

  • by

Maybe you know, maybe not, but pre-build Debian Lenny packages of dovecot from backports has been built with sieve plugin.

Sieve plugin provides mail filtering facilities at time of final message delivery using the Sieve language. This filters can be set by mail users from their webmail – squirrelmail with avelsieve plugin.

My setup was with avelsieve from sid – icons looks much nicer than from lenny, also my squirrelmail is from backports.

Install plugin:

dpkg -i libjs-scriptaculous_1.8.3-1_all.deb
dpkg -i avelsieve_1.9.9-2_all.deb

Enable managesieve

protocols = imap imaps pop3 pop3s managesieve

Change port in
$sieveport = 2000;

Change line 204 of /usr/share/squirrelmail/plugins/avelsieve/include/ to

for ($i = 0; $i <= $maSize; $i++) {

which fixes missing last imap folder in ‘Move to Folder’ rule.

Leave a Reply

Your email address will not be published. Required fields are marked *