[Top][All Lists]

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

gnus, gmail and 2 factor authentication not working

From: Jonathan Wheelhouse
Subject: gnus, gmail and 2 factor authentication not working
Date: Thu, 05 Jul 2012 13:34:38 +1000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)


I have successfully been accessing my gmail account via IMAP from GNUS.
Recently, however I enabled 2 factor authentication on my gmail account
after reading

With 2 factor authentication you can get gmail to generate an
application specific password.  So I did that for GNUS.  I entered this
password into ~/.imap-authinfo file.  Here are the relevant bits of the
.gnus and .imap-authinfo files.

;; .gnus file relevant bit
;; ... gmail via imap
(add-to-list 'gnus-secondary-select-methods '(nnimap "gmail"
                                                     (nnimap-server-port 993)
                                                     (nnimap-stream ssl)))
(setq imap-ssl-program "openssl s_client -quiet -ssl3 -connect %s:%p")
(setq imap-log t)

;; .imap-authinfo file.  <password> is replaced by the gmail generated password
machine login password <password> 
port 993

However, I cannot now access gmail via GNUS.  

The message I get is this:

Warning: Opening nnimap server on gmail...failed: NO (ALERT)
Application-specific password required:

Any ideas on how to fix this?


reply via email to

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