hallo,
I've a bunch of pop3-accounts for several users at my isp. While we
are migrating to our own mailserver I want to query all this accounts
by fetchmail (running on the new internal mailserver) and just have
this mails delivered to my local sendmail.
that means: If a mail was sent to "john(_at_)mydomain(_dot_)com" which is still
handled by my ISP I want to fetch it with fetchmail and have it
straigt fed to local sendmail, which will then resolve what to do with
mails to "john(_at_)mydomain(_dot_)com".
But whatever I try, fetchmail will always deliver to local sendmail
and tell sendmail to deliver to the adress of the user that actually
calls sendmail.
realworld-example:
the mail ends up in roots mailbox, cause root calls the
fetchmailscript and the headers look like:
command:
poll mx.inode.at protocol pop3 username "xxxxxx" password "xxxxxxxx" smtphost
localhost
result:
Received: from localhost (localhost.localdomain [127.0.0.1])
by alpha.ihf-hr.org (8.12.1/8.12.1) with ESMTP id g558k5ca001715
for <root(_at_)localhost>; Wed, 5 Jun 2002 10:46:05 +0200
Envelope-to: pilsl(_at_)ihf-hr(_dot_)org
Delivery-date: Wed, 05 Jun 2002 10:51:35 +0200
Received: from mx.inode.at [213.229.60.100]
by localhost with POP3 (fetchmail-5.9.0)
for root(_at_)localhost (single-drop); Wed, 05 Jun 2002 10:46:05 +0200
(CEST)
Received: from goldfisch.at ([62.99.149.138])
by mx.inode.at with esmtp (Exim 3.31 #2)
id 17FWVz-0001cz-00
for pilsl(_at_)ihf-hr(_dot_)org; Wed, 05 Jun 2002 10:51:35 +0200
Received: from goldfisch.at (localhost.localdomain [127.0.0.1])
by goldfisch.at (8.12.1/8.12.1) with ESMTP id g558r4JC017708
for <pilsl(_at_)ihf-hr(_dot_)org>; Wed, 5 Jun 2002 10:53:04 +0200
Received: (from pilsl(_at_)localhost)
by goldfisch.at (8.12.1/8.12.1/Submit) id g558r4GW017705
for pilsl(_at_)ihf-hr(_dot_)org; Wed, 5 Jun 2002 10:53:04 +0200
The mail is finally deliverd to <root(_at_)localhost> instead of
<pilsl(_at_)ihf-hr(_dot_)org>.
ihf-hr.org has an MX-record to our providers mailserver, but local
sendmail handles this domain and deliver it local. If I send an email
from local to "pilsl(_at_)ihf-hr(_dot_)org" I get the mail exactely where i want
: delivered in my local imap-folder.
if anyone can imagine what I try to say and achieve and has any idea:
your help is greatly appretiated :)
I dealt a lot with smtphost-options and norewrite of fetchmail, but I
just didnt get it right. fetchmail says in its manpage that :
--------
As each message is retrieved fetchmail normally delivers it
via SMTP to port 25 on the machine it is running on (local
host), just as though it were being passed in over a normal
TCP/IP link.
-------
but I cant say so ...
any help is appretiated,
thnx,
peter
--
mag. peter pilsl
IT-Consulting
tel: +43-699-1-3574035
fax: +43-699-4-3574035
pilsl(_at_)goldfisch(_dot_)at