procmail
[Top] [All Lists]

Re: simple question? -- forwarding email

1998-04-06 21:08:18
I assume this is a simple newbie question:

     How do I call sendmail to forward a message from procmail?  

Details: 
I invoke procmail with this in my .forward file:

     "|IFS=' ' && exec /usr/local/bin/procmail -f- || exit 75 #david"

I'd like to use it to forward mail for other users.  This works ok:

     :0:
     * ^TO_.*wtp*
     /usr/spool/mail/wtp

However, what I really want to do is to forward the mail elsewhere.  That
is, I really want to invoke a shell script to say "send message to
wtp(_at_)foobar(_dot_)com" Any ideas on how I could do this?

        :0:
        * ^TO_.*wtp*  # The underscore is probably unnecessary.
        ! wtp(_at_)foobar(_dot_)com

Andrew Edelstein        -       andrewe(_at_)cybersource(_dot_)com
CyberSource Corporations, Operations

Lex: It's a UNIX system! I know this!!!
Ian Malcolm: God help us; we're in the hands of engineers.

<Prev in Thread] Current Thread [Next in Thread>