Howto change "From" in procmail respondr - TechRepublic
General discussion
August 6, 2002 at 07:46 AM
rouse

Howto change “From” in procmail respondr

by rouse . Updated 23 years, 9 months ago

Hello, I’m running sendmail with the following procmail recipe. It works fine, but it addresses itself from ‘root@mypc.mydomain’. I’d rather have it address itself from something like autoresponder@mypc.mydomain, because some folks don’t get the root thing…

:0 Whc: me.lock
* $^To:.*me
* !^FROM_DAEMON
* !^X-Loop: me@myisp.provider
| formail -rD 8192 me.cache
:0 ehc
| (formail -rI”Precedence: junk” \
-A”X-Loop: me@myisp.provider ” ; \
echo “I received your mail,”; \
echo “Thanks very much.”; \
echo “– “; cat $HOME/.signature \
) | $SENDMAIL -oi -t

This a basic auto-responder recipe. But I can’t decipher the man pages to figure out how to overide the “from”. Thanks in advance.
Keith Stewart

This discussion is locked

All Comments