Quoting from Robert Jan Weijers's mail on Fri, Dec 27, 2002 at 07:56:39PM +0100:
----------------------------------------- vi .fetchmailrc
server www.ict-dinkelland.nl
protocol pop3
user rweijersadmin
password PipoDeluxe
Is this your real username and password? You should have blanked it
out first.
norewrite
bsmtp /home/mailuser/mail.test
keep
----------------------------------------- vi mail.test
MAIL FROM: knor(_at_)home(_dot_)nl BODY=7BIT
RCPT TO: mailuser(_at_)localhost
DATA
Received: from localhost [127.0.0.1]
by localhost with POP3 (fetchmail-5.9.14)
for root(_at_)localhost (by default); Fri, 27 Dec 2002 19:51:12 +0100
(CET)
Received: from localhost ([127.0.0.1] ident=mailuser)
by localhost with esmtp (Exim 4.04)
id 18RzZY-00064a-00
for mailuser(_at_)localhost; Fri, 27 Dec 2002 19:51:04 +0100
Received: from pop3.sightid.nl [81.17.36.40]
by localhost with POP3 (fetchmail-5.9.14)
You should upgrade to the latest fetchmail (6.2.0) first.
for mailuser(_at_)localhost (single-drop); Fri, 27 Dec 2002 19:51:04
+0100 (C
Received: from mail8-sh.home.nl (mail8.home.nl [213.51.128.28])
by woev.sightid.nl (8.11.6/8.11.6) with ESMTP id gBRJ0lc14392
for <root(_at_)ict-dinkelland(_dot_)nl>; Fri, 27 Dec 2002 20:00:47
+0100
What you want is a multidrop configuration. fetchmail will look at
this header line to determine the recipient address then. Your
configuration should look like this:
=========================================
server www.ict-dinkelland.nl
aka woev.sightid.nl
localdomains ict-dinkelland.nl
protocol pop3
user ...
password ...
bsmtp ...
keep
to *
=========================================
'norewrite' is not required, unless there is some specific reason for
wanting that.
--
Sunil Shetye.