Bubbas mime server, Dovecot, comes with sieve included, there is only some settings to do to activate it. Firstly we've got to tell postfix to let dovecots lda (deliver) handle the delivery of mails. We do this by adding the line
Code: Select all
mailbox_command = /usr/lib/dovecot/deliver
Code: Select all
protocol lda{
postmaster_address = put_some_good_working_address_here
mail_plugins = cmusieve
}
Now do a /etc/init.d/dovecot restart and the users should be able to start sorting their mail. They do this by making a file named .dovecot.sieve in their home directories. In my .dovecot.sieve I currently have the following
Code: Select all
require "fileinto";
if exists "X-Spam-Flag" {
fileinto "Spam";
}
malmgren@bubba:~$ nano .dovecot.sieve
malmgren@bubba:~$ cat .dovecot.sieve
require "fileinto";
if exists "X-Spam-Flag" {
fileinto "Spam";
}
elsif header :contains "to" "daniel" {
fileinto "Daniel";
}
I don't guarantee that anything of the above works for anyone else. I'm a complete newbie at configuring dovecot, postfix etc. And I'm sure I did a lot of stuff that I forgot in this howto. Please tell me if that's the case

/Daniel