No Description

Fabian Peter Hammerle 035bcb45ac readme: added dovecot sieve filter setup instructions 4 years ago
Dockerfile 06287d8c2f added link to list of potential alternatives for socat 4 years ago
README.md 035bcb45ac readme: added dovecot sieve filter setup instructions 4 years ago
docker-compose.yml d794bbfa59 compose: remove invalid tmpfs mount 4 years ago
invoke-gpgit.sh 8fbbcdad59 reduce verbosity 4 years ago
serve-gpgit.sh 8fbbcdad59 reduce verbosity 4 years ago

README.md

docker: gpgit

automatically pgp-encrypt mails

dovecot setup

  1. 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
    
  2. 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

  1. 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
  1. 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
    

known issues

deltachat

src/e2ee.rs:282: Detected Autocrypt-mime message
src/mimeparser.rs:166: decryption failed: "no valid signatures"

https://github.com/deltachat/deltachat-core-rust/blob/3a25d6b275eb2d33a64dbc7a60e37df2bf18a559/src/e2ee.rs#L309