[mew-int 2710] Gmail: Creating an SSL/TLS connection...FAILED (cert verify failure)

David Lonie loniedavid at example.com
Sat Jul 25 23:17:59 JST 2009


Hi,

I've been interested in reading my gmail in emacs for a while (and
have attempted this many times), but this time I'm committed to making
it work! I've tried using gnus in the past, but someone on #emacs
recommended mew, and configuration has been much simpler.

However, I'm still running into a problem -- when I start mew, I'm
prompted to C-u Z to collect IMAP folders. I do this, and I get the
error: Creating an SSL/TLS connection...FAILED (cert verify failure)

Is this a mew configuration issue? Is it a stunnel problem? I'm not
very familiar with stunnel -- I'm on gentoo, and starting stunnel as a
service gives this error:

dl at example.com:~$ sudo /etc/init.d/stunnel start
 * Starting stunnel ...
2009.07.25 10:15:56 LOG7[10994:139798285924080]: Snagged 64 random
bytes from /home/dl/.rnd
2009.07.25 10:15:56 LOG7[10994:139798285924080]: Wrote 1024 new random
bytes to /home/dl/.rnd
2009.07.25 10:15:56 LOG7[10994:139798285924080]: RAND_status claims
sufficient entropy for the PRNG
2009.07.25 10:15:56 LOG7[10994:139798285924080]: PRNG seeded successfully
2009.07.25 10:15:56 LOG7[10994:139798285924080]: Certificate:
/etc/stunnel/stunnel.pem
2009.07.25 10:15:56 LOG7[10994:139798285924080]: Certificate loaded
2009.07.25 10:15:56 LOG7[10994:139798285924080]: Key file:
/etc/stunnel/stunnel.pem
2009.07.25 10:15:56 LOG7[10994:139798285924080]: Private key loaded
2009.07.25 10:15:56 LOG7[10994:139798285924080]: SSL context
initialized for service stunnel
inetd mode must define a remote host or an executable

My ~/.emacs:

(autoload 'mew "mew" nil t)
(autoload 'mew-send "mew" nil t)

;; Optional setup (Read Mail menu for Emacs 21):
(if (boundp 'read-mail-command)
    (setq read-mail-command 'mew))

;; Optional setup (e.g. C-xm for sending a message):
(autoload 'mew-user-agent-compose "mew" nil t)
(if (boundp 'mail-user-agent)
    (setq mail-user-agent 'mew-user-agent))
(if (fboundp 'define-mail-user-agent)
    (define-mail-user-agent
      'mew-user-agent
      'mew-user-agent-compose
      'mew-draft-send-message
      'mew-draft-kill
      'mew-send-hook))

(setq mew-use-cached-passwd t)

(setq mew-config-alist
      '(("default"
         ("name" . "David C. Lonie")
         ("user" . "loniedavid")
         ("mail-domain" . "gmail.com")
         ("imap-ssl" . t)
         ("imap-ssl-port" . "993")
         ("proto" . "%")
         ("prog-ssl" . "/usr/sbin/stunnel")
         ("imap-auth" . pass)
         ("imap-user" . "loniedavid")
         ("imap-server" . "imap.gmail.com")
         ("smtp-ssl" . t)
         ("smtp-ssl-port" . "465")
         ("smtp-user" . "loniedavid")
         ("smtp-server" . "smtp.gmail.com")
         ("smtp-auth-list" . ("PLAIN")))
        ))

Any ideas what I should try?

Thanks!

David Lonie


More information about the Mew-int mailing list