More recently, I've tried simply concatenating my mail to a file, and it's
clear what's missing: there are no 'From ' lines on any of the messages!
Version of fetchmail? Sample headers for one of these emails (keeping in
mind that 'From ' isn't an SMTP header, but sometimes added by the LDA -
none of my emails have them).
$ fetchmail --version
This is fetchmail release 6.2.5+POP2+RPA+SDPS+SSL+OPIE+INET6+NLS
Fallback MDA: (none)
FreeBSD saturn.home 4.9-RELEASE-p4 FreeBSD 4.9-RELEASE-p4 #2: Wed Mar 24
10:37:26 GMT 2004 root(_at_)saturn(_dot_)home:/usr/obj/usr/src/sys/GENERIC
i386
Taking options from command line and /home/michael/.fetchmailrc
Poll interval is 600 seconds
Logfile is /home/michael/.fetchmail.log
Idfile is /home/michael/.fetchids
Fetchmail will forward misaddressed multidrop messages to michael.
Fetchmail will direct error mail to the postmaster.
Options for retrieving from
michael(_dot_)g(_dot_)abbott(_at_)pop(_dot_)ntlworld(_dot_)com:
True name of server is pop.ntlworld.com.
Protocol is POP3.
All available authentication methods will be tried.
Server nonresponse timeout is 50 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 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)
Fetch message size limit is 100 (--fetchsizelimit 100).
Do binary search of UIDs during 9 out of 10 polls (--fastuidl 10).
Messages will be SMTP-forwarded to: localhost (default)
Recognized listener spam block responses are: 451
Single-drop mode: 1 local name(s) recognized.
No UIDs saved from this host.
$
Here are the headers from a typical mail (spam, of course; literally 99.9%
of e-mail on this particular account is spam):
Return-Path: <qqgywksqotun(_at_)yahoo(_dot_)com>
Received: from pop.ntlworld.com [62.253.162.50]
by localhost with POP3 (fetchmail-6.2.5)
for michael(_at_)localhost (single-drop); Tue, 27 Apr 2004 12:39:58
+0000 (GMT)
Received: from host141115.metrored.net.ar ([200.59.141.115])
by mta07-svc.ntlworld.com
(InterMail vM.4.01.03.37 201-229-121-137-20020806) with SMTP
id
<20040427115701(_dot_)QMXS16305(_dot_)mta07-svc(_dot_)ntlworld(_dot_)com(_at_)host141115(_dot_)metrored(_dot_)net(_dot_)ar>;
Tue, 27 Apr 2004 12:57:01 +0100
Received: from 226.31.240.186 by 200.59.141.115; Tue, 27 Apr 2004 05:53:20 -0700
Message-ID: <WMLREJJGIHVADYDWPEXECEFWC(_at_)yahoo(_dot_)com>
From: "Ty Carey" <qqgywksqotun(_at_)yahoo(_dot_)com>
Reply-To: "Ty Carey" <qqgywksqotun(_at_)yahoo(_dot_)com>
To: michael(_dot_)donovan2(_at_)ntlworld(_dot_)com
Subject: Re:Earn an extra $10k this month
Date: Tue, 27 Apr 2004 06:50:20 -0600
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="--27838218813851289"
X-IP: 14.247.160.50
X-Priority: 3
Note the absence of a From line.
Now my configuration is as follows:
fetchmail -> .forward -> procmail -> Unix format mailboxes
It would appear that if I inject mail (via the
mda /usr/local/bin/procmail
line) the From line is not inserted, so the resulting mail cannot be read
properly.