Sitaram Shastri forced the electrons to say:
> to sendmail,like [EMAIL PROTECTED] fools sendmail into thinking
> that the recipient is user mydomain who does not exist locally,so it bounces
> it to postmaster(me).how can i avoid this addition of header by fetchmail,so
The way to tell fetchmail not to add headers is by invoking it as
fetchmail --invisible
or by having 'set invisible' in the configuration file for
fetchmail. However, I don't think that will solve your problem.
The way fetchmail determines who a message from a multidrop mailbox is
addressed to is by examining the Received: headers. The topmost received
header will look like (in my case):
Received: from lists.redhat.com (lists.redhat.com [199.183.24.247])
by ns.retortsoft.com (8.8.7/8.8.7) with SMTP id OAA26840
for <[EMAIL PROTECTED]>; Sat, 11 Dec 1999 14:41:26 +0530
Fetchmail parses this, and figures that the mail is meant for
binand@localhost.
In your case, the topmost Received: line will most likely have
[EMAIL PROTECTED] in it. So fetchmail tries to deliver it to
yourdomain@localhost, which as you say, is nonexistent.
> procmail to deliver it to [EMAIL PROTECTED] gives me the advantage
> of not having to modify the rc file each time a user is added.the bouncing
Hmm... I am not sure if what you say can be done, but a very crude kludge
would be:
Add the user yourdomain. All mail will be delivered to him.
Use procmail to add header X-Envelope-To: (read fetchmail man page)
which will have the address of the person to deliver the mail to. Write
a simple perl filter to do this. Use the Received: headers to figure
out who the mail should go to.
Poll mydomain@localhost again, using fetchmail. This time, run fetchmail
-E. Read the man page.
Your first fetchmail will run as singledrop, the second one as multidrop.
As I said, this is a kludge! Test it carefully before implementing. My
office runs something similar, and it has been a success so far.
> also,while at it,how can i terminate the dialup connection if there is no
> activity for say 10 minutes.
Look for diald, the demand dialling software at freshmeat.
Binand
--
The prompt for all occasions:
export PS1="F:\$(pwd | tr '/[a-z]' '\134\134[A-Z]')> "
--------------- Binand Raj S. ([EMAIL PROTECTED])
----------------------------------------------
LIH is all for free speech. But it was created
for a purpose. Violations of the rules of
this list will result in stern action.