Hello,
I'm running fetchmail release 6.2.5+NTLM+SDPS+SSL+NLS. I'm attempting to
grab mail from my ISP's qmail server, which is catching all mail for my
domain (*(_at_)semihuman(_dot_)com), for local delivery to a Linux machine
running exim
3.35.
From what I can tell, my provider's server is correctly setting a
Delivered-To: header, and fetchmail is correctly parsing it. However,
fetchmail still insists on setting the RCPT TO: to the local
user(_at_)localhost, not the username in the Delivered-To (or even the To:)
header.
Here's my fetchmailrc (running as user rekoil; I've tested as root as
well)
------
## global fetchmail options
defaults
user rekoil(_at_)semihuman(_dot_)com
# set daemon 180
## server options
poll mail.speakeasy.net with protocol imap
envelope "Delivered-To:"
fetchall
keep
password xxxxx
ssl
------
Here is the message that I am attempting to grab:
Received: (qmail 22916 invoked by alias); 25 May 2004 03:57:47 -0000
Delivered-To: chris(_at_)semihuman(_dot_)com
Received: (qmail 22911 invoked from network); 25 May 2004 03:57:47 -0000
Received: from electro.semihuman.com (HELO [66.92.168.64])
([66.92.168.64])
(envelope-sender <rekoil(_at_)semihuman(_dot_)com>)
by mail1.speakeasy.net (qmail-ldap-1.03) with SMTP
for <chris(_at_)semihuman(_dot_)com>; 25 May 2004 03:57:47 -0000
Mime-Version: 1.0 (Apple Message framework v613)
Content-Transfer-Encoding: 7bit
Message-Id: <AE99DE20-ADFF-11D8-9125-000393AAEFB2(_at_)semihuman(_dot_)com>
Content-Type: text/plain; charset=US-ASCII; format=flowed
To: chris(_at_)semihuman(_dot_)com
From: Chris Woodfield <rekoil(_at_)semihuman(_dot_)com>
Subject: testing to chris(_at_)semihuman(_dot_)com
Date: Mon, 24 May 2004 23:57:46 -0400
X-Mailer: Apple Mail (2.613)
Trying this again...
-chris
------
And here's what happens when fetchmail runs:
fetchmail: IMAP< * 4 FETCH (RFC822.HEADER {826}
reading message rekoil(_at_)semihuman(_dot_)com@mail.speakeasy.net:4 of 4 (826
header
octets)
About to rewrite To: chris(_at_)semihuman(_dot_)com
Rewritten version is To: chris(_at_)semihuman(_dot_)com
About to rewrite From: Chris Woodfield <rekoil(_at_)semihuman(_dot_)com>
Rewritten version is From: Chris Woodfield <rekoil(_at_)semihuman(_dot_)com>
fetchmail: forwarding to localhost
fetchmail: SMTP> MAIL FROM:<rekoil(_at_)semihuman(_dot_)com> SIZE=860
fetchmail: SMTP< 250 <rekoil(_at_)semihuman(_dot_)com> is syntactically correct
fetchmail: SMTP> RCPT TO:<rekoil(_at_)localhost>
fetchmail: SMTP< 250 <rekoil(_at_)localhost> is syntactically correct
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 Enter message, ending with "." on a line by itself
#
fetchmail: IMAP< )
-------
The "About to rewrite To:" line suggests that fetchmail is properly
parsing the Delivered-To: header. However, it still sets the RCPT TO to
rekoil(_at_)localhost(_dot_)
Any ideas?
Thanks,
-Chris