Just an aside about the $SENDER stuff. We use this method, and it works
fine. Things to keep in mind: 1) We have it in a .forward file 2) we
use smail instead of sendmail.
Here's an exerpt from the smail(5) man page about its "Sendmail-compatible
forward files":
-----------------------------------------------------------------------
A useful forward file is:
# I am on vacation, save away my mail, but tell people
# I won't be back for a while
hustead,
"|mailx -s 'Yep, gone fishing!' \"$SENDER\" < $HOME/.fish"
Which will save to Ted Hustead's mailbox file and will
also execute the following shell command:
mailx -s 'Yep, gone fishing!' "$SENDER" < $HOME/.fish
where the shell variables $HOME and $SENDER are available
from the environment as the user's home directory and the
sender address, respectively.
----------------------------------------------------------------------
It also mentions that several environment variables (including SENDER)
are available when using the pipe driver.
Dougal Campbell | Check out the interQuest home page:
System Administrator | http://www.iquest.com/
dougal@iquest.com | interQuest: We can hook you up!
|
|