Exposing global (default) sieve script through Managesieve
Matthijs Kooijman <matthijs <at> stdin.nl>
2012-06-01 18:27:33 GMT
Hi folks,
I'm setting up a dovecot server with managesieve support. I'd like to
offer spamfiltering through a Sieve script to my users by default,
but still allow them to modify the filtering rules through Managesieve.
I found the sieve_global_path configuration option, which seems perfect
for what I want. I can configure a default script there, which will work
for all users until they set upload their own sieve script using
managesieve.
However, when configured like this, the user experience isn't quite
perfect. When users open the managesieve interface on their client,
there is no trace of the default filters, so users might think the
spamfiltering is done in some other manner. Now, when they create a
filtering rule (e.g., to sort out mail to mailing lists), that rule will
overwrite the default spamfiltering rule causing all the spam to spill
into the user's mailbox. I'm afraid that most users won't realize they
have to manually recreate the spamfiltering rule to fix this. Also, they
might not know how to write the rule, even if they do...
I've considered a few existing ways to fix this:
- Use sieve_before / sieve_after to make sure that the default script
is always executed, in addition to any user-supplied scripts. This
removes the surprise, but removes the option for users to tweak the
spamfiltering rules.
- Don't use sieve_global_path, but instead distribute the default
script to each user's homedir on user creation. This prevents making
changes to the default script for existing users and in my setup,
user creation and (mail)homedir creation are nicely separated through
(Continue reading)