Sieve global path?

Stephan von Krawczynski skraw.ml at ithnet.com
Fri Nov 10 10:07:23 EET 2017


On Thu, 9 Nov 2017 21:02:44 -0500
Bill Shirley <bill at KnoxvilleChristian.org> wrote:

> Set the sieve_global_dir like this.
> /etc/dovecot/conf.d/99-mystuff.conf:
> .
> .
> plugin {
>    sieve                 = ~/Maildir/dovecot.sieve
>    sieve_dir             = ~/Maildir/sieve
>    sieve_global_dir      = /etc/dovecot/sieve/global/
>    sieve_before          = /etc/dovecot/sieve/before.d/
> #  sieve_before2        =
> #  sieve_before3        =
>    sieve_after           = /etc/dovecot/sieve/after.d/
> #  sieve_after2         =
> #  sieve_after3         =
> 
>    fts                   = lucene
>    fts_lucene            = whitespace_chars=@.
> }
> 
> Permissions:
> drwxr-xr-x. 174 root root system_u:object_r:etc_t:s0         12288 Nov  9
> 11:43 /etc drwxr-xr-x.   4 root root system_u:object_r:dovecot_etc_t:s0
> 95 Apr 28  2016 /etc/dovecot drwxr-xr-x.   5 root root
> system_u:object_r:dovecot_etc_t:s0    64 Jul 13  2015 /etc/dovecot/sieve
> drwxr-xr-x.   2 root root system_u:object_r:dovecot_etc_t:s0    10 Jul 13
> 2015 /etc/dovecot/sieve/global
> 
> Since this directory is read-only to all but root, pre-complie your scripts
> with 'sievec'.
> 
> Bill

... And don't follow this example setting sieve_dir inside your maildirs. This
will lead to the dir being shown as imap folder which you don't want.
Simply put out it outside and everything is fine.

-- 
Regards,
Stephan



More information about the dovecot mailing list