LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-04-2005, 04:17 AM   #1
steve1401
Member
 
Registered: May 2003
Location: UK
Distribution: Debian
Posts: 73

Rep: Reputation: 15
Kmail doesn't allow gpg encrypted emails


Hi

I am posting this to the Debian forum because as far as I can ascertain it is a Debain problem - tell me if I'm wrong...

The problem;
When using KMail, I can't set it to use my gpg (or pgp) encryption. I am using Debian unstable, KDE 3.3 and KMail 1.7.2.

I have KGpg installed and it works fine for creating and importing keys. I have tried the Security > Crypto area of the setup in KMail and it says it can see OpenPGP (gpg) but it doesn't allow me to configure it. Below it in the box is the S/MIME setting but it is greyed out and says '(failed)'

I have libgpgme11 installed but I can't get an install of gpg-agent from anywhere. Apparently gpg-agent will not be commited to the Debain repositories (reading from Debain discussion forums), hence the reason for me posting here.

Any help or advise appreciated

Steve
 
Old 02-04-2005, 11:55 AM   #2
Ironi
LQ Newbie
 
Registered: May 2003
Location: Lansing, MI
Distribution: Debian
Posts: 27

Rep: Reputation: 15
This worked for me:

Code:
aptitude purge newpg gpgsm cryptplug cryptplug-dev libgpgme6 libgpgme-dev libksba0

echo "deb http://smurf.noris.de/code/debian/ experimental smurf" >>/etc/apt/sources.list

apt-get update && apt-get install gnupg2 gnupg-agent dirmngr kleopatra gpgsm
(from http://lists.debian.org/debian-kde/2.../msg00102.html with the addition of kleopatra and gpgsm)
 
Old 02-07-2005, 06:11 AM   #3
steve1401
Member
 
Registered: May 2003
Location: UK
Distribution: Debian
Posts: 73

Original Poster
Rep: Reputation: 15
Thanks...

This has got me a little further on, I have more options open to me in the crypto area of KMail setup, but I still have a problem with decrypting emails.

If I send an encrypted message to myself, all seems ok - it asks me which key to use and the email sends successfuly.

If I open the email in Evolution, I get prompted for a passphrase and then it allows me to view the mail. However, in KMial, it doesn't prompt for a password and I get the following message in the body of the email;

Encrypted message (decryption not possible)
Reason: Crypto plug-in "openpgp" could not decrypt the data.
Error: Bad passphrase

Any ideas?

Steve
 
Old 02-07-2005, 01:10 PM   #4
Ironi
LQ Newbie
 
Registered: May 2003
Location: Lansing, MI
Distribution: Debian
Posts: 27

Rep: Reputation: 15
Make sure that you set the key to use for each identity.

Configure KMail -> Identities -> Modify -> Cryptography
 
Old 02-07-2005, 01:16 PM   #5
steve1401
Member
 
Registered: May 2003
Location: UK
Distribution: Debian
Posts: 73

Original Poster
Rep: Reputation: 15
I've done that, but it still doesn't allow me to view the email, whereas Evolution asks for a passphrase and then lets me view it. It's as though there is something stopping the prompt for the passphrase??

Steve
 
Old 02-07-2005, 05:07 PM   #6
steve1401
Member
 
Registered: May 2003
Location: UK
Distribution: Debian
Posts: 73

Original Poster
Rep: Reputation: 15
sorted :-)

I have sussed this thanks to the KDE mailing list helping out.

Follow this guide;
http://216.239.37.104/translate_c?hl...decrypt_verify()%2Breturned%2Bthis%2Berror%2Bcode:%2B%2B117440523%26hl%3Den%26lr%3D%26client%3Dfirefox%26rls%3Dorg .mozilla:en-US:unofficial

Basically, you need to add eval "$(gpg-agent --daemon)" to ~/.kde/env/gpgagent.sh (create the file/directory if required). KDE will then pick up these settings when it starts and (for ma at least) it will allow Kmail to use the agent and decrypt the message.

Steve
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gpg encrypted files -- recovery/decryption? 187807 Slackware 2 03-24-2005 07:04 PM
Viewing emails in KMail aikidoist72 Linux - Software 2 03-10-2005 08:33 PM
KMail and PGP/GPG not working - doesn't ask for passphrase steve1401 Linux - General 2 02-08-2005 06:42 AM
gpg: figuring who something was encrypted for prell Linux - Software 0 01-05-2005 09:15 AM
kmail and GPG jayakrishnan Linux - Security 1 07-10-2003 06:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration