2) forward their 'authorize' request to erosters, keeping both the
Subject: and body 100% intact, and making sure that the From_ header
shows their address and the To: header is addressed to erosters
(this .procmailrc is for an account named egrades, which runs
a similar, but different program).
I'm only having problems with step #2. My tests with formail didn't
produce the needed results, but I am sure I'm just using the correct args
for the 2nd recipe [if it was formail-based]. Using v3.10 1994/10/31
First off, you should probably upgrade to procmail 3.11pre7. It's
been available for about 2 years now and is quite stable (although
it'll soon be supplanted by 3.11pre8 (if all goes as planned)).
You can do step #2 like this:
TARGET="erosters(_at_)mydomain(_dot_)com"
:0
* ^From \/[^ ]+[ ]+
| $SENDMAIL -f$MATCH $TARGET
I would follow it up with a catchall address in case there is no
envelope address (as is the case with bounce messages). This
changes it to
TARGET="erosters(_at_)mydomain(_dot_)com"
:0
* ^From \/[^ ]+[ ]+
| $SENDMAIL -f$MATCH $TARGET
:0
! $TARGET
Bounces will now be send with the account name under which this
procmailrc is running.
Note that I didn't write this recipe with any regard to the context
of #1 and #3 -- that's left as an exercise for the reader. :)
Chris