fetchmail-friends
[Top] [All Lists]

[fetchmail]Mangled mail with fetchmail 6.2.2

2004-05-10 06:02:34
Hello list,

Yes, I tried using the recent fetchmail 6.2.5 first, but failed
to compile it; that is subject of another posting.

I sometimes get mails where fetchmail seems to mangle the header
so that postfix is rejecting it. Usually, that's spam, but it
bothers me nonetheless since I have to manually delete the mail
from the server.

This is the telnet session with my mailhost:

telnet my.mailserver.de 110
Trying IP.IP.IP.IP...
Connected to my.mailserver.de.
Escape character is '^]'.
+OK <4234(_dot_)1084183172(_at_)sireco(_dot_)org>
user me(_at_)dexia(_dot_)de
+OK
pass *secret*
+OK
stat
+OK 12 26865
retr 11
+OK
Return-Path: <operation(_at_)danielm(_dot_)org>
Delivered-To: over(_at_)dexia(_dot_)de
Received: (qmail 27440 invoked from network); 9 May 2004 19:34:24
-0000
Received: from ppp-69-148-68-145.dsl.rcsntx.swbell.net (HELO
69.148.68.145) (69.148.68.145)
  by tequila.sireco.de with SMTP; 9 May 2004 19:34:24 -0000
Return-Path: Received: from mx1.globe.net.nz (mx1.globe.net.nz
[203.96.128.13]) by mail.vanabel.com with esmtp; May, 09 2004
8:33:19 PM -0200
Received: from mail.heritageweb.net (mail.heritageweb.net
[216.107.91.75]) by mail
.800octane.com with SMTP; May, 09 2004 7:14:52 PM -0200
From: Maryam .A <operation(_at_)danielm(_dot_)org>
To: over(_at_)dexia(_dot_)de
Subject: Kindly Assist My Family
Sender: Maryam .A <operation(_at_)danielm(_dot_)org>
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Date: Sun, 9 May 2004 20:34:44 -0600
X-Mailer: Microsoft Outlook IMO Build 9.0.2416 (9.0.2910.0)
X-Priority: 1

From:Maryam Abacha
Lagos-Nigeria.

Dear Sir/Madam,

8<--------------------8<--------------------8<--------------------


What fetchmail seems to deliver can be seen in the postfix error
mail:

 Out: 220 myhost.dexia.de ESMTP trust me I'm good at what I'm
doing
 In:  HELO localhost
 Out: 250 myhost.dexia.de
 In:  MAIL FROM:<FETCHMAIL-DAEMON(_at_)myhost(_dot_)dexia(_dot_)de>
 Out: 250 Ok
 In:  RCPT

TO:<Received:frommx1(_dot_)globe(_dot_)net(_dot_)nz(_at_)mail(_dot_)dexia(_dot_)debymail(_dot_)vanabel(_dot_)comw
ithesmtp;May>
 Out: 501 Bad address syntax
 In:  QUIT
 Out: 221 Bye

8<--------------------8<--------------------8<--------------------


You can notice the following:
- The received line is lacking spaces
- The received line is reported as "RCPT TO" line
- There's a "mail.dexia.de" put in where it doesn't belong
- The line surprisingly ends with "May", the rest is missing

I actually suspect the nesting brackets "(mx1.globe.net.nz
[203.96.128.13])" disturbing the header parser, but that's only
guessing.

fetchmail is v 6.2.2
OS is Linux Kernel 2.2.19
gcc version 2.95.2 19991024 (release)
postfix is 2.0.7
fetchmail commandline is /usr/local/bin/fetchmail -v -v
--antispam 571,550,501,554 -f tmpfile
(the tmpfile contains the parameters
set postmaster $pmaster
poll $mailserver
protocol POP3
auth password
timeout $fmtimeout
username %s password %s is %s here
fetchall

, with the variables filled in properly.)

I also take hints how to diagnose this further and hope I've put
in all relevant information. I have no further info about OS or
version of the MTA of our provider, I'm afraid.

Best regards, JO