info-gnus-english
[Top][All Lists]
Advanced

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

Re: Password sending mail only once


From: Richard Riley
Subject: Re: Password sending mail only once
Date: Sun, 11 Oct 2009 08:12:18 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

The basics of the password caching are bits with "cache" in them below -
as with all systems (well, Linux ones..) the devil is in the details of
how they deal with things like gpg-agent. Unfortunately Linux distros
tend to do things differently but the "same" kind of ... I battled like
hell with gpg-agent because of the way apps pick up how to talk to
it. 

Bottom line : you need a caching agent. Google up "password cache
agent" with your distro name and throw in emacs too and ...

The mml2015 stuff really confused me a while back because documentation
was thin on the ground and I really didnt know whether to use epa or
whatever. It was kind of in a transition phase at the time.

I suspect if you post your emacs version someone out there will have a
set up for you.

regards

r.



Torben Knudsen <tk@es.aau.dk> writes:

> Richard Riley <rileyrgdev@gmail.com> writes:
>
> Thanks for the below advice.  I am a bit squared that it will take me
> some time to make the below work for me.  Isn't there a simpler
> solution?
>
>> Torben Knudsen <tk@es.aau.dk> writes:
>>
>>> Some time ago I was asked for a password when sending mail only the
>>> first time in a gnus session.  Now I am asked every time I send a
>>> mail.  
>>>
>>> How can I get back to only given the password once?  
>>>
>>> I prefer solutions with out storing password anywhere.  Given it once
>>> is what I prefer.
>>>
>>> I have found some info on the net but nothing I could handle with my
>>> limited skills.
>>
>> With emacs 23 I have the following set up:
>>
>> ,----
>> | ;; encryption stuff
>> | (require 'auth-source)
>> | (require 'epa-file)
>> | (setq epa-file-cache-passphrase-for-symmetric-encryption t) ;;VERY 
>> Important
>> | (if (file-exists-p "~/.authinfo.gpg")
>> |     (setq auth-sources '((:source "~/.authinfo.gpg" :host t :protocol t)))
>> |     (setq auth-sources '((:source "~/.authinfo" :host t :protocol t))))
>> | ;; no idea whats needed with mm2015 : the documentation is sparse
>> | (setq 
>> |       mml2015-encrypt-to-self t
>> |       mml2015-cache-passphrase t
>> |       mml2015-passphrase-cache-expiry 60
>> |       mml2015-verbose t)
>> `----
>>
>> And in my gnus-posting-style something like
>>
>> ,----
>> | (setq gnus-posting-styles `((".*"
>> |                        (name "Richard Riley")
>> |                        (from "Richard Riley <riley-r-g@gmail.com>")
>> |                        (eval(setq gnushush-user-agent-header (quote real)))
>> |                        (signature-file "~/.emacs.d/.sigs/rgr.sig")
>> |                        (eval (setq mml2015-signers '("b39d104a")))
>> |                        (organization "aich tea tea pea dicky riley dot 
>> net"))))
>> `----
>>
>> It's been a while since I went through to remove the wheat from the
>> chaff but the mml2025 (what!?) set are key for signing I think.
>>
>> For caching the password my setup uses gpg-agent. The only messy thing I
>> found was the need to export the required environment variables in order
>> that things like emacs knew which cache process to talk to. For that I
>> used 
>>
>> ,----
>> | keychain && . $HOME/.keychain/$HOSTNAME-sh-gpg > /dev/null 2>&1 
>> `----
>>
>> keychain takes care of using an existing agent or starting one if
>> necessary in .bash_env on my system. It might be unnecessary on a cleaner set
>> up. It caused quite a lot of frustration back when I got this
>> working. Hopefully enough to get you going,
>>
>> regards
>>
>> r.
>>

-- 
googletalk/jabber : rileyrgdev@googlemail.com


reply via email to

[Prev in Thread] Current Thread [Next in Thread]