LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-13-2022, 09:03 AM   #1
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Rep: Reputation: 54
Fetchmail randomly stopped working, now getting SSL error


I have a local web server that uses fetchmail to get mail from my web host so I can store my mail locally, it's always worked, and suddenly a few days ago, it just stopped. My web host says they did not make any changes to their server. This is what the log looks like:

Code:
fetchmail: 6.3.8 querying mail.example.ca (protocol POP3) at Tue 13 Dec 2022 09:58:22 AM EST: poll started
fetchmail: Trying to connect to 158.69.168.192/995...connected.
fetchmail: SSL connection failed.
fetchmail: socket error while fetching from user@example.com@mail.example.ca
This is what the fetchmailrc looks like:

Code:
poll mail.example.ca proto pop3 port 995
user 'user@example.com' there with password 'removed' is email_user here ssl

Anyone know why this would fail suddenly or how I can get more log info out of it to see what's going on?

I tried running it with -vvv or specifying a log with -L but I'm not getting any more details.


Also if I connect to port 110 without ssl, then it works. Obviously, this is a bad idea though.

Last edited by Red Squirrel; 12-13-2022 at 09:17 AM.
 
Old 12-13-2022, 03:23 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,767

Rep: Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765
Ask them to check if the SSL version or key standard changed, because it is the security portion of that connection that appears to be failing.

the most dangerous thing about accessing mail at 110 unencrypted is not that YOU do it, but that it could easily be spoofed to allow ANYONE to do it. Otherwise someone would have to be intercepting your packets to get the unencrypted data.

The provider should be willing to help (if they are any good), as this does become a security issue at this point.
 
Old 12-13-2022, 03:35 PM   #3
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Original Poster
Rep: Reputation: 54
Yeah I checked with them and they told me nothing changed. But I do wonder if the support people are just unaware of what types of upgrades are going on.

The fetchmail server is also very old so I wonder if there is some kind of root cert that expired, but without any adequate error/logging it's impossible to know why it's failing. Suppose I need to just look at upgrading this box.
 
Old 12-16-2022, 10:40 PM   #4
elgrandeperro
Member
 
Registered: Apr 2021
Posts: 415
Blog Entries: 2

Rep: Reputation: Disabled
I would use openssl client to debug it. If they have private CAs, you will need to reference them via the command line.

Here is an example:

http://billauer.co.il/blog/2018/01/f...penssl-nc-ssl/

At least you can see if it is a Cert problem. You would only need to get to connection, not the rest of the protocol because itis failing way before it is doing anything useful, like the SSL handshake.

Last edited by elgrandeperro; 12-16-2022 at 10:42 PM.
 
Old 12-18-2022, 02:14 PM   #5
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Original Poster
Rep: Reputation: 54
I get this:

Code:
CONNECTED(00000003)
5786:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake failure:s23_lib.c:188:
Is there a way to force more info with that command? I don't see anything in the man file such as -v etc or a way to increase debugging.

I am overly due to upgrade this server (one running Fetchmail), so I'm starting to think I may need to just do that. I'm starting to think the host disabled an old cipher or something.
 
Old 12-18-2022, 09:21 PM   #6
elgrandeperro
Member
 
Registered: Apr 2021
Posts: 415
Blog Entries: 2

Rep: Reputation: Disabled
Add -debug

It is not even getting to the certificate negotiation.

Last edited by elgrandeperro; 12-18-2022 at 09:22 PM.
 
Old 12-20-2022, 03:23 PM   #7
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Original Poster
Rep: Reputation: 54
I get this: (Redacted the hex dump in case it has any identifying info).

Code:
CONNECTED(00000003)
write to 0x246de70 [0x246f2d0] (145 bytes => 145 (0x91))
[hexdump]                                           `
read from 0x246de70 [0x2474830] (7 bytes => 0 (0x0))
24065:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake failure:s23_lib.c:188:
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] fetchmail won't fetch from gmail beginning today, possibly coincidental with fetchmail 6.4.1 RandomTroll Linux - Software 1 09-30-2019 02:51 PM
NFS Server randomly stopped working: Fedora 16. anon112 Linux - Server 1 02-18-2012 03:51 PM
Fetchmail delivers mail to /var/mail/fetchmail ilrenato Linux - Server 3 08-13-2011 05:06 AM
[SOLVED] BCM 4312 randomly stopped working? RedEyez Linux - Wireless Networking 1 11-12-2010 09:26 AM
Sound randomly stopped working- FC3 Yakolev Linux - Software 2 01-21-2005 03:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration