From owner-freebsd-questions@FreeBSD.ORG Tue Mar 24 18:40:33 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8EA5C513 for ; Tue, 24 Mar 2015 18:40:33 +0000 (UTC) Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [212.27.42.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F6CB310 for ; Tue, 24 Mar 2015 18:40:32 +0000 (UTC) Received: from che78-3-82-246-30-233.fbx.proxad.net (unknown [82.246.30.233]) by smtp5-g21.free.fr (Postfix) with ESMTP id D02EAD480A6 for ; Tue, 24 Mar 2015 19:38:53 +0100 (CET) Received: by che78-3-82-246-30-233.fbx.proxad.net (Postfix, from userid 2000) id DA5552841D; Tue, 24 Mar 2015 19:40:23 +0100 (CET) Date: Tue, 24 Mar 2015 19:40:23 +0100 From: Harald Weis To: freebsd-questions@freebsd.org Subject: Re: getmail problem Message-ID: <20150324184023.GA1067@pollux.local.net> Mail-Followup-To: freebsd-questions@freebsd.org References: <20150313160659.GA4425@pollux.local.net> <20150313140227.63f60ec1@lapsdeb> <20150317121629.GA1077@pollux.local.net> <20150317194302.53b8dea5@lapsdeb> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150317194302.53b8dea5@lapsdeb> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2015 18:40:33 -0000 On Tue, Mar 17, 2015 at 07:43:02PM -0400, Stephen R Guglielmo wrote: > On Tue, 17 Mar 2015 13:16:29 +0100 > Harald Weis wrote: > > On Fri, Mar 13, 2015 at 02:02:27PM -0400, Stephen R Guglielmo wrote: > > > On Fri, 13 Mar 2015 17:06:59 +0100 > > > Harald Weis wrote: > > > > What could be the cause for the following error message: > > > > > > > > SimpleIMAPSSLRetriever:hawei@imap.free.fr:993: > > > > getmail-hawei-rc: operation error (command: LOGIN => socket > > > > error: EOF) > > > > > > > > > It would be my first instinct to blame the remote server, but I > > > don't want to jump to conclusions too quickly. You could run > > > tcpdump (or wireshark if you want a GUI) to get more of an idea of > > > what's causing it. I have used getmail with Gmail in the past > > > through a cronjob and it's worked quite well. I assume you're > > > using the latest version of getmail? > > > > getmail version 4.46.0 seems alright. > > > > Many thanks for your quick response. > > It took me some minutes to read the manpage... > > > > tcpdump -X -r tcpdump.20150315 is a bit longer (6148 bytes). > > But I'm afraid you need to see the data as well. > > Also, I don't know whether it is safe to send the file on-list. > > So whether you like it or not :-) I'll send you the file. > I looked at the tcpdump file you sent me off-list. If you want to read > it yourself, you can install Wireshark and open the file. In fact, tcpdump is alright for me, it allows to read everything. > I'm not an expert, but it looks to me like your client (the 192.168 IP) > is sending a FIN packet (third line from the bottom). This is a request > to close the connection[1]. The remote system then sends a RST to reset > the connection. No, the first FIN packet (sixth line from the bottom) is sent by imap.free.fr. I just checked that the first FIN packet was always sent by the server. > So it seems to be your end terminating the connection. It's quite > possible that it's something other than getmail itself (your local > router?) that is doing this for some reason. I'm not really sure where > to go from here; maybe somebody else can chime in to help. I still don't know whether it's safe to send the whole file to the list. > [1] > https://en.wikipedia.org/wiki/Transmission_Control_Protocol#Connection_termination -- Harald Weis