Commit | Line | Data |
---|---|---|
f25ecb3d EA |
1 | divert(0)dnl |
2 | # | |
3 | # Copyright (c) 1983 Eric P. Allman | |
4 | # Copyright (c) 1988 The Regents of the University of California. | |
5 | # All rights reserved. | |
6 | # | |
7 | # %sccs.include.redist.sh% | |
8 | # | |
f25ecb3d EA |
9 | |
10 | ||
11 | ###################################################################### | |
12 | ###################################################################### | |
13 | ##### | |
14 | ##### SENDMAIL CONFIGURATION FILE | |
15 | ##### | |
16 | define(`TEMPFILE', maketemp(/tmp/cfXXXXXX))dnl | |
17 | syscmd(sh ../sh/makeinfo.sh > TEMPFILE)dnl | |
18 | include(TEMPFILE)dnl | |
19 | syscmd(rm -f TEMPFILE)dnl | |
20 | ##### | |
21 | ###################################################################### | |
22 | ###################################################################### | |
23 | ||
24 | divert(-1) | |
25 | ||
b89c26b0 | 26 | changecom() |
a4d4631e | 27 | undefine(`format') |
a488845b EA |
28 | ifdef(`pushdef', `', |
29 | `errprint(`You need a newer version of M4, at least as new as | |
30 | System V or GNU') | |
31 | include(NoSuchFile)') | |
f25ecb3d EA |
32 | define(`PUSHDIVERT', `pushdef(`__D__', divnum)divert($1)') |
33 | define(`POPDIVERT', `divert(__D__)popdef(`__D__')') | |
3e78ac8f | 34 | define(`OSTYPE', `PUSHDIVERT(-1)define(`_ARG_', $2)include(../ostype/$1.m4)POPDIVERT`'') |
0eaaca3b | 35 | define(`MAILER', |
919c77c4 | 36 | `ifdef(`_MAILER_$1_', `dnl`'', |
b89c26b0 | 37 | `define(`_MAILER_$1_', `')PUSHDIVERT(7)include(../mailer/$1.m4)POPDIVERT`'')') |
3e78ac8f EA |
38 | define(`DOMAIN', `PUSHDIVERT(-1)define(`_ARG_', $2)include(../domain/$1.m4)POPDIVERT`'') |
39 | define(`FEATURE', `PUSHDIVERT(-1)define(`_ARG_', $2)include(../feature/$1.m4)POPDIVERT`'') | |
40 | define(`HACK', `PUSHDIVERT(-1)define(`_ARG_', $2)include(../hack/$1.m4)POPDIVERT`'') | |
b89c26b0 | 41 | define(`OLDSENDMAIL', `define(`_OLD_SENDMAIL_', `')') |
bfd0fd78 | 42 | define(`VERSIONID', ``##### $1 #####'') |
f25ecb3d | 43 | define(`LOCAL_RULE_0', `divert(3)') |
da9b1c77 EA |
44 | define(`LOCAL_RULE_1', |
45 | `divert(9)dnl | |
46 | ####################################### | |
47 | ### Ruleset 1 -- Sender Rewriting ### | |
48 | ####################################### | |
49 | ||
50 | S1 | |
51 | ') | |
52 | define(`LOCAL_RULE_2', | |
53 | `divert(9)dnl | |
54 | ########################################## | |
55 | ### Ruleset 2 -- Recipient Rewriting ### | |
56 | ########################################## | |
57 | ||
58 | S2 | |
59 | ') | |
60 | define(`LOCAL_RULE_3', `divert(2)') | |
dacf3c9f | 61 | define(`LOCAL_CONFIG', `divert(6)') |
97dcbde7 | 62 | define(`LOCAL_NET_CONFIG', `define(`_LOCAL_RULES_', 1)divert(1)') |
755e2424 | 63 | define(`UUCPSMTP', `R DOL(*) < @ $1 .UUCP > DOL(*) DOL(1) < @ $2 > DOL(2)') |
f25ecb3d | 64 | define(`CONCAT', `$1$2$3$4$5$6$7') |
e2a49225 | 65 | define(`DOL', ``$'$1') |
755e2424 | 66 | define(`SITECONFIG', |
cf00ebee | 67 | `CONCAT(D, $3, $2) |
b89c26b0 | 68 | define(`_CLASS_$3_', `')dnl |
b3f4cd64 | 69 | ifelse($3, U, Cw$2, `dnl') |
cf00ebee EA |
70 | define(`SITE', `ifelse(CONCAT($'2`, $3), SU, |
71 | CONCAT(CY, $'1`), | |
72 | CONCAT(C, $3, $'1`))') | |
755e2424 | 73 | sinclude(../siteconfig/$1.m4)') |
45eb1b8f | 74 | define(`EXPOSED_USER', `PUSHDIVERT(5)CE$1 |
3eb5f759 | 75 | POPDIVERT`'dnl') |
45eb1b8f EA |
76 | define(`LOCAL_USER', `PUSHDIVERT(5)CL$1 |
77 | POPDIVERT`'dnl') | |
78 | define(`MASQUERADE_AS', `define(`MASQUERADE_NAME', $1)') | |
f25ecb3d | 79 | |
0f98b7cf | 80 | m4wrap(`include(`../m4/proto.m4')') |
bfd0fd78 | 81 | |
dfb0d44d | 82 | # set up default values for options |
a151c868 | 83 | define(`confMAILER_NAME', ``MAILER-DAEMON'') |
e0a38185 | 84 | define(`confFROM_LINE', `From $g $d') |
a151c868 EA |
85 | define(`confOPERATORS', `.:%@!^/[]') |
86 | define(`confSMTP_LOGIN_MSG', `$j Sendmail $v/$Z ready at $b') | |
c9b23093 | 87 | define(`confSEVEN_BIT_INPUT', `False') |
a151c868 | 88 | define(`confALIAS_WAIT', `10') |
931f138e | 89 | define(`confMIN_FREE_BLOCKS', `4') |
a151c868 EA |
90 | define(`confBLANK_SUB', `.') |
91 | define(`confCON_EXPENSIVE', `False') | |
92 | define(`confCHECKPOINT_INTERVAL', `10') | |
93 | define(`confDELIVERY_MODE', `background') | |
94 | define(`confAUTO_REBUILD', `False') | |
95 | define(`confSAVE_FROM_LINES', `False') | |
96 | define(`confTEMP_FILE_MODE', `0600') | |
ca951d4a | 97 | define(`confMATCH_GECOS', `False') |
a151c868 EA |
98 | define(`confDEF_GROUP_ID', `1') |
99 | define(`confMAX_HOP', `17') | |
100 | define(`confIGNORE_DOTS', `False') | |
101 | define(`confBIND_OPTS', `') | |
102 | define(`confMCI_CACHE_SIZE', `2') | |
103 | define(`confMCI_CACHE_TIMEOUT', `5m') | |
104 | define(`confLOG_LEVEL', `9') | |
105 | define(`confME_TOO', `False') | |
106 | define(`confCHECK_ALIASES', `True') | |
107 | define(`confOLD_STYLE_HEADERS', `True') | |
88ce9b1c | 108 | define(`confPRIVACY_FLAGS', `authwarnings') |
a151c868 | 109 | define(`confSAFE_QUEUE', `True') |
88ce9b1c | 110 | define(`confMESSAGE_TIMEOUT', `5d/4h') |
a151c868 EA |
111 | define(`confTIME_ZONE', `USE_SYSTEM') |
112 | define(`confDEF_USER_ID', `1') | |
113 | define(`confQUEUE_LA', `8') | |
114 | define(`confREFUSE_LA', `12') | |
115 | define(`confSEPARATE_PROC', `False') | |
a719f50c | 116 | define(`confCW_FILE', `/etc/sendmail.cw') |
c9b23093 | 117 | define(`confMIME_FORMAT_ERRORS', `True') |
a151c868 | 118 | |
f25ecb3d | 119 | divert(0)dnl |
c9b23093 | 120 | VERSIONID(`@(#)cf.m4 6.15 (Berkeley) %G%') |