xref: /csrg-svn/usr.sbin/sendmail/cf/m4/cf.m4 (revision 69656)
151222Sericdivert(0)dnl
251222Seric#
368840Seric# Copyright (c) 1983, 1995 Eric P. Allman
462500Sbostic# Copyright (c) 1988, 1993
562500Sbostic#	The Regents of the University of California.  All rights reserved.
651222Seric#
751222Seric# %sccs.include.redist.sh%
851222Seric#
951222Seric
1051222Seric
1151222Seric######################################################################
1251222Seric######################################################################
1351222Seric#####
1451222Seric#####		SENDMAIL CONFIGURATION FILE
1551222Seric#####
1651222Sericdefine(`TEMPFILE', maketemp(/tmp/cfXXXXXX))dnl
1751222Sericsyscmd(sh ../sh/makeinfo.sh > TEMPFILE)dnl
1851222Sericinclude(TEMPFILE)dnl
1951222Sericsyscmd(rm -f TEMPFILE)dnl
2051222Seric#####
2151222Seric######################################################################
2251222Seric######################################################################
2351222Seric
2451222Sericdivert(-1)
2551222Seric
2660893Sericchangecom()
2759621Sericundefine(`format')
2865203Sericundefine(`hpux')
2956792Sericifdef(`pushdef', `',
3056792Seric	`errprint(`You need a newer version of M4, at least as new as
3156792SericSystem V or GNU')
3256792Seric	include(NoSuchFile)')
3351222Sericdefine(`PUSHDIVERT', `pushdef(`__D__', divnum)divert($1)')
3451222Sericdefine(`POPDIVERT', `divert(__D__)popdef(`__D__')')
3568830Sericdefine(`OSTYPE',
3668830Seric	`PUSHDIVERT(-1)
3768830Seric	ifdef(`__OSTYPE__', `errprint(`duplicate OSTYPE')')
3868830Seric	define(`__OSTYPE__', $1)
3968830Seric	define(`_ARG_', $2)
4068843Seric	include(../ostype/$1.m4)POPDIVERT`'')
4151307Sericdefine(`MAILER',
4251321Seric`ifdef(`_MAILER_$1_', `dnl`'',
4356768Seric`define(`_MAILER_$1_', `')PUSHDIVERT(7)include(../mailer/$1.m4)POPDIVERT`'')')
4459619Sericdefine(`DOMAIN', `PUSHDIVERT(-1)define(`_ARG_', $2)include(../domain/$1.m4)POPDIVERT`'')
4559619Sericdefine(`FEATURE', `PUSHDIVERT(-1)define(`_ARG_', $2)include(../feature/$1.m4)POPDIVERT`'')
4659619Sericdefine(`HACK', `PUSHDIVERT(-1)define(`_ARG_', $2)include(../hack/$1.m4)POPDIVERT`'')
4751242Sericdefine(`VERSIONID', ``#####  $1  #####'')
4858678Sericdefine(`LOCAL_RULE_0', `divert(3)')
4958678Sericdefine(`LOCAL_RULE_1',
5058678Seric`divert(9)dnl
5158678Seric#######################################
5258678Seric###  Ruleset 1 -- Sender Rewriting  ###
5358678Seric#######################################
5458678Seric
5558678SericS1
5658678Seric')
5758678Sericdefine(`LOCAL_RULE_2',
5858678Seric`divert(9)dnl
5958678Seric##########################################
6058678Seric###  Ruleset 2 -- Recipient Rewriting  ###
6158678Seric##########################################
6258678Seric
6358678SericS2
6458678Seric')
6551222Sericdefine(`LOCAL_RULE_3', `divert(2)')
6651889Sericdefine(`LOCAL_CONFIG', `divert(6)')
6758070Sericdefine(`LOCAL_NET_CONFIG', `define(`_LOCAL_RULES_', 1)divert(1)')
6851260Sericdefine(`UUCPSMTP', `R DOL(*) < @ $1 .UUCP > DOL(*)	DOL(1) < @ $2 > DOL(2)')
6951222Sericdefine(`CONCAT', `$1$2$3$4$5$6$7')
7051239Sericdefine(`DOL', ``$'$1')
7151260Sericdefine(`SITECONFIG',
7251280Seric`CONCAT(D, $3, $2)
7356768Sericdefine(`_CLASS_$3_', `')dnl
7465207Sericifelse($3, U, Cw$2 $2.UUCP, `dnl')
7551280Sericdefine(`SITE', `ifelse(CONCAT($'2`, $3), SU,
7651280Seric		CONCAT(CY, $'1`),
7751280Seric		CONCAT(C, $3, $'1`))')
7851260Sericsinclude(../siteconfig/$1.m4)')
7957245Sericdefine(`EXPOSED_USER', `PUSHDIVERT(5)CE$1
8051278SericPOPDIVERT`'dnl')
8157245Sericdefine(`LOCAL_USER', `PUSHDIVERT(5)CL$1
8257245SericPOPDIVERT`'dnl')
8357245Sericdefine(`MASQUERADE_AS', `define(`MASQUERADE_NAME', $1)')
8468893Sericdefine(`_OPTINS', `ifdef(`$1', `$2$1$3')')
8551222Seric
8656775Sericm4wrap(`include(`../m4/proto.m4')')
8751242Seric
8858177Seric# set up default values for options
8957944Sericdefine(`confMAILER_NAME', ``MAILER-DAEMON'')
9058679Sericdefine(`confFROM_LINE', `From $g  $d')
9167928Sericdefine(`confOPERATORS', `.:%@!^/[]+')
9268768Sericdefine(`confSMTP_LOGIN_MSG', `$j Sendmail $v/$Z; $b')
9367819Sericdefine(`confRECEIVED_HEADER', `$?sfrom $s $.$?_($?s$|from $.$_) $.by $j ($v/$Z)$?r with $r$. id $i$?u for $u$.; $b')
9459890Sericdefine(`confSEVEN_BIT_INPUT', `False')
9567550Sericdefine(`confEIGHT_BIT_HANDLING', `pass8')
9657944Sericdefine(`confALIAS_WAIT', `10')
9768651Sericdefine(`confMIN_FREE_BLOCKS', `100')
9857944Sericdefine(`confBLANK_SUB', `.')
9957944Sericdefine(`confCON_EXPENSIVE', `False')
10057944Sericdefine(`confDELIVERY_MODE', `background')
10157944Sericdefine(`confTEMP_FILE_MODE', `0600')
10257944Sericdefine(`confMCI_CACHE_SIZE', `2')
10357944Sericdefine(`confMCI_CACHE_TIMEOUT', `5m')
10461467Sericdefine(`confUSE_ERRORS_TO', `False')
10557944Sericdefine(`confLOG_LEVEL', `9')
106*69656Sericdefine(`confCHECK_ALIASES', `False')
10757944Sericdefine(`confOLD_STYLE_HEADERS', `True')
10858807Sericdefine(`confPRIVACY_FLAGS', `authwarnings')
10957944Sericdefine(`confSAFE_QUEUE', `True')
11058807Sericdefine(`confMESSAGE_TIMEOUT', `5d/4h')
11157944Sericdefine(`confTIME_ZONE', `USE_SYSTEM')
11268651Sericdefine(`confDEF_USER_ID', `1:1')
11358406Sericdefine(`confCW_FILE', `/etc/sendmail.cw')
11459890Sericdefine(`confMIME_FORMAT_ERRORS', `True')
11568651Sericdefine(`confFORWARD_PATH', `$z/.forward.$w:$z/.forward')
11657944Seric
11751222Sericdivert(0)dnl
118*69656SericVERSIONID(`@(#)cf.m4	8.20 (Berkeley) 05/24/95')
119