fetchmail-friends
[Top] [All Lists]

[fetchmail] Socket error: slowdown and timeout when retrieving from IMAP4rev1

2003-04-16 03:06:06
It's a GroupWise server. Wait, keep reading.
"Large" messages are not retrieved successfully, slowing to a crawl, and 
finally a timeout, in the middle. The unacceptable size is somewhere less than 
39K.

This is a Linux 2.4.18-3 kernel (redhat 7.3). I've included .fetchmailrc, 
fetchmail -v -v, and fetchmail -V below. You can see that it successfully skips 
a larger message due to 'limit 70000' but dies on a smaller.

I set net.ipv4.tcp_timestamps to 0 because of the FAQ recommendation at:
http://www.catb.org/~esr/fetchmail/fetchmail-FAQ.html#R8
although it never finishes fetching the message.

Another relevant piece of information may include the fact that I moved my 
computer yesterday. 

(It was working before that, but I'm looking for a long term solution, rather 
than the far too glib, and yet, not wholly unexpected, "you moved your 
computer!")

.fetchmailrc
------------
set postmaster "xxx"
set no bouncemail
set properties ""
poll xxx aka xxx with proto IMAP and timeout 120
      user 'xxx' there with password 'xxx' is 'xxx' here
      options fetchall, limit 70000, mimedecode

fetchmail -v -v
---------------
fetchmail: 6.1.0 querying xxx (protocol IMAP) at Wed, 16 Apr 2003 02:20:48 
-0700 (PDT): poll started
fetchmail: IMAP< * OK GroupWise IMAP4rev1 Server Ready
fetchmail: IMAP> A0001 CAPABILITY
fetchmail: IMAP< * CAPABILITY IMAP4rev1
fetchmail: IMAP< A0001 OK CAPABILITY completed
fetchmail: Protocol identified as IMAP4 rev 1
fetchmail: IMAP> A0002 LOGIN "xxx" ""
fetchmail: IMAP< A0002 OK LOGIN completed
fetchmail: selecting or re-polling default folder
fetchmail: IMAP> A0003 SELECT "INBOX"
fetchmail: IMAP< * 16 EXISTS
fetchmail: IMAP< * OK [UNSEEN 1]
fetchmail: IMAP< * OK [UIDVALIDITY 3]
fetchmail: IMAP< * FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
fetchmail: IMAP< * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Draft 
\Seen)]
fetchmail: IMAP< A0003 OK SELECT completed
fetchmail: 16 messages waiting after first poll
fetchmail: IMAP> A0004 EXPUNGE
fetchmail: IMAP< A0004 OK EXPUNGE completed
fetchmail: 16 messages waiting after expunge
16 messages for xxx at xxx.
fetchmail: IMAP> A0005 FETCH 1:16 RFC822.SIZE
fetchmail: IMAP< * 1 FETCH (RFC822.SIZE 1083495)
fetchmail: IMAP< * 2 FETCH (RFC822.SIZE 40552)
fetchmail: IMAP< * 3 FETCH (RFC822.SIZE 1795)
fetchmail: IMAP< * 4 FETCH (RFC822.SIZE 2054)
fetchmail: IMAP< * 5 FETCH (RFC822.SIZE 2086)
fetchmail: IMAP< * 6 FETCH (RFC822.SIZE 1998)
fetchmail: IMAP< * 7 FETCH (RFC822.SIZE 5248)
fetchmail: IMAP< * 8 FETCH (RFC822.SIZE 10454)
fetchmail: IMAP< * 9 FETCH (RFC822.SIZE 11349)
fetchmail: IMAP< * 10 FETCH (RFC822.SIZE 890)
fetchmail: IMAP< * 11 FETCH (RFC822.SIZE 1811)
fetchmail: IMAP< * 12 FETCH (RFC822.SIZE 34417)
fetchmail: IMAP< * 13 FETCH (RFC822.SIZE 1096484)
fetchmail: IMAP< * 14 FETCH (RFC822.SIZE 4598755)
fetchmail: IMAP< * 15 FETCH (RFC822.SIZE 26867)
fetchmail: IMAP< * 16 FETCH (RFC822.SIZE 1315904)
fetchmail: IMAP< A0005 OK FETCH completed
skipping message xxx(_at_)xxx:1 (1083495 octets) (oversized) not flushed
fetchmail: IMAP> A0006 FETCH 2 RFC822.HEADER
fetchmail: IMAP< * 2 FETCH (RFC822.HEADER {479}
reading message xxx(_at_)xxx:2 of 16 (479 header octets)
About to rewrite From: xxx
Rewritten version is From: xxx

About to rewrite To: xxx
Rewritten version is To: xxx

About to rewrite CC: xxx
Rewritten version is CC: xxx

fetchmail: SMTP< 220 xxx ESMTP Sendmail 8.11.6/8.11.6; Wed, 16 Apr 2003 
02:20:48 -0700
fetchmail: SMTP> EHLO localhost
fetchmail: SMTP< 250-xxx Hello localhost [127.0.0.1], pleased to meet you
fetchmail: SMTP< 250-ENHANCEDSTATUSCODES
fetchmail: SMTP< 250-8BITMIME
fetchmail: SMTP< 250-SIZE
fetchmail: SMTP< 250-DSN
fetchmail: SMTP< 250-ONEX
fetchmail: SMTP< 250-ETRN
fetchmail: SMTP< 250-XUSR
fetchmail: SMTP< 250 HELP
fetchmail: forwarding to localhost
fetchmail: SMTP> MAIL FROM:<xxx> SIZE=40552
fetchmail: SMTP< 250 2.1.0 <xxx>... Sender ok
fetchmail: SMTP> RCPT TO:<xxx>
fetchmail: SMTP< 250 2.1.5 <xxx>... Recipient ok
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 Enter mail, end with "." on a line by itself
#
fetchmail: IMAP< )
fetchmail: IMAP< A0006 OK FETCH completed
fetchmail: IMAP> A0007 FETCH 2 BODY.PEEK[TEXT]
fetchmail: IMAP< * 2 FETCH (BODY[TEXT]
 (40073 body octets) 
**********************************.*****************************.*************.**************.**************.**************.**************.**************.*************.**************.**************.**************.**************.**************.*************.**************.**************.**************.**************.**************.**************.*************.**************.**************.********fetchmail:
 socket error while fetching from xxx.xxx.com
fetchmail: 6.1.0 querying xxx.xxx.com (protocol IMAP) at Wed, 16 Apr 2003 
02:47:49 -0700 (PDT): poll completed
fetchmail: Query status=2 (SOCKET)

(etc.)

fetchmail: SMTP> QUIT
fetchmail: SMTP< 221 2.0.0 xxx closing connection
fetchmail: Deleting fetchids file.
fetchmail: normal termination, status 0
fetchmail: Deleting fetchids file.


fetchmail -V
------------
This is fetchmail release 6.1.0+INET6
Fallback MDA: (none)
Linux xxx 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686 unknown
Taking options from command line and /home/xxx/.fetchmailrc
Idfile is /home/xxx/.fetchids
Fetchmail will forward misaddressed multidrop messages to xxx.
Fetchmail will direct error mail to the postmaster.
Options for retrieving from xxx(_at_)xxx:
  True name of server is xxx.
  Protocol is IMAP.
  All available authentication methods will be tried.
  Server nonresponse timeout is 120 seconds.
  Default mailbox selected.
  All messages will be retrieved (--all on).
  Fetched messages will not be kept on the server (--keep off).
  Old messages will not be flushed before message retrieval (--flush off).
  Rewrite of server-local addresses is enabled (--norewrite off).
  Carriage-return stripping is disabled (stripcr off).
  Carriage-return forcing is disabled (forcecr off).
  Interpretation of Content-Transfer-Encoding is enabled (pass8bits off).
  MIME decoding is enabled (mimedecode on).
  Idle after poll is disabled (idle off).
  Nonempty Status lines will be kept (dropstatus off)
  Delivered-To lines will be kept (dropdelivered off)
  Message size limit is 70000 octets (--limit 70000).
  Messages will be SMTP-forwarded to: localhost (default)
  Single-drop mode: 1 local name(s) recognized.
  No UIDs saved from this host.

---
Starsntrees


<Prev in Thread] Current Thread [Next in Thread>
  • [fetchmail] Socket error: slowdown and timeout when retrieving from IMAP4rev1, starsntrees <=