A mailgate for Postfix to encrypt incoming and outgoing email with S/MIME and/or OpenPGP and decrypting OpenPGP encrypted emails https://lacre.io
Go to file
kflux 5c61d28fa3 Update README.md 2014-03-02 14:31:54 +01:00
GnuPG Merge https://github.com/ajgon/gpg-mailgate 2013-11-03 10:38:04 -05:00
gpg-mailgate-web Update index.php 2014-03-02 14:12:09 +01:00
templates Create registrationSuccess.md 2014-02-26 01:59:57 +01:00
.gitignore Added .gitignore for python 2013-04-02 21:30:20 +02:00
INSTALL.md Update INSTALL.md 2014-03-02 14:18:56 +01:00
LICENSE Update license to GNU GPL v3. 2013-10-02 14:27:28 -04:00
README.md Update README.md 2014-03-02 14:31:54 +01:00
gpg-mailgate.conf.sample Update gpg-mailgate.conf.sample 2014-03-02 14:09:19 +01:00
gpg-mailgate.py preserve X-GPG-Mailgate header for S/MIME enc. 2014-03-02 13:14:12 +01:00
register-handler.py added PGP email registration 2014-03-02 14:28:37 +01:00



gpg-mailgate is a content filter for Postfix that automatically encrypts unencrypted incoming email using PGP or S/MIME for select recipients.

For installation instructions, please refer to the included INSTALL file.


  • Correctly displays attachments and general email content; currently will only display first part of multipart messages
  • Public keys are stored in a dedicated gpg-home-directory
  • Encrypts both matching incoming and outgoing mail (this means gpg-mailgate can be used to encrypt outgoing mail for software that doesn't support PGP or S/MIME)
  • Easy installation
  • gpg-mailgate-web extension is a web interface allowing any user to upload PGP keys so that emails sent to them from your mail server will be encrypted (see gpg-mailgate-web directory for details)
  • people can submit their public key like to any keyserver to gpg-mailgate with the gpg-mailgate-web extension
  • people can send an S/MIME signed email to register@yourdomain.tld to register their public key
  • people can send their public OpenPGP key as attachment to register@yourdomain.tld to register it

This is forked from the original project at http://code.google.com/p/gpg-mailgate/


This is a combined work of many developers and contributor:s

To Do

  • clean up code
  • add optional email registration with attached public key to register@domain.tld done
  • outsource templates for emails and mailgate-web
  • rename from gpg-mailgate to openpgp-s-mime-mailgate or something.....