Add addendum detailing how to create a dedicated user for gpg-mailgate public keys.

This commit is contained in:
perennate 2013-09-23 18:28:33 -04:00 committed by Igor Rzegocki
parent cfeaa79c2a
commit 1f70a634b8
1 changed files with 12 additions and 0 deletions

12
INSTALL
View File

@ -24,3 +24,15 @@ gpg-mailgate unix - n n - - pipe
content_filter = gpg-mailgate
7) Restart postfix.
Note 1: it is also possible to create a dedicated user to store the PGP public keys
1) useradd -s /bin/false -d /var/gpg -M gpgmap
2) mkdir -p /var/gpg/.gnupg
3) chown -R gpgmap /var/gpg
4) chmod 700 /var/gpg/.gnupg
5) sudo -u gpgmap /usr/bin/gpg --import /home/youruser/public.key --homedir=/var/gpg/.gnupg
a) replace the path with the location of your public key
b) the path can be deleted after importation
6) Confirm that it's working: sudo -u gpgmap /usr/bin/gpg --list-keys --homedir=/var/gpg/.gnupg
7) Use keyhome = /var/gpg/.gnupg in gpg-mailgate.conf