[fetchmail]Fetchmail stops - incorrect header line found while scanning headers

Dirk Poper dirk@poper.de
Tue, 13 Dec 2005 00:02:18 +0100


This is a multi-part message in MIME format.

--ALTERNATIVE-KMS-272866734-24464-delim
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="us-ascii"

Hi fetchmail-friends.

I am a fetchmail newbie. 
It is mostly working fine. MTA is postfix with amavis (spamassasi=
n).

I use Version 6.2.3+POP2+RPA+NTLM+SDPS+SSL+OPIE+NLS
on Linux suse-pound 2.4.21-297-default

I found some informations in the web regarding my problem. But th=
ere was only one solution and that didn't work. I tried many diff=
erent options.


Sometimes fetchmails fetches mails with a incorrect header / mess=
age delimiter. Mostly spam mails with an attachment. But fetchmai=
l tries to fetch the mail every poll cycle and so very cycle i wi=
ll get the same mail in my inbox (only Headers and subject - with=
out the attachment)
This error accours until i delete the mail manualy on the POP3 se=
rver using telnet.

Can somebody help me?

Best regards
Dirk

/root/.fetchmailrc looks:

set logfile "/var/log/fetchmail.log"
set postmaster "root"
set no bouncemail
set no spambounce
set showdots
set properties ""
set daemon 60

poll 'yyy.xxx.zzz.de' with proto POP3 and options no dns tracepol=
ls
user 'abcde' there with password 'gfhijk' is 'meyer@localhost.123=
45.6789.de' here options no keep;

Logfile:

fetchmail: POP3< +OK message 1 (77373 octets)
fetchmail: reading message xxx@yyy.de:1 of 6 (77373 octets)
fetchmail: About to rewrite Return-Path: <^M">Postmaster@Ebay.com=
>^M Rewritten version is Return-Path: <^M">Postmaster@Ebay.com>^M=

fetchmail: About to rewrite From: Postmaster@Ebay.com^M Rewritten=
 version is From: Postmaster@Ebay.com^M
fetchmail: About to rewrite To: x_mail-list@poper.de^M Rewritten=20=
version is To: x_mail-list@poper.de^M
fetchmail: incorrect header line found while scanning headers
fetchmail: SMTP< 220 suse-pound.poper.ipactiv.de ESMTP Postfix
fetchmail: SMTP> EHLO localhost
fetchmail: SMTP< 250-suse-pound.poper.ipactiv.de
fetchmail: SMTP< 250-PIPELINING
fetchmail: SMTP< 250-SIZE 10240000
fetchmail: SMTP< 250-VRFY
fetchmail: SMTP< 250-ETRN
fetchmail: SMTP< 250-XVERP
fetchmail: SMTP< 250 8BITMIME
fetchmail: forwarding to localhost
fetchmail: SMTP> MAIL FROM:<Postmaster@Ebay.com> BODY=3D7BIT SIZE=
=3D77373
fetchmail: SMTP< 250 Ok
fetchmail: SMTP> RCPT TO:<yyyy@localhost.yyyyy>
fetchmail: SMTP< 250 Ok
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 End data with <CR><LF>.<CR><LF>
fetchmail: message delimiter found while scanning headers
fetchmail: message xxx@yyyyv.de:1 was not the expected length (67=
6 actual !=3D 77373 expected)
fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 Ok: queued as DB772138F0
fetchmail: flushed
fetchmail: POP3> DELE 1
fetchmail: POP3<
fetchmail: POP3> QUIT
fetchmail: POP3< --b422d96.112e86e782
fetchmail: client/server protocol error while fetching from yyyyy=
.de
fetchmail: 6.2.3 querying winroute.poper.ipactiv.de (protocol POP=
3) at Mon Dec 12 09:57:03 2005: poll completed
fetchmail: Query status=3D4 (PROTOCOL)
--ALTERNATIVE-KMS-272866734-24464-delim
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="us-ascii"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Du=
s-ascii">
<META content=3D"MSHTML 6.00.2900.2769" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D533055222-12122005=
>Hi 
fetchmail-friends.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN 
class=3D533055222-12122005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D533055222-12122005=
>I am a fetchmail 
newbie. </SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D533055222-12122005=
>It is mostly working 
fine. MTA is postfix with amavis (spamassasin).</SPAN></FONT></DI=
V>
<DIV><FONT face=3DArial size=3D2><SPAN 
class=3D533055222-12122005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D533055222-12122005=
>I use  Version 
6.2.3+POP2+RPA+NTLM+SDPS+SSL+OPIE+NLS</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D533055222-12122005=
>on Linux suse-pound 
2.4.21-297-default</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN 
class=3D533055222-12122005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D533055222-12122005=
>I found some 
informations in the web regarding my problem. But there was only=20=
one solution 
and that didn't work. I tried many different options.</SPAN></FON=
T></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN 
class=3D533055222-12122005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN 
class=3D533055222-12122005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D533055222-12122005=
>Sometimes fetchmails 
fetches mails with a incorrect header / message <FONT size=3D2>de=
limiter. Mostly 
spam mails with an attachment. But fetchmail tries to fetch the m=
ail every poll 
cycle and so very cycle i will get the same mail in my inbox (onl=
y Headers and 
subject - without the attachment)</FONT></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D533055222-12122005=
>This error accours 
until i delete the mail manualy on the POP3 server using 
telnet.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN 
class=3D533055222-12122005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D533055222-12122005=
>Can somebody help 
me?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN 
class=3D533055222-12122005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D533055222-12122005=
>Best 
regards</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN 
class=3D533055222-12122005>Dirk</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D533055222-12122005=
><FONT 
size=3D2></FONT></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D533055222-12122005=
><FONT 
size=3D2>/root/.fetchmailrc looks:</FONT></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D533055222-12122005=
><FONT size=3D2><FONT 
size=3D2></FONT></FONT></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D533055222-12122005=
><FONT size=3D2><FONT 
size=3D2>set logfile "/var/log/fetchmail.log"<BR>set postmaster "=
root"<BR>set no 
bouncemail<BR>set no spambounce<BR>set showdots<BR>set properties=
 ""<BR>set 
