Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Vacation time again

Status
Not open for further replies.

hpicken

Technical User
Apr 12, 2001
142
AU
It's time I put in some vacation
files on my sendmail server, at
least while I'm away.

I'm on several mailing lists and
I really don't want to send back
a whole heap to the lists.

Does anyone know of a way to
include an exempt file for the
vacation function?

Howard
 
I use this procmailrc recipe. It creates a file in your /var/spool/mqueue with addressesthat have already been notified, so it won't send another notification to same sender. Note, the me is my email name. Hope this helps...

:0 Whc: me.lock
# Perform a quick check to see if the mail was addressed to us
* $^To:.*me
# Don't reply to daemons and mailinglists
* !^FROM_DAEMON
# Mail loops are evil
* !^X-Loop: me@domain.com
| formail -rD 8192 me.cache
:0 ehc # if the name was not in the cache
| (formail -rI"Precedence: junk" -A"X-Loop: me@domain.com " ; echo "I received your mail,"; echo "Thanks very much."; echo "-- "; cat $HOME/.signature ) | $SENDMAIL -oi -t

That's all. If you've never used procmail with your sendmail, email me & I'll try to help. There's a lot of good stuff on the internet.
Rouse01
stewartkc1@comcast.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top