A mailgate for Postfix to encrypt incoming and outgoing email with S/MIME and/or OpenPGP and decrypting OpenPGP encrypted emails https://lacre.io
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
kflux 9ddddb5bbb Create passthrough_emails.cf 9 years ago
GnuPG Merge https://github.com/ajgon/gpg-mailgate 10 years ago
gpg-mailgate-web Update README 9 years ago
templates Create registrationSuccess.md 9 years ago
.gitignore Added .gitignore for python 10 years ago
INSTALL.md Update INSTALL.md 9 years ago
LICENSE Update license to GNU GPL v3. 10 years ago
README.md Update README.md 9 years ago
gpg-mailgate.conf.sample added S/MIME configs 9 years ago
gpg-mailgate.py added additional/optional S/MIME encryption 9 years ago
passthrough_emails.cf Create passthrough_emails.cf 9 years ago
register-handler.py S/MIME Email registration 9 years ago



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

  • added HKP keyserver key submit function to the gpg-mailgate-web script

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 can be stored in a dedicated gpg-home-directory (see Note 1 in INSTALL)
  • 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)
  • 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)

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


This is a combined work of many developers: