FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux General Discussion

 
 
LinkBack Thread Tools
 
Old 08-02-2012, 03:40 PM
Aurko Roy
 
Default SSL I/O error with gmail

Hello all,
I am trying to get my gmail to work with mutt but keep
getting this error: "SSL failed: I/O error". I then tried to connect
to imap.gmail.com with openssl ($openssl s_client -connect
imap.mail.me.com:993 and also $openssl s_client -connect
imap.mail.me.com:993 -CApath /etc/ssl/certs/)
both of which give the following:

CONNECTED(00000003)
140098731194024:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake
failure:s23_lib.c:177:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 228 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
---

This seems to be a peculiar problem only with gmail as I can
successfully connect to icloud's imap server (imap.mail.me.com)
without any problems. Does anybody have a clue what could be the
problem?

TIA

--
Aurko Roy
GPG key: 0x20C5BC31
Fingerprint:76B4 9677 15BE 731D 1949 85BA 2A31 B442 20C5 BC31
 
Old 08-12-2012, 07:26 PM
jsteel
 
Default SSL I/O error with gmail

On 2 August 2012 16:40, Aurko Roy <roy.aurko@gmail.com> wrote:
> I am trying to get my gmail to work with mutt but keep
> getting this error: "SSL failed: I/O error".

> Does anybody have a clue what could be the
> problem?

What does your muttrc look like? This works for me:

set imap_user=your-username
set imap_pass=your-password
set folder=imaps://imap.gmail.com/
set spoolfile = +INBOX
mailboxes = +INBOX
set header_cache = ~/.mutt/hcache
set postponed = +[Gmail]/Drafts
unset imap_passive
set imap_keepalive = 300
set mail_check = 120
set sort=threads

jsteel
 
Old 08-12-2012, 07:48 PM
Arno Gaboury
 
Default SSL I/O error with gmail

On 12/08/12||20:26, jsteel wrote:
> On 2 August 2012 16:40, Aurko Roy <roy.aurko@gmail.com> wrote:
> > I am trying to get my gmail to work with mutt but keep
> > getting this error: "SSL failed: I/O error".
>
> > Does anybody have a clue what could be the
> > problem?
>
> What does your muttrc look like? This works for me:
>
> set imap_user=your-username
> set imap_pass=your-password
> set folder=imaps://imap.gmail.com/
> set spoolfile = +INBOX
> mailboxes = +INBOX
> set header_cache = ~/.mutt/hcache
> set postponed = +[Gmail]/Drafts
> unset imap_passive
> set imap_keepalive = 300
> set mail_check = 120
> set sort=threads
>
> jsteel
Are you sure to use the correct certificate? Gmail ask for a specific
certificate to allow connection, and this should be specified in one of
your config file with the <cert_fingerprint> variable.
 
Old 08-12-2012, 07:51 PM
Aurko Roy
 
Default SSL I/O error with gmail

On Mon, Aug 13, 2012 at 12:56 AM, jsteel <mail@jsteel.org> wrote:

> On 2 August 2012 16:40, Aurko Roy <roy.aurko@gmail.com> wrote:
> > I am trying to get my gmail to work with mutt but keep
> > getting this error: "SSL failed: I/O error".
>
> > Does anybody have a clue what could be the
> > problem?
>
> What does your muttrc look like? This works for me:
>
> set imap_user=your-username
> set imap_pass=your-password
> set folder=imaps://imap.gmail.com/
> set spoolfile = +INBOX
> mailboxes = +INBOX
> set header_cache = ~/.mutt/hcache
> set postponed = +[Gmail]/Drafts
> unset imap_passive
> set imap_keepalive = 300
> set mail_check = 120
> set sort=threads
>
> jsteel
>

My muttrc has the following lines for my gmail:

account-hook 'imaps://roy.aurko@imap.gmail.com/' "
set imap_user="roy.aurko@gmail.com" imap_pass=$my_gpass "

set folder="imaps://roy.aurko@imap.gmail.com"
mailboxes =INBOX =[Gmail]/Drafts =[Gmail]/'Sent Mail' =[Gmail]/Spam
folder-hook 'imaps://roy.aurko@imap.gmail.com:993' "
set folder=imaps://roy.aurko@imap.gmail.com/
postponed=+[Gmail]/Drafts
record=+[Gmail]/'Sent Mail'
smtp_url=smtps://smtp.gmail.com:587
smtp_pass=$my_gpass
from='aurko <roy.aurko@gmail.com> '
set ssl_force_tls = yes
realname='Aurko Roy' "

