[Top] [All Lists]

[fetchmail] fetchmail uses wrong MAIL FROM when forwarding mail through the local smtp server

2003-04-12 02:08:11

I'm running gentoo Linux and fetchmail was compiled from the ebuild with gcc 

The following mail triggers the error.


Return-Path: <ccsheri(_at_)bikerider(_dot_)com>
Delivered-To: xxx(_at_)xxx(_dot_)de
Received: (qmail 15425 invoked from network); 12 Apr 2003 03:07:56 -0000
Received: from unknown (HELO xxx.xxx.xxx.xxx) ([]) 
(envelope-sender <ccsheri(_at_)bikerider(_dot_)com>)
          by xxx.xxx.de (qmail-ldap-1.03) with SMTP
          for <xxx(_at_)xxx(_dot_)de>; 12 Apr 2003 03:07:56 -0000
Return-Path: Received: from [] by rly-xw01.mx.aol.com with SMTP; 
Apr, 11 2003 7:37:19 PM -0100
Received: from smtp-server1.cfl.rr.com ([]) by 
rly-xl04.mx.aol.com with esmtp; Apr, 11 2003 7:03:21 PM +1200
Received: from unknown ( by rly-xr02.mx.aol.com with NNFMP; Apr, 
11 2003 5:55:36 PM -0700
From: Carrie <ccsheri(_at_)bikerider(_dot_)com>
To: xxx(_at_)xxx(_dot_)de
Subject: Enlarge your size penis by 2 to 4 inches in weeks 
xxx(_at_)xxx(_dot_)de hmqkk
Sender: Carrie <ccsheri(_at_)bikerider(_dot_)com>
Mime-Version: 1.0
Content-Type: text/html; charset="iso-8859-1"
Date: Fri, 11 Apr 2003 20:04:49 -0700
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-Priority: 1
[rest snipped]


Fetchmail can get the mail from the mail server without any problems, but when 
it tries to forward it trough the local smtp server, it somehow tries to use 
the second Return-Path "address" as the MAIL FROM, which postfix (2.0.3) 
obviously doesn't like.


fetchmail: SMTP> EHLO localhost
fetchmail: SMTP< 250-xxx
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: SMTP> MAIL 
fetchmail: SMTP< 501 Bad address syntax
fetchmail: SMTP-Fehler: 501 Bad address syntax
fetchmail: SMTP< 220 xxx ESMTP Postfix


fetchmail -V

This is fetchmail release 6.2.2+RPA+NTLM+SDPS+SSL+NLS
Fallback MDA: (none)
Linux xxx 2.4.20 #21 Wed Jan 22 15:25:14 CET 2003 i686 Pentium II (Deschutes) 
GenuineIntel GNU/Linux
Taking options from command line and /home/blah/.fetchmailrc
Poll interval is 600 seconds
Idfile is /home/blah/.fetchids
Fetchmail will forward misaddressed multidrop messages to postmaster.
Fetchmail will direct error mail to the postmaster.
Options for retrieving from xxx(_at_)xxx(_dot_)xxx(_dot_)de:
  True name of server is xxx.xxx.de.
  Protocol is POP3.
  All available authentication methods will be tried.
  SSL encrypted sessions enabled.
  Server nonresponse timeout is 60 seconds.
  Default mailbox selected.
  Only new messages will be retrieved (--all off).
  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 enabled (forcecr on).
  Interpretation of Content-Transfer-Encoding is enabled (pass8bits off).
  MIME decoding is disabled (mimedecode off).
  Idle after poll is disabled (idle off).
  Nonempty Status lines will be kept (dropstatus off)
  Delivered-To lines will be kept (dropdelivered off)
  Messages will be SMTP-forwarded to: xxx.xxx
  Single-drop mode: 1 local name(s) recognized.
  No UIDs saved from this host.


Any ideas?


<Prev in Thread] Current Thread [Next in Thread>
  • [fetchmail] fetchmail uses wrong MAIL FROM when forwarding mail through the local smtp server, Alexander Gretencord <=