On Thu, Jan 10, 2013 at 01:37:54PM +0100, Andreas Hanke wrote:
> Hello together,
> 
> I have a question about PGP and mutt!
> 
> gpg2 works fine on my system, I have already tested that.
> 
> In my .muttrc I have that added:
> 
> /opt/mutt-1.5.21/contrib/gpg.rc

So far as I am aware, you do not really need a gpg.rc file, or is it a
.gpgrc?

You do, however, need quite a bit in your .muttrc.  This is the relevant
portion of my .muttrc, which works just fine.  I am using GnuPG, the
open-source equivalent, but it should work the same.

You will have to replace the email address associated with your PGP key,
and your key code, (both are in parentheses below)
but otherwise, you should be able to simply cut and paste this into your
current .muttrc file and have secure email.

You may test it on me if you wish.  PGP email can be difficult to set up, but
once working, it seems pretty stable.

Enjoy:

#paranoid delusional encryption stuff... also check on the use of
Steghide

set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch
--output - %f"
set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s
%f"
set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch
--output - %f"
set pgp_sign_command="gpg --no-verbose --batch --output -
--passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_clearsign_command="gpg --no-verbose --batch --output -
--passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_encrypt_only_command="/usr/lib/mutt/pgpewrap /usr/bin/gpg
--batch --quiet --no-verbose --output - --encrypt --textmode --armor
--always-trust --encrypt-to (your key code) -- -r %r -- %f"
set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap /usr/bin/gpg
--passphrase-fd 0 --batch --quiet --no-verbose --textmode --output -
--encrypt --sign %?a?-u %a? --armor --always-trust --encrypt-to 5B707677
-- -r %r -- %f"
set pgp_import_command="gpg --no-verbose --import -v %f"
set pgp_export_command="gpg --no-verbose --export --armor %r"
set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint
--check-sigs %r"
set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons
--list-keys %r"
set pgp_list_secring_command="gpg --no-verbose --batch --with-colons
--list-secret-keys %r"
set pgp_autosign=yes
set pgp_sign_as=(the email address you are using for encryption)
set pgp_replyencrypt=yes
set pgp_timeout=1800
set pgp_good_sign="^gpg: Good signature from"


-- 
"Think nobody intercepts email?  Think again!  Gnu Privacy Guard.  Not
just for spies."

Attachment: signature.asc
Description: Digital signature

Reply via email to