Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] fetchmail + hotmail: SSL error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
v1pEr
n00b
n00b


Joined: 20 Apr 2009
Posts: 63

PostPosted: Mon Jul 20, 2009 3:10 pm    Post subject: [SOLVED] fetchmail + hotmail: SSL error Reply with quote

I'm used to running fetchmail with gotmail, but as hotmail now finally supports pop3 I'd like to do it that way.

So I have this part in my fetchmailrc:

Code:
poll pop3.live.com
        with proto POP3 port 995
                user 'xxx@hotmail.com' there with password xxx' is 'v1per' here
                keep
                sslfingerprint 'D0:3C:4D:59:F6:95:37:59:EA:A9:5D:4C:CE:D3:2A:A1'
                sslcertpath /home/v1per/.certs
                sslproto ssl23
                ssl


But whenever I run fetchmail, I get this:

Code:
RoSe v1per # fetchmail -vvvv -N -d0 -f /etc/fetchmailrc
fetchmail: WARNING: Running as root is discouraged.
fetchmail: 6.3.9 querying pop3.live.com (protocol POP3) at Mon Jul 20 17:03:48 2009: poll started
fetchmail: Trying to connect to 65.55.172.253/995...connected.
fetchmail: SSL connection failed.
fetchmail: socket error while fetching from xxx@hotmail.com@pop3.live.com
fetchmail: 6.3.9 querying pop3.live.com (protocol POP3) at Mon Jul 20 17:03:49 2009: poll completed
fetchmail: Query status=2 (SOCKET)
fetchmail: Writing fetchids file.
fetchmail: normal termination, status 2
fetchmail: Writing fetchids file.


I searched high and low but there doesn't seem to be much documentation on how to get this running...


Last edited by v1pEr on Tue Jul 21, 2009 10:04 am; edited 1 time in total
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Mon Jul 20, 2009 5:21 pm    Post subject: Reply with quote

Can you try with a simpler fetchmailrc? Mine for gmail is like this
Code:
$ cat .fetchmailrc
poll pop.gmail.com
        proto POP3
        user 'myusername@gmail.com'
        pass 'supertopsecret'
        ssl

Works perfect every time, and when I used hotmail this worked as well. :wink:
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Mon Jul 20, 2009 10:22 pm    Post subject: Reply with quote

i would steer clear of adding a fingerprint, as the fella above me suggested

i dont use either, but am making a blind guess here - hotmail has 8 gazillion nodes, likely a different cert for each. If you're only allowing one specific cert, you'll get a conflict unless you connect to that one specific node that has the cert you've specified

again, this is coming from someone without a clue how fetchmail is intended to work, just a general pointer

as well there's no reason to specify an SSL method I don't think. What if hotmail supports TLSv1 at some point?
Back to top
View user's profile Send private message
v1pEr
n00b
n00b


Joined: 20 Apr 2009
Posts: 63

PostPosted: Tue Jul 21, 2009 10:04 am    Post subject: Reply with quote

Oh my god, I cannot believe it was that simple. It's working now, thank you a lot for helping me with a such a stupid and convenient solution.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Tue Jul 21, 2009 4:44 pm    Post subject: Reply with quote

Sure, no problem v1pEr 8)
Back to top
View user's profile Send private message
WackyDoo
n00b
n00b


Joined: 16 Mar 2004
Posts: 44
Location: Ottawa

PostPosted: Tue Jul 21, 2009 5:44 pm    Post subject: Reply with quote

Mike Hunt wrote:
Can you try with a simpler fetchmailrc? Mine for gmail is like this
Code:
$ cat .fetchmailrc
poll pop.gmail.com
        proto POP3
        user 'myusername@gmail.com'
        pass 'supertopsecret'
        ssl

Works perfect every time, and when I used hotmail this worked as well. :wink:


I would add the "sslcrtck" option to ensure that the server cert is signed by one of your trusted certs in /etc/ssl/certs. Running

Code:

openssl s_client -connect pop3.live.com:995 -CApath /etc/ssl/certs


shows that the server cert is signed by
Quote:
GTE CyberTrust Global Root
which should be one of your machines "trusted" cert authorities. Otherwise you are vulnerable to a man-in-the-middle attack.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum