Mutt and GPG

Mutt and GPG

Post by Stefan Malte Schumach » Fri, 25 Jul 2003 10:37:20



Hi

I have a problem with the combination of mutt 1.4.1 and gpg 1.07.  Both
programms work when used alone and I am also able to encrypt messages I send
out to other people. The problem is that mutt seems neither to decrypt
messages I get nor does it verify the gpg-signatures. I hope not acting like
a total Luser but so far I have found no reference to any keys that have to
be used in order to decrypt / verify messages and signatures.

My muttrc contains the following pgp-options and the stuff that was in
Doc/gpg.rc. Btw : Is it really necessary to add all the stuff from gpg.rc to
muttrc ? I have used older versions of gpg and mutt successfully and I cant
remember that all these options were necessary.

set pgp_replyencrypt=yes
set pgp_replysignencrypted=yes
set pgp_verify_sig=yes
set pgp_timeout=7200

Bye
Stefan

 
 
 

Mutt and GPG

Post by Ben Finne » Fri, 25 Jul 2003 15:16:36



> mutt seems neither to decrypt messages I get nor does it verify the
> gpg-signatures.

Are the messages correctly indicating the MIME type of the encrypted or
signature parts?  Mutt uses the OpenPGP standards for sending and
reading cryptographic content.

    <http://openpgp.org/>
    <http://www.ietf.org/rfc/rfc2440.txt>

--
 \       "Whenever you read a good book, it's like the author is right |
  `\   there, in the room talking to you, which is why I don't like to |
_o__)                                read good books."  -- Jack Handey |
http://bignose.squidly.org/ 9CFE12B0 791A4267 887F520C B7AC2E51 BD41714B

 
 
 

Mutt and GPG

Post by Igorx Iwano » Fri, 25 Jul 2003 18:52:18


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stefan Malte Schumacher D???:

Quote:> I have a problem with the combination of mutt 1.4.1 and gpg 1.07.  Both
> programms work when used alone and I am also able to encrypt messages I send
> out to other people. The problem is that mutt seems neither to decrypt
> messages I get nor does it verify the gpg-signatures. I hope not acting like
> a total Luser but so far I have found no reference to any keys that have to
> be used in order to decrypt / verify messages and signatures.

Decryption and signature verification is automagic.

Quote:> My muttrc contains the following pgp-options and the stuff that was in
> Doc/gpg.rc. Btw : Is it really necessary to add all the stuff from gpg.rc to
> muttrc ?

You can copy it to your ~/.muttrc or just "source /path/to/gpg.rc".

Quote:> I have used older versions of gpg and mutt successfully and I cant remember
> that all these options were necessary.
> set pgp_replyencrypt=yes
> set pgp_replysignencrypted=yes
> set pgp_verify_sig=yes
> set pgp_timeout=7200

Do you use a proper path to gnupg in your ~/.muttrc ?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE/H6xJZsrx6aBPZiwRAn1oAJ98l57Acvw+ib4tBzGXEN5qUlTFMQCeNaST
R1Tt4Q16svBFg/C0tLrZk1c=
=cm6+
-----END PGP SIGNATURE-----

 
 
 

Mutt and GPG

Post by Stefan Malte Schumach » Fri, 25 Jul 2003 22:32:29


Quote:> Do you use a proper path to gnupg in your ~/.muttrc ?

I have just compiled and installed gnupg 1.2.2 but the problems are still
the same. Here are the stuff I put in my muttrc from gpg.rc. As you can see
I changed the path from /usr/bin to /usr/local/bin but nonetheless it does
not work.

set pgp_decode_command="/usr/local/bin/gpg   %?p?--passphrase-fd 0? --no-verbose --quiet  --batch  --output - %f"
set pgp_verify_command="/usr/local/bin/gpg   --no-verbose --quiet  --batch  --output - --verify %s %f"
set pgp_decrypt_command="/usr/local/bin/gpg   --passphrase-fd 0 --no-verbose --quiet  --batch  --output - %f"
set pgp_sign_command="/usr/local/bin/gpg    --no-verbose --batch --quiet   --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_clearsign_command="/usr/local/bin/gpg   --no-verbose --batch --quiet   --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_encrypt_only_command="pgpewrap /usr/local/bin/gpg   --batch  --quiet  --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
set pgp_encrypt_sign_command="pgpewrap /usr/local/bin/gpg --passphrase-fd 0  --batch --quiet  --no-verbose  --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
set pgp_import_command="/usr/local/bin/gpg --no-verbose --import -v %f"
set pgp_export_command="/usr/local/bin/gpg  --no-verbose --export --armor %r"
set pgp_verify_key_command="/usr/local/bin/gpg  --verbose --batch  --fingerprint --check-sigs %r"
set pgp_list_pubring_command="/usr/local/bin/gpg  --no-verbose --batch --quiet   --with-colons --list-keys %r"
set pgp_list_secring_command="/usr/local/bin/gpg  --no-verbose --batch --quiet   --with-colons --list-secret-keys %r"
set pgp_good_sign="`gettext -d gnupg -s 'Good signature from "' | tr -d '"'`"

This is an example for on the mails I cant decrypt. My correspondent also
uses gpg to sign his emails.

-----BEGIN PGP MESSAGE-----
Charset: ISO-8859-1
Version: GnuPG v1.2.1 (GNU/Linux)

<Message>

-----END PGP MESSAGE-----

What else can I try in order to make it work ?

Bye
Stefan

 
 
 

Mutt and GPG

Post by Stefan Malte Schumach » Sat, 26 Jul 2003 02:09:54


Hi

I have found a solution for my problem - maybe someone else can profit from
it. Actually it was pretty simple I just had to add the Procmail-Recipt from
Doc/PGP-notes.txt to my .procmailrc and now everything works fine.

Bye
Stefan

 
 
 

1. Signing with GPG with Mutt ?

Recently, I have converted from using pine (security reasons) to mutt. I
have setup gpg.rc from the samples they gave, and have edited my .muttrc
file appropriately to use gpg. Anyways -- getting to the question --
Whenever I sign e-mail, the recipient receives it as an attachment other
than in the body. This is how it is in pine and looks identical for
Microsoft e-mail
clients:

Parts/attachments:
1 Shown 1 lines Text
2 238 bytes Application
----------------------------------------

<MESSAGE HERE>

[Part 2, Application/PGP-SIGNATURE 238bytes]
[Cannot display this part. Press "V" then "S" to save in a file]

I want it to look like:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

BODY OF MESSAGE

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (OpenBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE644JVv8Bofna59hYRA37PAJ42/SWRORWKeXS7GyQAF6utSDZEjACgv0TQ
iOyJnmyn/yVjQq/IyI08KFo=
=0O/t
-----END PGP SIGNATURE-----

In the recipients body instead of the above.

In mutt to mutt e-mail exchanges it looks like:

[-- PGP output follows (current time: Thu May 10 15:39:24 2001) --]
gpg: Warning: using insecure memory!
gpg: Signature made Mon Apr 23 05:12:04 2001 CDT using DSA key ID <KEY ID
HERE>
[-- End of PGP output --]

[-- The following data is signed --]

TEXT

[-- End of signed data --]

Anyone have any suggestions ? I my muttrc and gpg.rc files are at
http://cs.spirit-lake.k12.ia.us/~levans/muttrc
http://cs.spirit-lake.k12.ia.us/~levans/gpg.rc

Thanks !

Landon C. Evans

2. fs:palm Vx

3. mutt doesn't show me an existing gpg-entry

4. Font Emporium - IS A ZENTA CD

5. Mutt+gpg sending to Eudora+PGP7 problems

6. Epson Printheads

7. GPG/PGP mutt

8. literature

9. procmail, gpg and Mutt

10. mutt doesn't QP/de-QP multipart/encrypted GPG content

11. Help me understand Mutt/GPG/Outlook

12. mutt and PGP/GPG?

13. Choosing gpg key? and other gpg ?'s.