From owner-freebsd-isp Wed May 12 4:59:40 1999 Delivered-To: freebsd-isp@freebsd.org Received: from rowdy.panther.net (rowdy.panther.net [209.197.192.82]) by hub.freebsd.org (Postfix) with ESMTP id DD91614FC3 for ; Wed, 12 May 1999 04:59:37 -0700 (PDT) (envelope-from kward@panther.net) Received: from localhost (3322 bytes) by rowdy.panther.net (Smail-3.2.0.104 1998-Nov-20 #3) via sendmail with P:stdio/R:inet_hosts/T:smtp (sender: ) (ident using unix) id for ; Wed, 12 May 1999 06:52:05 -0500 (CDT) Message-Id: From: kward@panther.net (Keith Ward) Subject: Re: Auto responder. To: flaboy@gnv.fdt.net (Joe) Date: Wed, 12 May 1999 06:52:04 -0500 (CDT) Cc: ndear@areti.net, freebsd-isp@FreeBSD.ORG In-Reply-To: from "Joe" at May 11, 99 10:58:11 am X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 2799 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Along with checking for X-Loop, I would also recommend you check for the 'Precedence: bulk' header, some lists don't use the X-Loop convention, and bounce mail (ie, MAIL-DAEMON generated) will normally just use the Precedence header. Keith According to the writings of Joe > > Here's the one we use: > > This is in /usr/local/etc, and called vacation.filter (as noted int he > .procmailrc file below) > > SHELL=/bin/sh # for other shells, this might need adjustment > > :0 Whc: vacation.lock > # Perform a quick check to see if the mail was addressed to us > * $^To:.*${LOGNAME} > # Don't reply to daemons and mailinglists > * !^FROM_DAEMON > # Mail loops are evil > * !^X-Loop: ${LOGNAME}@fdt\.net > | formail -rD 8192 vacation.cache > > :0 ehc # if the name was not in the cache > | (formail -rA"Precedence: junk" \ > -A"X-Loop: $LOGNAME@fdt.net" -i"Subject: $LOGNAME is away"; \ > cat $MAILDIR/vacation.msg ; \ > cat $HOME/.signature 2>/dev/null\ > ) | $SENDMAIL -oi -t > > > And here's the .procmailrc that calls it: > > SHELL=/bin/sh > PATH=$HOME/bin:/usr/bin:/bin:/usr/local/bin: > MAILDIR=$HOME/mail # You'd better make sure it exists > LOGFILE=$MAILDIR/procmail.log > SENDMAIL=/usr/sbin/sendmail > VERBOSE=no > #VERBOSE=yes > > #test vacation > #INCLUDERC=/usr/local/etc/vacation.filter > > > of course uncomment it :) > > In your /mail directory, you need a file called vacation.msg where you put > the notice anyone gets that writes to you. > > It also generates a vacation.cache file in /mail so that only one > recepient per email address gets it. Delete this so the same person can > get your reply over and over if that's what you want. > > You need to edit the vacation.filter file for your own domain to prevent > mail loops, obviously the fdt entries should be replaced with your domain > entries. > > Cheers! > > Joe Barnhart > Network Administrator > FDT.NET > > On Tue, 11 May 1999, Nicholas J. Dear wrote: > > > Hi, > > > > I'm in urgent need of a decent auto responder. Doesn't need to be particulary > > advanced, just something simple. Should work via a .forward file in a users > > account. I've searched for "vacation" which I used before, but to no avail. > > > > TIA. > > N. > > -- > > Nicholas J. Dear > > Mail: ndear@areti.net Tel: +44 (0)181-402-9689 > > Areti Internet Ltd., http://www.areti.co.uk/ > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message > -- Keith Ward N5OOD kward@Panther.net ...!rwsys!rowdy!kward =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= I don't suffer from insanity, I enjoy every minute of it. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message