[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Mutt and GPG - claims ALL signatures can't be verified



I'm using mutt for about a month already. Almost all problems already solved, I
successfully moved to IMAP. It's time to get GPG signing to work.

As you probably noticed, all my messages are signed. But when I open any--even
my own!--message, mutt tells me that PGP signature can NOT be verified. Which
is more interesting, I did not have that problem before I imported my secure
key (it was stored on desktop; now I'm mostly use netbook). I mean, I had PGP
set but I didn't have secure key so I did not sign my messages, just verify
other's.

I did some little research on the web. It seems that problem is pretty popular,
and most common answer is to set pgp_good_sign in muttrc. As far as I copied my
GPG config from Mutt GnuPG HowTo[1], I already had that option set. I also
tried to set it to the following:

    set pgp_good_sign="`gettext -d gnupg -s 'Good signature from "' | tr -d '"'`"

which, as I could understand, is just a trick to add sender's name to GPG's
verification message, but it didn't solve my problem. I also tried to not set
this option, with no luck. Does anyone have any advice?

My .muttrc attached.


    1. http://codesorcery.net/old/mutt/mutt-gnupg-howto

-- 
Regards,
Alexander Batischev

1024D/69093C81
F870 A381 B5F5 D2A1 1B35  4D63 A1A7 1C77 6909 3C81
set sort = threads
set edit_headers # edit headers when replying
set include # always insert quote of original message in reply
set status_on_top # status line should be on top
set pager_stop = yes # do NOT move to next message when you're at the end of message and press Space
set signature = "~/.mutt/signature"
set editor = "vim -c 'set spell spelllang=en,ru,uk'"

# headers
ignore *
unignore  Date From To CC List-ID Subject Reply-to
hdr_order Date From To CC List-ID Subject Reply-to

set from = "eual.jp@gmail.com"
set realname = "Alexander Batischev"

set imap_user = "eual.jp@gmail.com"
#set imap_pass = ""
set imap_keepalive = 90

set smtp_url  = "smtp://eual.jp@smtp.gmail.com:587/"
#set smtp_pass = ""

set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
#set record="imaps://imap.gmail.com/[Gmail]/Sent Mail"
set record=""
set postponed="+[Gmail]/Drafts"

set header_cache=~/.mutt/cache/headers
set message_cachedir=~/.mutt/cache/bodies
#set certificate_file=~/.mutt/certificates

mailboxes "=INBOX"
mailboxes "=[Gmail]/All Mail"
mailboxes "=[Gmail]/Sent Mail"
mailboxes "=[Gmail]/Drafts"
mailboxes "=[Gmail]/Bin"
mailboxes "=[Gmail]/Spam"

mailboxes "=debian-announce"
mailboxes "=debian-laptop"
mailboxes "=debian-news"
mailboxes "=debian-user"
mailboxes "=The Geek Stuff"

# fetch mail by pressing G
macro index G "<imap-fetch-mail>"
macro pager G "<imap-fetch-mail>"

# delete message to Bin by presing B
macro index B "<save-message>=[Gmail]/Bin<enter>y"
macro pager B "i<save-message>=[Gmail]/Bin<enter>y<enter>"

# Use abook with Mutt
# Q to search
# a to add sender to abook
set query_command="abook --mutt-query '%s'"
macro index,pager a "|abook --add-email\n" 'add sender to abook'

# Dealing with GnuPG
# http://codesorcery.net/old/mutt/mutt-gnupg-howto
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="pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust --encrypt-to 0x69093C81 -- -r %r -- %f"
set pgp_encrypt_sign_command="pgpewrap gpg --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust --encrypt-to 0x69093C81 -- -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=0x69093C81
set pgp_replyencrypt=yes
set pgp_timeout=1800
#set pgp_good_sign="^gpg: Good signature from"
#set pgp_good_sign="`gettext -d gnupg -s 'Good signature from "' | tr -d '"'`"
set crypt_verify_sig=yes


set mail_check = 300 # check for email every 5 minutes (300 seconds)
set timeout = 900 # check for mail in current mailbox every 15 minutes (900 secs)

Attachment: signature.asc
Description: Digital signature


Reply to: