diff --git a/content/blog/pgp_encrypting_all_incoming_emails.md b/content/blog/pgp_encrypting_all_incoming_emails.md index 90f8e57..45003eb 100644 --- a/content/blog/pgp_encrypting_all_incoming_emails.md +++ b/content/blog/pgp_encrypting_all_incoming_emails.md @@ -36,7 +36,9 @@ Set Dovecot to use Pigeonhole. Edit `/etc/dovecot/conf.d/20-lmtp.conf`: ```conf protocol lmtp { - mail_plugins = $mail_plugins sieve + mail_plugins { + sieve = yes + } } ``` @@ -44,7 +46,9 @@ If you use LDA, you should do: ```conf protocol lda { - mail_plugins = $mail_plugins sieve + mail_plugins { + sieve = yes + } } ``` @@ -61,7 +65,9 @@ To enable `sieve_extprograms`, anywhere in your Dovecot config (I put it in `/et ```conf plugin { sieve_plugins = sieve_extprograms - sieve_extensions = +vnd.dovecot.filter + sieve_extensions { + vnd.dovecot.filter = yes + } sieve_filter_bin_dir = /etc/dovecot/sieve-filters } ``` @@ -103,25 +109,21 @@ Now place the executable you want to use in `/etc/dovecot/sieve-filters` and mak see the version of Julian Andres Klode's script I use on my server [here](https://git.revsuine.xyz/revsuine/gpgmymail). -You also need to make sure that users can set their own personal Sieve scripts. You can set: +You also need to make sure that users can set their own personal Sieve scripts. To have a directory full of sieve +scripts at `~/sieve` where the user can select one to be active by symlinking it to `~/.dovecot.sieve`, set the +following in your Dovecot config, e.g. in `/etc/dovecot/conf.d/90-sieve.conf`: ```conf -plugin { - sieve = ~/.dovecot.sieve +sieve_script personal { + driver = file + path = ~/sieve + active_path = ~/.dovecot.sieve } ``` -to make it so that a user's Sieve script would be at `~/.dovecot.sieve`. You can also set - -```conf -plugin { - sieve = file:~/sieve;active=~/.dovecot.sieve -} -``` - -so that `~/sieve/` is a directory full of sieve scripts, and the active one is symlinked at `~/.dovecot.sieve`. See -[Dovecot docs on Sieve script locations](https://doc.dovecot.org/main/core/plugins/sieve.html#script-locations), or [my -further explanation of the `sieve = file:~/sieve;active=~/.dovecot.sieve` example on my previous blog +See [Dovecot docs on Sieve script +locations](https://doc.dovecot.org/main/core/plugins/sieve.html#script-locations), or [my further explanation of the +above config example on my previous blog post](/blog/mail_server_alpine_postfix_dovecot_tutorial/#installing-and-setting-up-pigeonhole). Restart Dovecot for your changes to take effect: