At 17:31 2002-01-30 +0200, nimrod cohen wrote:
I want to use sendmail as my mail relay and filter the mail with
procmail
(I know how to configer it when the sendmail is mail server) but how can
I forward the mail to real user
Your question is entirely too vague.
If you have sendmail (the MTA) configured on your system, with procmail as
the LDA (Mlocal = procmail) or invoked via a .forward file (within the
individual user home dir), when mail comes in, if it is destined to a
"real" local user, it'll be passed off to procmail.
If you want to forward the mail from within your user account to another
user (perhaps even at another host/domain), then a procmail recipe like so:
:0
* ^From:(_dot_)*joebob(_at_)otherdomain\(_dot_)tld
!nimmie(_at_)myotherdomain(_dot_)tld
Would forward messages which arrive in this user's account from this joebob
fellow to your other account someplace else. Add a 'c' to the flags line,
and this account would still have a copy of the message.
In reality, such forwards should also have loop checking added to them, but
I think rather than getting into those details, you could first elaborate
upon what you're trying to do.
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail