From owner-freebsd-isp Tue May 11 7:58:45 1999 Delivered-To: freebsd-isp@freebsd.org Received: from yoda.fdt.net (yoda.fdt.net [209.212.128.32]) by hub.freebsd.org (Postfix) with ESMTP id 4C50714F9F for ; Tue, 11 May 1999 07:58:38 -0700 (PDT) (envelope-from flaboy@gnv.fdt.net) Received: from localhost (flaboy@localhost) by yoda.fdt.net with ESMTP id KAA28768; Tue, 11 May 1999 10:58:11 -0400 Date: Tue, 11 May 1999 10:58:11 -0400 (EDT) From: Joe X-Sender: flaboy@yoda.fdt.net To: "Nicholas J. Dear" Cc: freebsd-isp@FreeBSD.ORG Subject: Re: Auto responder. In-Reply-To: <199905111445.PAA17336@post.mail.areti.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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