This is straight from the Sendmail's CF readme:
procmail An interface to procmail (does not come with sendmail).
This is designed to be used in mailertables. For example,
a common question is "how do I forward all mail for a
given
domain to a single person?". If you have this mailer
defined, you could set up a mailertable reading:
host.com procmail:/etc/procmailrcs/host.com
with the file /etc/procmailrcs/host.com reading:
:0 # forward mail for host.com
! -oi -f $1 person(_at_)other(_dot_)host
This would arrange for (anything)@host.com to be sent
to person(_at_)other(_dot_)host(_dot_) Within the procmail
script, $1 is
the name of the sender and $2 is the name of the
recipient.
If you use this with FEATURE(local_procmail), the FEATURE
should be listed first.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Michael Ghens Small Planet Connections
Internet: michael(_at_)spconnect(_dot_)com Santa Barbara, CA
http://www.spconnect.com/~michael
On Mon, 12 Jan 1998, Oliver Briem wrote:
Date: Mon, 12 Jan 1998 19:13:17 -0500
From: Oliver Briem <obriem(_at_)csc(_dot_)com>
To: "procmail(_at_)informatik(_dot_)rwth-aachen(_dot_)de"
<procmail(_at_)informatik(_dot_)rwth-aachen(_dot_)de>
Subject: Automatic forward
Resent-Date: Tue, 13 Jan 1998 01:53:59 +0100 (MET)
Resent-From: procmail(_at_)informatik(_dot_)rwth-aachen(_dot_)de
Hello,
I've got a problem to solve and I'm trying to find out if I can do
it via procmail. I have to forward mail from one domain to another
(domain1.com to domain2.com) for all my users without having to create
800 .forward files. At the same time sending a message to the sender
saying that this persons e-mail address has changed from
user(_at_)domain1(_dot_)com to user(_at_)domain2(_dot_)com(_dot_) . If anyone
has any suggestions
for me I would really appreciate.
Regards,
Oliver Briem
CSC Index