daemon 60<BR></FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D533055222-12122005=
><FONT size=3D2><FONT 
size=3D2>poll 'yyy.xxx.zzz.de' with proto POP3 and options no dns=
 
tracepolls<BR>user 'abcde' there with password 'gfhijk' is 
'meyer@localhost.12345.6789.de' here options no 
keep;</FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D533055222-12122005=
><FONT size=3D2><FONT 
size=3D2></FONT></FONT></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D533055222-12122005=
><FONT size=3D2><FONT 
size=3D2>Logfile:</FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D533055222-12122005=
><FONT size=3D2><FONT 
size=3D2></FONT></FONT></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D533055222-12122005=
><FONT size=3D2><FONT 
size=3D2><FONT size=3D2>
<P>fetchmail: POP3&lt; +OK message 1 (77373 octets)</P>
<P>fetchmail: reading message xxx@yyy.de:1 of 6 (77373 octets)</P=
>
<P>fetchmail: About to rewrite Return-Path: &lt;^M"&gt;Postmaster=
@Ebay.com&gt;^M 
Rewritten version is Return-Path: &lt;^M"&gt;Postmaster@Ebay.com&=
gt;^M</P>
<P>fetchmail: About to rewrite From: Postmaster@Ebay.com^M Rewrit=
ten version is 
From: Postmaster@Ebay.com^M</P>
<P>fetchmail: About to rewrite To: x_mail-list@poper.de^M Rewritt=
en version is 
To: x_mail-list@poper.de^M</P>
<P>fetchmail: incorrect header line found while scanning headers<=
/P>
<P>fetchmail: SMTP&lt; 220 suse-pound.poper.ipactiv.de ESMTP Post=
fix</P>
<P>fetchmail: SMTP&gt; EHLO localhost</P>
<P>fetchmail: SMTP&lt; 250-suse-pound.poper.ipactiv.de</P>
<P>fetchmail: SMTP&lt; 250-PIPELINING</P>
<P>fetchmail: SMTP&lt; 250-SIZE 10240000</P>
<P>fetchmail: SMTP&lt; 250-VRFY</P>
<P>fetchmail: SMTP&lt; 250-ETRN</P>
<P>fetchmail: SMTP&lt; 250-XVERP</P>
<P>fetchmail: SMTP&lt; 250 8BITMIME</P>
<P>fetchmail: forwarding to localhost</P>
<P>fetchmail: SMTP&gt; MAIL FROM:&lt;Postmaster@Ebay.com&gt; BODY=
=3D7BIT 
SIZE=3D77373</P>
<P>fetchmail: SMTP&lt; 250 Ok</P>
<P>fetchmail: SMTP&gt; RCPT TO:&lt;yyyy@localhost.yyyyy&gt;</P>
<P>fetchmail: SMTP&lt; 250 Ok</P>
<P>fetchmail: SMTP&gt; DATA</P>
<P>fetchmail: SMTP&lt; 354 End data with 
&lt;CR&gt;&lt;LF&gt;.&lt;CR&gt;&lt;LF&gt;</P>
<P>fetchmail: message delimiter found while scanning headers</P>
<P>fetchmail: message xxx@yyyyv.de:1 was not the expected length=20=
(676 actual !=3D 
77373 expected)</P>
<P>fetchmail: SMTP&gt;. (EOM)</P>
<P>fetchmail: SMTP&lt; 250 Ok: queued as DB772138F0</P>
<P>fetchmail: flushed</P>
<P>fetchmail: POP3&gt; DELE 1</P>
<P>fetchmail: POP3&lt;</P>
<P>fetchmail: POP3&gt; QUIT</P>
<P>fetchmail: POP3&lt; --b422d96.112e86e782</P>
<P>fetchmail: client/server protocol error while fetching from yy=
yyy.de</P>
<P>fetchmail: 6.2.3 querying winroute.poper.ipactiv.de (protocol=20=
POP3) at Mon 
Dec 12 09:57:03 2005: poll completed</P>
<P>fetchmail: Query status=3D4 
(PROTOCOL)</P></FONT></DIV></FONT></FONT></SPAN></FONT></BODY></H=
TML>
--ALTERNATIVE-KMS-272866734-24464-delim--