[Top][All Lists]

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

Re: No auto login to news

From: Richard Riley
Subject: Re: No auto login to news
Date: Mon, 24 Aug 2009 23:16:40 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Ted Zlatanov <> writes:

> On Fri, 21 Aug 2009 17:52:13 -0600 notbob@myvi.asdf wrote: 
> n> I've set up a new box and most things look ok, but I still can't get
> n> gnus to login to my nntp server without having to do it manually each
> n> time.  I got the server ok, my .authinfo file looks good, I've got my
> n> old customized .emacs file working.  I'm stumped.  Seems there's a
> n> variable somewhere I'm missing.  The one that grabs the info in the
> n> ~/.authinfo file and uses it.  Works ok on my other box, but not this
> n> one, despite same ver of linux and emacs.  I'm even letting my dribble
> n> file run amok and saving it.  What am I missing?
> n> Here's my .authinfo file:
> n> machine login notbob@pp.newsgroups.user password
> n> xxxxxxxx port 119 force yes  
> What version of Emacs and Gnus?  Do you have auth-source.el available?
> I'll assume you want this to work without setting nntp-authinfo-file.
> If you set that, it's only for nntp so it's less useful than the general
> auth-source solution which is available since Emacs 23.1.
> Can you set auth-source-debug to t and see what shows up in the
> *Messages* buffer?  There should at least be a 
>   (auth-source-do-debug
>    "auth-source-user-or-password: get %s for %s (%s)"
>    mode host protocol)
> log message in there.  If not, auth-source is not getting called.
> Thanks
> Ted

I have what might be a problem or a config error on my part using
.authinfo.gpg and IMAP.

my log after setting (setq auth-source-debug t) is

| imap: Connecting to
| imap: Opening SSL connection with `openssl s_client -quiet -ssl3 -connect 
| Waiting for response from
| imap: Authenticating to `' using `login'...
| imap: Plaintext authentication...
| Store password for this session? (y or n) 
| imap: Authenticating to `' using `login'...done

My IMAP gnus select code is :

|        gnus-select-method '(nnimap "mymail"
|                                  (nnimap-stream ssl)
|                                  (nnimap-address "")
|                                  (nnimap-expunge-on-close always)
|                                  (nnimap-nov-is-evil t)
|                                  (nnir-search-engine imap))


                                   (nnimap-authinfo-file "~/.authinfo.gpg")

it correctly launches my pinetry or uses the gpg-agent cache.

The nntp select methods work fine with auth and .authinfo.gpg with the
nttp-authinfo line removed e.g

| (add-to-list 'gnus-secondary-select-methods
|               '(nntp "motzarella"
|                      ;; (nntp-authinfo-file "~/.authinfo.gpg")
|                        (nntp-address "")
|                      (nntp-port-number 119)
|                      )

And finally the auth is setup using:

| (require 'auth-source)
| (require 'epa-file)
| (epa-file-enable)
| (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))))

is it a config error on my part?



reply via email to

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