How to make PGP/GPG work?
Verify that you've installed PGP properly and your mutt is compiled with PGP support:
RTFM about the <tt>$pgp_*</tt> vars, <tt>pgp-hook</tt>, use : <tt>source</tt> <path-to-manual.txt><tt>/samples/pgpX.rc</tt> where you replace the "X" with the version of PGP you are using. You can find there a file for GPG, too.
Read The GNU Privacy Handbook as a general introduction to GnuPG.
How to make oldstyle / classic / traditional / inline PGP work?
Three ways to read such messages, in decreasing comfort:
- Apply ddm.pgp-always-check-traditional.2 (for Mutt 1.4.x) or ddm.pgp-auto-decode (for Mutt 1.5.x) patch by Derek D. Martin at http://www.pizzashack.org/mutt/ (see PatchList).
- With recent Mutts >= 1.5.7, use the <tt><check-traditional-pgp></tt> function automatically inside a <tt>message-hook</tt>, setting this one line in muttrc:
<pre><nowiki> message-hook '!(~g|~G) ~b"-----BEGIN\ PGP\ (SIGNED\ )?MESSAGE"' "exec check-traditional-pgp"</nowiki></pre> : Note: This doesn't work so well with inline signatures within MIME digests.
- Use the <tt>pgp_auto_decode</tt> option, which is very similar to the message-hook method but also works within MIME digests.
- Use the <tt><check-traditional-pgp></tt> function manually, typing <tt>ESC P</tt> key.
: Note: The way #2 (<tt>message-hook</tt>) was triggering an infinite loop bug in old Mutts. Bug solved long ago: Upgrade.
: Note: You may have previously found adviced here and there some weird procmail recipes changing inline text to app/pgp so Mutt can deal with the message. Those are old dirty hacks that at first may have seemed to work, but solving one problem created three others. Today: Avoid at all costs.
Since some coders of mutt established RFCs for usage of PGP secured eMail with MIME (2015, 3156, see RelevantStandards) to make lives easier for users (and clients), avoid creating oldstyle PGP eMails, let mutt do it right.
If for some stuck with old software-reason you insist on producing them, adjust <tt>$pgp_create_traditional</tt> to your needs.
Other MUAs (mail-programs) can't handle mutt's PGP-stuff being attachments?
That's a pity, ... really, seriously. Even though mutt has a head-start when it comes to RFC compliance with MIME + PGP, by now other MUA coders should have noticed that there is a standardized way to deal with it, more useful than the old inline stuff.
If you keep getting complaints of OE users not able to read your message, try:
reply-hook "~h 'Outlook Express'" set crypt_autosign = no reply-hook . set crypt_autosign = yes
I typed wrong passphrase, but mutt still keeps using it?
Maybe your PGP commands return bad exit codes for errors. See "?" for how to <tt>forget-passphrase</tt>.
Does Mutt do S/MIME?
There is support for S/MIME in the 1.5.4 (?) and higher. See http://www.ezitrust.com/guides/ for some documentation (unfortunately in a PDF which doesn't allow cut-and-paste!) remark: use xpdf
There's also an HTML guide at http://equiraptor.com/smime_mutt_how-to.html
Note that openssl-0.9.7d fails to encrypt your messages because of a bug in it: http://email@example.com/msg17377.html
I'm using gpg to encrypt messages and can't read my own postings
gpg can encrypt messages to several people at once. Add your keyid and you will be able to read messages in your $record folder.
The easiest way is to add
to ~/.gnupg/gpg.conf (~/.gnupg/options in gpg 1.0). You can alternatively add it in Mutt's crypt_* options. But <b>BEWARE</b> of the security implications this has. Basically you're adding another vulnerability to the encrypted message. If your <i>or</i> the recipient's key is compromised an attacker can read the message.
Another even less secure possibility is to save your local copy unencrypted. See mutt's $fcc_clear.
So there are two possibilities: Encrypt with your key too or save a cleartext copy. The safest option is to not store a local copy or to live with the fact that you cannot read the message.
Which keyserver should I use?
subkeys.pgp.net is a rotation server that includes only the new sks servers. The old public key servers often screw up keys by dropping subkeys or multiplying user ids.
How can I retrieve PGP-keys automatically?
That is a gpg setting. (~/.gnupg/gpg.conf)
keyserver subkeys.pgp.net [or any other server] keyserver-options auto-key-retrieve