perennate f78652ac15 Greatly improve recipient selection mechanism.
This resolves many errors, such as forwarding loops arising from mailing lists.
2013-09-16 19:18:15 +02:00

27 lines
1,001 B

1) Ensure that GPG is installed and configured.
a) Make sure public keys for all of your potential recipients are
available in the GPG home directory you use in step 2
2) Configure /etc/gpg-mailgate.conf based on the provided sample config
3) Place in /usr/local/bin/
4) Place the GnuPG directory in /usr/lib/python2.7/ (replace 2.7 with your Python version)
5) Add the following to the end of /etc/postfix/
gpg-mailgate unix - n n - - pipe
flags= user=nobody argv=/usr/local/bin/ ${recipient} inet n - n - 10 smtpd
-o content_filter=
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=
-o smtpd_authorized_xforward_hosts=
6) Add the following to /etc/postfix/
content_filter = gpg-mailgate
7) Restart postfix.