fetchmail-friends
[Top] [All Lists]

Re: [fetchmail]Socket Error on small e-mails

2004-05-28 04:12:42
On Fri, May 28, 2004 at 06:58:50AM -0400, Jeremy Fried wrote:
Does it work if you pull down *without* SSL?

No -> then we can use tcpdump to try and see what's happening.
Yes -> hmm, difficult to debug. Need to stick extra debugging printf's 
in
the code.

No, I can't get my mail any other way.  I'm forced to use SSL.  How can 
we use tcpdump to see what's going on?

You look at the packet contents to work out which end is violating the
protocol or which end has decided to drop the connection prematurely.

This is no use with SSL though, where the whole point of SSL is that the
traffic is encrypted, so you *can't* see what's going on.

However, in the first instance I'd try driving it manually:

   $ script pop3.log
   $ openssl s_client -connect x.x.x.x:995
   user USERNAME
   pass PASSWORD
   stat
   retr 1
   ... etc
   quit
   $ exit

where x.x.x.x is the name or IP of the POP3 server. What do you see when you
try to 'retr' one of these messages which causes the breakage? If the server
is dropping the connection, or if the message does not end \r\n.\r\n, then
complain to the server vendor.

After that, you'll probably have to start putting printf's in the fetchmail
code.

Brian.