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
fkrone 99a1108338 Bugfix for commit before:
Make check for keys in keymap case insensitive
8 years ago
GnuPG Bugfix for commit before: 8 years ago
cron_templates Changes to cron, register-handler, settings and templates: 8 years ago
gpg-mailgate-web Changes to cron, register-handler, settings and templates: 8 years ago
register_templates Changes to cron, register-handler, settings and templates: 8 years ago
.gitignore Added .gitignore for python 10 years ago
INSTALL.md Updating installation instructions based on experiences made during installation and reflecting recent changes 8 years ago
LICENSE Update license to GNU GPL v3. 10 years ago
README.md Fixing critical bug: looking up email addresses for PGP encryption in keychain was done case sensitive 8 years ago
gpg-mailgate.conf.sample Changes to cron, register-handler, settings and templates: 8 years ago
gpg-mailgate.py Merged change: 8 years ago
register-handler.py Fixing S/MIME certs were saved case sensitive. This caused that the mailgate might not find the certificate for a recipient even if it was available. 8 years ago



Please note: This fork is currently WIP. It is not recommended for use at the moment.

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 or inline 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 contributors:

To Do

  • clean up code
  • rewrite and improve installation instructions
  • rewrite readme of gpg-mailgate-web in markdown
  • rename from gpg-mailgate to openpgp-s-mime-mailgate or something.....
  • even more magical stuff