Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 May 1999 06:52:04 -0500 (CDT)
From:      kward@panther.net (Keith Ward)
To:        flaboy@gnv.fdt.net (Joe)
Cc:        ndear@areti.net, freebsd-isp@FreeBSD.ORG
Subject:   Re: Auto responder.
Message-ID:  <m10hXYT-0000oiC@rowdy.panther.net>
In-Reply-To: <Pine.LNX.4.05.9905111052560.27788-100000@yoda.fdt.net> from "Joe" at May 11, 99 10:58:11 am

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m10hXYT-0000oiC>