On Sat, Aug 05, 2000 at 10:04:20AM -0400, Gene Wilburn wrote:
: In the past I've used Eric Allman's vacation program without any problems
: on RH systems. Under 6.2 however, I'm getting this message, which I'm sure
: is related to a newer version of sendmail:
: 
:    ----- Transcript of session follows -----
: 550 /home/gwilburn/.forward: line 1: "|/usr/bin/vacation -a
: gwilburn"... Address
: <gwilburn@localhost> is unsafe for mailing to programs
: 
: I've tried various options but I think I'm missing some key point in
: understanding the problem. Anyone know the fix?

vacation is pretty broken.. Since you're under 6.2, and using sendmail, 
your delivery agent is procmail.  Look at the procmailex man page for an
excellent example of how to create an autoresponder that will reply only
ONCE to a given address, doesn't create mail loops, and doesn't piss off
everyone...

Were one to expand upon what's offerred in the man page, one might come up
with:

:0 Whc: vacation.lock
# Make sure mail was directly addressed to us
* $^To:.*\<$\LOGNAME\>
# No sense autoreplying to a bounce
* !^FROM_DAEMON
# Hands up!  Who likes mail loops?
* !^X-Loop: vacation-loop
| formail -rD 8192 vacation.cache

:0 ehc         # if the name was not in the cache
| (formail -rI"Precedence: junk" \
        -A"X-Loop: vacation-loop" ; \
        cat $HOME/vacation.message ; \
        echo "-- "; \
        cat $HOME/.signature \
) | $SENDMAIL -oi -t

Create a text file in $HOME called vacation.message, which contains the
message you want to send as an autoreply.

-- 
Jason Costomiris <><           |  Technologist, geek, human.
jcostom {at} jasons {dot} org  |  http://www.jasons.org/ 



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to