fetchmail-friends
[Top] [All Lists]

[fetchmail]Re: socket error

2005-07-10 11:05:59
Message: 11
Date: Sat, 9 Jul 2005 00:28:50 +0100
From: Rob MacGregor <rob(_dot_)macgregor(_at_)gmail(_dot_)com>
Reply-To: Rob MacGregor <rob(_dot_)macgregor(_at_)gmail(_dot_)com>
To: fetchmail <fetchmail-friends(_at_)lists(_dot_)ccil(_dot_)org>
Subject: Re: [fetchmail]socket error

On 08/07/05, Barsalou <barjunk(_at_)attglobal(_dot_)net> wrote:
Below is a strace from a recent transaction that was giving me a Query
status =3D 2.  Additonally, I wanted to ask, what happens if the mail tha=
t
I am receiving doesn't have a lone period?  It's true to say that a
message should end with a period on a line all by itself, right?

A trawl of the list archive would give you the answer to both.  Socket
errors usually indicate a connection problem.  If you'd provided the
output of "fetchmail -v -v" I might be able to tell you more.
=20
If it is true, what would happen if the end of the message came before
the period ever appeared?

Fetchmail would log an error.

This also probably means that my provider isn't doing a good job of
filtering out non compliant mail.


Rob, I'm going to take you up on your offer. Spamstop is there just to
report the error that might be returned from sendmail. It appears that
sendmail is not returning any error during the process.  Interestingly,
it takes exactly two minutes for the socket error to occur after it
starts retrieving the offending message.  If that helps any.

I appreciate the time you are spending on this...this problem has been
bothering me for some time.  

Although the probability that it is actually a fetchmail issue is very
low, I'm having a heck of a time getting to the real problem.

Thanks.

Here is the relevent fetchmailrc from fetchmail 6.2.5:

set logfile fetchmail.log
set no spambounce
server pop4.attglobal.net:
        proto pop3;
        user barjunk there password "*****" is barsalou here;
antispam 451 flush
mda "~/spamstop  -i -f %F %T"


Here is the fetchmail -v -v section that is relevant:

fetchmail: selecting or re-polling default folder
fetchmail: POP3> STAT
fetchmail: POP3< +OK 64 895574
fetchmail: POP3> LAST
fetchmail: POP3< +OK 0
fetchmail: 64 messages for barjunk at pop4.attglobal.net (895574
octets).
fetchmail: POP3> LIST 1
fetchmail: POP3< +OK 1 1189
fetchmail: POP3> TOP 1 99999999
fetchmail: POP3< +OK
fetchmail: reading message barjunk(_at_)postoffice(_dot_)prserv(_dot_)net:1 of 
64 (1189
octets)
fetchmail: About to rewrite From: "Trevor Michael"
<cuypdfordnkksm(_at_)msn(_dot_)com>
Rewritten version is From: "Trevor Michael" <cuypdfordnkksm(_at_)msn(_dot_)com>

fetchmail: About to rewrite To: barham2(_at_)attglobal(_dot_)net
Rewritten version is To: barham2(_at_)attglobal(_dot_)net

fetchmail: about to deliver with: ~/spamstop  -i -f
'cuypdfordnkksm(_at_)msn(_dot_)com' 'barsalou'
#***************************spamstop: Error returned - 0
fetchmail:  flushed
fetchmail: POP3> DELE 1
fetchmail: POP3< +OK
fetchmail: POP3> LIST 2
fetchmail: POP3< +OK 2 1361
fetchmail: POP3> TOP 2 99999999
fetchmail: POP3< +OK
fetchmail: reading message barjunk(_at_)postoffice(_dot_)prserv(_dot_)net:2 of 
64 (1361
octets)
fetchmail: About to rewrite From: "Francine Samuel"
<on(_dot_)spec(_at_)incamail(_dot_)com>
Rewritten version is From: "Francine Samuel" 
<on(_dot_)spec(_at_)incamail(_dot_)com>

fetchmail: About to rewrite To: valette(_at_)attglobal(_dot_)net,
beta(_at_)attglobal(_dot_)net, waliali(_at_)attglobal(_dot_)net, 
dhmoore(_at_)attglobal(_dot_)net,
gene_spence(_at_)attglobal(_dot_)net, david101(_at_)attglobal(_dot_)net, 
barjunk(_at_)attglobal(_dot_)net
Rewritten version is To: valette(_at_)attglobal(_dot_)net, 
beta(_at_)attglobal(_dot_)net,
waliali(_at_)attglobal(_dot_)net, dhmoore(_at_)attglobal(_dot_)net, 
gene_spence(_at_)attglobal(_dot_)net,
david101(_at_)attglobal(_dot_)net, barjunk(_at_)attglobal(_dot_)net

fetchmail: about to deliver with: ~/spamstop  -i -f
'on(_dot_)spec(_at_)incamail(_dot_)com' 'barsalou'
#******************spamstop: Error returned - 0
fetchmail:  flushed
fetchmail: POP3> DELE 2
fetchmail: socket error while fetching from pop4.attglobal.net
fetchmail: 6.2.5 querying pop4.attglobal.net (protocol POP3) at Sun 10
Jul 2005 10:00:04 AM AKDT: poll completed
fetchmail: Query status=2 (SOCKET)
fetchmail: 6.2.5 querying pop4.attglobal.net (protocol POP3) at Sun 10
Jul 2005 10:00:04 AM AKDT: poll started
fetchmail: POP3< +OK (popb) Maillennium POP3/UNIBOX #2
fetchmail: POP3> CAPA
fetchmail: POP3< +OK Capability list follows
fetchmail: POP3< EXPIRE NEVER
fetchmail: POP3< IMPLEMENTATION Maillennium V04.00c++ [27-Feb-02]
cpu_rs6000.os_fetchmail: POP3< aix.comp_ibm
fetchmail: POP3< LOGIN-DELAY 0
fetchmail: POP3< PIPELINING
fetchmail: POP3< RESP-CODES
fetchmail: POP3< TOP
fetchmail: POP3< UIDL
fetchmail: POP3< USER


Spamstop looks like this:
#!/bin/sh
/usr/sbin/sendmail $@
a=$?
echo "spamstop: Error returned - $a"
if [ $a = 65 ] ; then
  exit 0
fi
if [ $a = 64 ] ; then
  exit 0
fi
if [ $a = 451 ] ; then
  exit 0
fi

exit $a



--__--__--

_______________________________________________
Fetchmail-friends mailing list
Fetchmail-friends(_at_)lists(_dot_)ccil(_dot_)org
http://lists.ccil.org/cgi-bin/mailman/listinfo/fetchmail-friends


End of Fetchmail-friends Digest
-- 
mbox mbarsalou <barjunk(_at_)attglobal(_dot_)net>



<Prev in Thread] Current Thread [Next in Thread>