xref: /csrg-svn/usr.sbin/sendmail/cf/m4/cf.m4 (revision 65203)
151222Sericdivert(0)dnl
251222Seric#
351222Seric# Copyright (c) 1983 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')
28*65203Sericundefine(`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__')')
3559619Sericdefine(`OSTYPE', `PUSHDIVERT(-1)define(`_ARG_', $2)include(../ostype/$1.m4)POPDIVERT`'')
3651307Sericdefine(`MAILER',
3751321Seric`ifdef(`_MAILER_$1_', `dnl`'',
3856768Seric`define(`_MAILER_$1_', `')PUSHDIVERT(7)include(../mailer/$1.m4)POPDIVERT`'')')
3959619Sericdefine(`DOMAIN', `PUSHDIVERT(-1)define(`_ARG_', $2)include(../domain/$1.m4)POPDIVERT`'')
4059619Sericdefine(`FEATURE', `PUSHDIVERT(-1)define(`_ARG_', $2)include(../feature/$1.m4)POPDIVERT`'')
4159619Sericdefine(`HACK', `PUSHDIVERT(-1)define(`_ARG_', $2)include(../hack/$1.m4)POPDIVERT`'')
4256768Sericdefine(`OLDSENDMAIL', `define(`_OLD_SENDMAIL_', `')')
4351242Sericdefine(`VERSIONID', ``#####  $1  #####'')
4458678Sericdefine(`LOCAL_RULE_0', `divert(3)')
4558678Sericdefine(`LOCAL_RULE_1',
4658678Seric`divert(9)dnl
4758678Seric#######################################
4858678Seric###  Ruleset 1 -- Sender Rewriting  ###
4958678Seric#######################################
5058678Seric
5158678SericS1
5258678Seric')
5358678Sericdefine(`LOCAL_RULE_2',
5458678Seric`divert(9)dnl
5558678Seric##########################################
5658678Seric###  Ruleset 2 -- Recipient Rewriting  ###
5758678Seric##########################################
5858678Seric
5958678SericS2
6058678Seric')
6151222Sericdefine(`LOCAL_RULE_3', `divert(2)')
6251889Sericdefine(`LOCAL_CONFIG', `divert(6)')
6358070Sericdefine(`LOCAL_NET_CONFIG', `define(`_LOCAL_RULES_', 1)divert(1)')
6451260Sericdefine(`UUCPSMTP', `R DOL(*) < @ $1 .UUCP > DOL(*)	DOL(1) < @ $2 > DOL(2)')
6551222Sericdefine(`CONCAT', `$1$2$3$4$5$6$7')
6651239Sericdefine(`DOL', ``$'$1')
6751260Sericdefine(`SITECONFIG',
6851280Seric`CONCAT(D, $3, $2)
6956768Sericdefine(`_CLASS_$3_', `')dnl
7051298Sericifelse($3, U, Cw$2, `dnl')
7151280Sericdefine(`SITE', `ifelse(CONCAT($'2`, $3), SU,
7251280Seric		CONCAT(CY, $'1`),
7351280Seric		CONCAT(C, $3, $'1`))')
7451260Sericsinclude(../siteconfig/$1.m4)')
7557245Sericdefine(`EXPOSED_USER', `PUSHDIVERT(5)CE$1
7651278SericPOPDIVERT`'dnl')
7757245Sericdefine(`LOCAL_USER', `PUSHDIVERT(5)CL$1
7857245SericPOPDIVERT`'dnl')
7957245Sericdefine(`MASQUERADE_AS', `define(`MASQUERADE_NAME', $1)')
8051222Seric
8156775Sericm4wrap(`include(`../m4/proto.m4')')
8251242Seric
8358177Seric# set up default values for options
8457944Sericdefine(`confMAILER_NAME', ``MAILER-DAEMON'')
8558679Sericdefine(`confFROM_LINE', `From $g  $d')
8657944Sericdefine(`confOPERATORS', `.:%@!^/[]')
8757944Sericdefine(`confSMTP_LOGIN_MSG', `$j Sendmail $v/$Z ready at $b')
8859890Sericdefine(`confSEVEN_BIT_INPUT', `False')
8957944Sericdefine(`confALIAS_WAIT', `10')
9058083Sericdefine(`confMIN_FREE_BLOCKS', `4')
9157944Sericdefine(`confBLANK_SUB', `.')
9257944Sericdefine(`confCON_EXPENSIVE', `False')
9357944Sericdefine(`confCHECKPOINT_INTERVAL', `10')
9457944Sericdefine(`confDELIVERY_MODE', `background')
9557944Sericdefine(`confAUTO_REBUILD', `False')
9657944Sericdefine(`confSAVE_FROM_LINES', `False')
9757944Sericdefine(`confTEMP_FILE_MODE', `0600')
9858009Sericdefine(`confMATCH_GECOS', `False')
9957944Sericdefine(`confDEF_GROUP_ID', `1')
10057944Sericdefine(`confMAX_HOP', `17')
10157944Sericdefine(`confIGNORE_DOTS', `False')
10257944Sericdefine(`confBIND_OPTS', `')
10357944Sericdefine(`confMCI_CACHE_SIZE', `2')
10457944Sericdefine(`confMCI_CACHE_TIMEOUT', `5m')
10561467Sericdefine(`confUSE_ERRORS_TO', `False')
10657944Sericdefine(`confLOG_LEVEL', `9')
10757944Sericdefine(`confME_TOO', `False')
10857944Sericdefine(`confCHECK_ALIASES', `True')
10957944Sericdefine(`confOLD_STYLE_HEADERS', `True')
11058807Sericdefine(`confPRIVACY_FLAGS', `authwarnings')
11157944Sericdefine(`confSAFE_QUEUE', `True')
11258807Sericdefine(`confMESSAGE_TIMEOUT', `5d/4h')
11357944Sericdefine(`confTIME_ZONE', `USE_SYSTEM')
11457944Sericdefine(`confDEF_USER_ID', `1')
11557944Sericdefine(`confQUEUE_LA', `8')
11657944Sericdefine(`confREFUSE_LA', `12')
11757944Sericdefine(`confSEPARATE_PROC', `False')
11858406Sericdefine(`confCW_FILE', `/etc/sendmail.cw')
11959890Sericdefine(`confMIME_FORMAT_ERRORS', `True')
12063856Sericdefine(`confTRY_NULL_MX_LIST', `False')
12157944Seric
12251222Sericdivert(0)dnl
123*65203SericVERSIONID(`@(#)cf.m4	8.3 (Berkeley) 12/22/93')
124