Go to file
Etienne Perot a5816ef60e Add X-Gpgit-Execute header to all messages encrypted with gpgit, so that it is easier to tell which messages have been sent encrypted and which messages were merely encrypted by gpgit 2012-08-08 17:21:44 -04:00
README.md Make it work with github's markdown parser 2012-08-04 20:17:14 -04:00
encmaildir.sh Updated README, cleaned some cruft out 2012-08-04 20:13:55 -04:00
gpgit Add X-Gpgit-Execute header to all messages encrypted with gpgit, so that it is easier to tell which messages have been sent encrypted and which messages were merely encrypted by gpgit 2012-08-08 17:21:44 -04:00

README.md

gpgit

What

gpgit is a mail filter that encrypts an email with a public key in the user's GnuPG keyring.

Why

It partially solves the problem that no one wants to use PGP encryption. The email is still in the clear while in transit, but it gets encrypted before it touches your mail server's hard drive. That means mail is still vulnerable to network capture (unless TLS is used) and to logging on the intermediate SMTP servers, but not vulnerable to authorities randomly seizing your server, National Security Letters on your email provider, or other crazy stuff like that.

How

gpgit simply reads an email from stdin, encrypts it with the key given as first argument (unless the email is already encrypted), and writes out the result to stdout. That's almost all there is to it; some other arguments are available. Run gpgit without arguments for details.

You need some Perl modules for this to work:

There are multiple ways to use this in your email system:

encmaildir.sh

encmaildir.sh is a little bonus script to encrypt an existing email directory, taking care of file permissions and ownership and Dovecot indexes and everything.

Only unencrypted emails will be modified. Run encmaildir.sh without arguments for usage information.

Who