Fabian Peter Hammerle 035bcb45ac readme: added dovecot sieve filter setup instructions | 4 년 전 | |
---|---|---|
Dockerfile | 4 년 전 | |
README.md | 4 년 전 | |
docker-compose.yml | 4 년 전 | |
invoke-gpgit.sh | 4 년 전 | |
serve-gpgit.sh | 4 년 전 |
automatically pgp-encrypt mails
setup pigeonhole and enable sieve_extprograms
# dovecot config
protocol lmtp {
mail_plugins = $mail_plugins sieve
}
plugin {
sieve = file:~/sieve/scripts;active=~/sieve/active
sieve_plugins = sieve_extprograms
sieve_extensions = +vnd.dovecot.filter
sieve_filter_bin_dir = /some/path/sieve-filter-bin
}
# https://wiki.dovecot.org/Pigeonhole/Sieve/Troubleshooting
#mail_debug = yes
start gpgit
$ sudo docker run -d --name gpgit \
-e GNUPG_IMPORT="$(gpg -a --export me@domain.tld)" \
--restart always \
fphammerle/gpgit@sha256:see-git-tags
add -p 127.0.0.1:6156:6156
if dovecot is not running in a container assigned to same network
install filter script
#!/bin/sh
# /some/path/sieve-filter-bin/gpgit
(echo "$@"; cat) | socat -d -t24 - tcp:gpgit:6156
replace container name gpgit
with localhost
if dovecot is not running in a container assigned to same network
$ chmod +x /some/path/sieve-filter-bin/gpgit
configure sieve to encrypt incoming mails
# /some/where/mail_home/username/sieve/scripts/encrypt.sieve
require [ "vnd.dovecot.filter" ];
filter "gpgit" ["me@domain.tld"];
$ ln -s scripts/encrypt.sieve /some/where/mail_home/username/sieve/active
src/e2ee.rs:282: Detected Autocrypt-mime message
src/mimeparser.rs:166: decryption failed: "no valid signatures"