Charles M. Gerungan wrote:
>
> I need the ability to copy outbound mail from certain users, and forward
> this to another (Eg. copy all mail from
us...@domain.com to
>
outbou...@domain.com. Sendmail 8.8.6 (V5 config) is running on BSDi3.
>
> Reading the man pages suggested editing the
sendmail.cf as follows:
>
> 1. Define a new mailer:
> Mprocmail, P=/usr/bin/procmail, F=mSDFMhun, S=0, R=0, A=procmail -m $h $f $u
>
> 2. Add the following rule to ruleset 0:
> R$*<@
zavtra.com>$*
> $#procmail $@/etc/procmailrcs/outbound.rc $:$1...@zavtra.com.procmail$2
> R$*<@$*.procmail>$*
> $1<@$2>$3 Already filtered, map back
>
> The configuration file for procmail (outbound.rc):
> :0 copy outbound mail from user "user"
> * ^From:.*user
> {
> :0 c # send copy to outbound.user ...
> !
outbou...@domain.com>
> :0 # ... and pass along.
> ! -oi -f "$@"
> }
>
> My question is, of course, will this work as is? Do I need to create rules
> for the sender's and recipient's address which are referenced where procmail
> is defined as a mailer?
>
> Regards, Charles.
you can use alias in formate
in /etc/aliases
add this line
your original mail:your original mail,another mail address