home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.ee.lbl.gov
/
2014.05.ftp.ee.lbl.gov.tar
/
ftp.ee.lbl.gov
/
sendmail.cf.shar
/
Makefile
next >
Wrap
Makefile
|
1994-08-28
|
4KB
|
202 lines
# @(#) $Header: Makefile,v 1.10 93/12/12 14:54:10 leres Exp $ (LBL)
#
# Sendmail configuration Makefile
# Craig Leres, November 30, 1989.
#
# Directions: To Configure a sendmail.cf for your host, first update
# the following defines. For "required" defines, you must supply something.
# "Optional" defines may be left empty or commented out.
#
#
# Simple hostname of this host. Required.
#
# Example:
#
# HOSTNAME= helios
#
HOSTNAME= helios
#
# Internet domain name. Required.
#
# Example:
#
# DOMAIN= ee.lbl.gov
#
DOMAIN= ee.lbl.gov
#
# Domain name used in outbound return addresses. Required.
#
# Example:
#
# RETURNNAME= ee.lbl.gov
#
RETURNNAME= ee.lbl.gov
#
# Domain hack. Optional.
#
# To accept mail at the current domain as local, comment out the
# following line.
#
# Note: Most hosts don't want this feature and should not comment out
# the line
#
DOMAINHACK= -e '/@(DOMAINHACK)/d'
#
# List of simple hostnames of clients or other hosts to accept mail for.
# Optional.
#
# Example:
#
# CLIENTS= ace daffy owl
#
CLIENTS= ace daffy owl
#
# Uucp name of host. Required.
#
# Example:
#
# UUCPNAME= ${HOSTNAME}
#
UUCPNAME= ${HOSTNAME}
#
# List of directly connected uucp sites. Optional.
#
# Example:
#
# DIRECTUUCP= ucbvax
#
DIRECTUUCP=
#
# Name of bitnet relay. Optional.
#
# Example:
#
# BITNETRELAY= csa2.lbl.gov
#
BITNETRELAY= csa2.lbl.gov
#
# Name of csnet relay. Optional.
#
# Example:
#
# CSNETRELAY= relay.cs.net
#
CSNETRELAY= relay.cs.net
#
# Name of hepnet relay. Optional.
#
# Example:
#
# HEPNETRELAY= csa2.lbl.gov
#
HEPNETRELAY= csa2.lbl.gov
#
# Name of mfenet relay. Optional.
#
# Example:
#
# MFENETRELAY= ccc.nmfecc.gov
#
MFENETRELAY= ccc.nmfecc.gov
#
# Name of uucp relay. Optional.
#
# Example:
#
# UUCPRELAY= ucbvax.berkeley.edu
#
UUCPRELAY= ucbvax.berkeley.edu
#
# Location of the local mail delivery program. Required
#
# Example:
#
# LMAIL= /bin/mail
#
LMAIL= /bin/mail
#
# Location of the aliases file. Required
#
# Example:
#
# ALIASES= /etc/aliases
#
ALIASES= /etc/aliases
#
# Location of the help file. Required
#
# Example:
#
# HELPFILE= /usr/lib/sendmail.hf
#
HELPFILE= /usr/lib/sendmail.hf
#
# Location of the mqueue directory. Required
#
# Example:
#
# MQUEUEDIR= /var/spool/mqueue
#
MQUEUEDIR= /var/spool/mqueue
#
# Location of the statistics file. Required
#
# Example:
#
# STATUSFILE= /usr/lib/sendmail.st
#
STATUSFILE= /usr/lib/sendmail.st
#
# List of "trusted" users. Required.
#
# Example:
#
# TRUSTED= root daemon leres
#
TRUSTED= root daemon leres
sendmail.cf: sendmail.cf.template Makefile
sed -e "s/@(HOSTNAME)/${HOSTNAME}/g" \
-e "s/@(DOMAIN)/${DOMAIN}/g" \
-e "s/@(RETURNNAME)/${RETURNNAME}/g" \
${DOMAINHACK} \
-e "s/@(CLIENTS)/${CLIENTS}/" -e '/^Cw$$/d' \
-e "s/@(DIRECTUUCP)/${DIRECTUUCP}/" -e '/^CV$$/d' \
-e "s/@(BITNETRELAY)/${BITNETRELAY}/" -e '/^DB$$/d' \
-e "s/@(CSNETRELAY)/${CSNETRELAY}/" -e '/^DC$$/d' \
-e "s/@(HEPNETRELAY)/${HEPNETRELAY}/" -e '/^DH$$/d' \
-e "s/@(MFENETRELAY)/${MFENETRELAY}/" -e '/^DM$$/d' \
-e "s/@(UUCPRELAY)/${UUCPRELAY}/" -e '/^DR$$/d' \
-e "s/@(UUCPNAME)/${UUCPNAME}/" -e '/^DU$$/d' -e '/^CU$$/d' \
-e "s,@(LMAIL),${LMAIL}," \
-e "s,@(ALIASES),${ALIASES}," \
-e "s,@(HELPFILE),${HELPFILE}," \
-e "s,@(MQUEUEDIR),${MQUEUEDIR}," \
-e "s,@(STATUSFILE),${STATUSFILE}," \
-e "s/@(TRUSTED)/${TRUSTED}/" \
sendmail.cf.template > sendmail.cf
shar: sendmail.cf.shar
sendmail.cf.shar: Makefile sendmail.cf.template
shar -v -c -p X Makefile sendmail.cf.template > sendmail.cf.shar