xref: /netbsd-src/external/bsd/am-utils/dist/scripts/lostaltmail.conf-sample (revision a53f50b9b44dc9467ccc9c464999b1d1c509cb0c)
1*a53f50b9Schristos# -*- perl -*-
2*a53f50b9Schristos##############################################################################
3*a53f50b9Schristos#									     #
4*a53f50b9Schristos#			CONFIGURABLE VALUES				     #
5*a53f50b9Schristos#									     #
6*a53f50b9Schristos##############################################################################
7*a53f50b9Schristos
8*a53f50b9Schristos$MAILGRUNT="postmaster";	# To whom to send log mail if mail is prefered.
9*a53f50b9Schristos
10*a53f50b9Schristos$TMPDIR="/tmp/";		# Place lostmail can do its dirty work.
11*a53f50b9Schristos
12*a53f50b9Schristos$LOCAL_LOCK_EXT=".lock";	# Name of file local mailer uses to lock
13*a53f50b9Schristos				# spool file.  This the correct setting for
14*a53f50b9Schristos				# /bin/mail
15*a53f50b9Schristos
16*a53f50b9Schristos$SYSTEM_FROM_ADDRESS="Mailer-Daemon";
17*a53f50b9Schristos
18*a53f50b9Schristos$MAILDIR="/var/alt_mail";	# What directory should I run out of.
19*a53f50b9Schristos$MAILER='/usr/lib/sendmail -t'; # Which mailer should I use.
20*a53f50b9Schristos
21*a53f50b9Schristos$LOCALMAILJUNK='.*~|\#.*|core';	# Files name patterns that might appear in
22*a53f50b9Schristos				# alt_mail and should be ignored. This REGEXP
23*a53f50b9Schristos				# gets or'ed with $MAILJUNK below.
24*a53f50b9Schristos
25*a53f50b9Schristos$SMTPHOST='localhost';		# The name of a local host which speaks SMTP
26*a53f50b9Schristos				# and knows *all* your aliases. You probably
27*a53f50b9Schristos				# don't want to change this.  If the machine
28*a53f50b9Schristos				# running lost_alt mail doesn't run an SMTP,
29*a53f50b9Schristos				# daemon then something is either wrong or you
30*a53f50b9Schristos				# should be setting `noverify' to prevent
31*a53f50b9Schristos				# SMTP verification.
32*a53f50b9Schristos
33*a53f50b9Schristos$HOSTNAME='localhost';		# Hostname to use for SMTP HELO
34*a53f50b9Schristos
35*a53f50b9Schristos# Subject of lost log mail message. Must define $MAILGRUNT.
36*a53f50b9Schristos# I overwrite this variable in the subroutine Clean_up. Please make sure I
37*a53f50b9Schristos# haven't noodle-headdly forgotten to remove that hack in the distribution!
38*a53f50b9Schristos# No newline here please. The script will insert it for you.
39*a53f50b9Schristos$LOG_SUBJECT="Log of lostmail resends";
40*a53f50b9Schristos
41*a53f50b9Schristos##############################################################################
42*a53f50b9Schristos#									     #
43*a53f50b9Schristos#			DEFAULTED CONFIGURATIONS			     #
44*a53f50b9Schristos#									     #
45*a53f50b9Schristos##############################################################################
46*a53f50b9Schristos
47*a53f50b9Schristos$LOGFILE="$TMPDIR" . "lostlog";
48*a53f50b9Schristos
49*a53f50b9Schristos
50*a53f50b9Schristos# MAILJUNK is a pattern of ignorable alt_mail files which are either common
51*a53f50b9Schristos# to most platforms or actually produced by this script.  You should customize
52*a53f50b9Schristos# this REGEXP by hacking at $LOCALMAILJUNK above.
53*a53f50b9Schristos$MAILJUNK='[a-z]\.[0-9]*|\.\.?|lost\+found';
54*a53f50b9Schristos
55*a53f50b9Schristos$LOCKEXT=".lostlock";		# our lock file extension. Should not need to
56*a53f50b9Schristos				# modify
57*a53f50b9Schristos
58*a53f50b9Schristos$MESSAGE_DELIM="^From[^:]";	# /bin/mail message delimiter. Your milage
59*a53f50b9Schristos				# may differ
60*a53f50b9Schristos
61*a53f50b9Schristos$HEADER_BODY_DELIM="\n";	# RFC 822 header-body delimiter.
62*a53f50b9Schristos
63*a53f50b9Schristos$RESENT_TO="Resent-To: ";	#
64*a53f50b9Schristos$RESENT_FROM="Resent-From: ";	# Resent headers (RFC 822).
65*a53f50b9Schristos$RESENT_DATE="Resent-Date: ";	#  You probably don't want to muck with these.
66*a53f50b9Schristos$RESENT_INFO="X-Resent-Info: ";	# (special one to alert folks about mail).
67*a53f50b9Schristos
68*a53f50b9Schristos
69*a53f50b9Schristos##############################################################################
70*a53f50b9Schristos#									     #
71*a53f50b9Schristos#			LOSTMAIL DEFINITIONS (DON'T TOUCH)		     #
72*a53f50b9Schristos#									     #
73*a53f50b9Schristos##############################################################################
74*a53f50b9Schristos
75*a53f50b9Schristos$FALSE=0;
76*a53f50b9Schristos$TRUE=(! $FALSE);
77*a53f50b9Schristos
78*a53f50b9Schristos$OK=$TRUE;
79*a53f50b9Schristos$ABORT_RESEND=2;
80*a53f50b9Schristos$LOCK_RETRIES=10;	# The number of seconds/retries lost mail
81*a53f50b9Schristos				#  should wait before requeing or aborting a
82*a53f50b9Schristos				# resend.
83*a53f50b9Schristos
84*a53f50b9SchristosTRUE;				# Ansures true return from include file.
85