I tried with your config, but I get the same error. I doubt this is a mutt
issue, since the openssl handshake is failing and mutt cannot connect to
imap without it. On a side note I tried using gnutls+emacs for sending mail
from my gmail account and that works fine. So I'm wondering if mutt can be
set to use gnutls instead of openssl?

--
Aurko Roy
GPG key: 0x20C5BC31
Fingerprint:76B4 9677 15BE 731D 1949 85BA 2A31 B442 20C5 BC31
 
Old 08-12-2012, 07:58 PM
Aurko Roy
 
Default SSL I/O error with gmail

On Mon, Aug 13, 2012 at 1:18 AM, Arno Gaboury <arnaud.gaboury@gmail.com>wrote:

> On 12/08/12||20:26, jsteel wrote:
> > On 2 August 2012 16:40, Aurko Roy <roy.aurko@gmail.com> wrote:
> > > I am trying to get my gmail to work with mutt but keep
> > > getting this error: "SSL failed: I/O error".
> >
> > > Does anybody have a clue what could be the
> > > problem?
> >
> > What does your muttrc look like? This works for me:
> >
> > set imap_user=your-username
> > set imap_pass=your-password
> > set folder=imaps://imap.gmail.com/
> > set spoolfile = +INBOX
> > mailboxes = +INBOX
> > set header_cache = ~/.mutt/hcache
> > set postponed = +[Gmail]/Drafts
> > unset imap_passive
> > set imap_keepalive = 300
> > set mail_check = 120
> > set sort=threads
> >
> > jsteel
> Are you sure to use the correct certificate? Gmail ask for a specific
> certificate to allow connection, and this should be specified in one of
> your config file with the <cert_fingerprint> variable.
>

I have the Thawte's certificates (Thawte_Premium_Server_CA.pem,

Thawte_Server_CA.pem) in my /etc/ssl/certs/. Do I need
some other certificates to connect? I am not aware of the
<cert_fingerprint> variable in the config file. Could you elaborate more on
that?

Thanks.

--
Aurko Roy
GPG key: 0x20C5BC31
Fingerprint:76B4 9677 15BE 731D 1949 85BA 2A31 B442 20C5 BC31
 
Old 08-12-2012, 08:55 PM
Arno Gaboury
 
Default SSL I/O error with gmail

On 13/08/12||01:28, Aurko Roy wrote:
> On Mon, Aug 13, 2012 at 1:18 AM, Arno Gaboury
> <[1]arnaud.gaboury@gmail.com> wrote:
>
> On 12/08/12||20:26, jsteel wrote:
> > On 2 August 2012 16:40, Aurko Roy <[2]roy.aurko@gmail.com> wrote:
> > > I am trying to get my gmail to work with mutt but keep
> > > getting this error: "SSL failed: I/O error".
> >
> > > Does anybody have a clue what could be the
> > > problem?
> >
> > What does your muttrc look like? This works for me:
> >
> > set imap_user=your-username
> > set imap_pass=your-password
> > set folder=imaps://[3]imap.gmail.com/
> > set spoolfile = +INBOX
> > mailboxes = +INBOX
> > set header_cache = ~/.mutt/hcache
> > set postponed = +[Gmail]/Drafts
> > unset imap_passive
> > set imap_keepalive = 300
> > set mail_check = 120
> > set sort=threads
> >
> > jsteel
>
> Are you sure to use the correct certificate? Gmail ask for a
> specific
> certificate to allow connection, and this should be specified in one
> of
> your config file with the <cert_fingerprint> variable.
>
> I have the Thawte's certificates (Thawte_Premium_Server_CA.pem,
>
> Thawte_Server_CA.pem) in my /etc/ssl/certs/.
> Do I need some other certificates to connect? I am not aware of the
> <cert_fingerprint> variable in the config file. Could you elaborate
> more on that?
>
> Thanks.
> --
> Aurko Roy
> GPG key: 0x20C5BC31
> Fingerprint:76B4 9677 15BE 731D 1949 85BA 2A31 B442 20C5 BC31
>
> References
>
> 1. mailto:arnaud.gaboury@gmail.com
> 2. mailto:roy.aurko@gmail.com
> 3. http://imap.gmail.com/

I use offlineimap to fetch my mails from the gmail account. In its
~/offlineimaprc, I need to set this variable:
cert_fingerprint=<here is your Thawte_Server fingerprint>. Not sure this
is needed if you use Mutt IMAP built-in facilities.
 

Thread Tools




All times are GMT. The time now is 03:35 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org