home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / base / root.15 / etc / mail / cf / m4 / cfhead.m4 / cfhead.m4
Encoding:
Text File  |  1998-08-19  |  5.9 KB  |  161 lines

  1. #
  2. # Copyright (c) 1983, 1995 Eric P. Allman
  3. # Copyright (c) 1988, 1993
  4. #    The Regents of the University of California.  All rights reserved.
  5. #
  6. # Redistribution and use in source and binary forms, with or without
  7. # modification, are permitted provided that the following conditions
  8. # are met:
  9. # 1. Redistributions of source code must retain the above copyright
  10. #    notice, this list of conditions and the following disclaimer.
  11. # 2. Redistributions in binary form must reproduce the above copyright
  12. #    notice, this list of conditions and the following disclaimer in the
  13. #    documentation and/or other materials provided with the distribution.
  14. # 3. All advertising materials mentioning features or use of this software
  15. #    must display the following acknowledgement:
  16. #    This product includes software developed by the University of
  17. #    California, Berkeley and its contributors.
  18. # 4. Neither the name of the University nor the names of its contributors
  19. #    may be used to endorse or promote products derived from this software
  20. #    without specific prior written permission.
  21. #
  22. # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  23. # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  24. # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  25. # ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  26. # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  27. # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  28. # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  29. # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  30. # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  31. # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  32. # SUCH DAMAGE.
  33. #
  34.  
  35. ######################################################################
  36. ######################################################################
  37. #####
  38. #####        SENDMAIL CONFIGURATION FILE
  39. #####
  40. define(`TEMPFILE', maketemp(/tmp/cfXXXXXX))dnl
  41. syscmd(sh _CF_DIR_`'sh/makeinfo.sh _CF_DIR_ > TEMPFILE)dnl
  42. include(TEMPFILE)dnl
  43. syscmd(rm -f TEMPFILE)dnl
  44. #####
  45. ######################################################################
  46. ######################################################################
  47.  
  48. divert(-1)
  49.  
  50. changecom()
  51. undefine(`format')
  52. undefine(`hpux')
  53. ifdef(`pushdef', `',
  54.     `errprint(`You need a newer version of M4, at least as new as
  55. System V or GNU')
  56.     include(NoSuchFile)')
  57. define(`PUSHDIVERT', `pushdef(`__D__', divnum)divert($1)')
  58. define(`POPDIVERT', `divert(__D__)popdef(`__D__')')
  59. define(`OSTYPE',
  60.     `PUSHDIVERT(-1)
  61.     ifdef(`__OSTYPE__', `errprint(`duplicate OSTYPE'($1))')
  62.     define(`__OSTYPE__', $1)
  63.     define(`_ARG_', $2)
  64.     include(_CF_DIR_`'ostype/$1.m4)POPDIVERT`'')
  65. define(`MAILER',
  66. `ifdef(`_MAILER_$1_', `dnl`'',
  67. `define(`_MAILER_$1_', `')PUSHDIVERT(7)include(_CF_DIR_`'mailer/$1.m4)POPDIVERT`'')')
  68. define(`DOMAIN', `PUSHDIVERT(-1)define(`_ARG_', $2)include(_CF_DIR_`'domain/$1.m4)POPDIVERT`'')
  69. define(`FEATURE', `PUSHDIVERT(-1)define(`_ARG_', $2)include(_CF_DIR_`'feature/$1.m4)POPDIVERT`'')
  70. define(`HACK', `PUSHDIVERT(-1)define(`_ARG_', $2)include(_CF_DIR_`'hack/$1.m4)POPDIVERT`'')
  71. define(`VERSIONID', ``#####  $1  #####'')
  72. define(`LOCAL_RULE_0', `divert(3)')
  73. define(`LOCAL_RULE_1',
  74. `divert(9)dnl
  75. #######################################
  76. ###  Ruleset 1 -- Sender Rewriting  ###
  77. #######################################
  78.  
  79. S1
  80. ')
  81. define(`LOCAL_RULE_2',
  82. `divert(9)dnl
  83. ##########################################
  84. ###  Ruleset 2 -- Recipient Rewriting  ###
  85. ##########################################
  86.  
  87. S2
  88. ')
  89. define(`LOCAL_RULESETS',
  90. `divert(9)
  91.  
  92. ')
  93. define(`LOCAL_RULE_3', `divert(2)')
  94. define(`LOCAL_CONFIG', `divert(6)')
  95. define(`MAILER_DEFINITIONS', `divert(7)')
  96. define(`LOCAL_NET_CONFIG', `define(`_LOCAL_RULES_', 1)divert(1)')
  97. define(`UUCPSMTP', `R DOL(*) < @ $1 .UUCP > DOL(*)    DOL(1) < @ $2 > DOL(2)')
  98. define(`CONCAT', `$1$2$3$4$5$6$7')
  99. define(`DOL', ``$'$1')
  100. define(`SITECONFIG',
  101. `CONCAT(D, $3, $2)
  102. define(`_CLASS_$3_', `')dnl
  103. ifelse($3, U, Cw$2 $2.UUCP, `dnl')
  104. define(`SITE', `ifelse(CONCAT($'2`, $3), SU,
  105.         CONCAT(CY, $'1`),
  106.         CONCAT(C, $3, $'1`))')
  107. sinclude(_CF_DIR_`'siteconfig/$1.m4)')
  108. define(`EXPOSED_USER', `PUSHDIVERT(5)CE$1
  109. POPDIVERT`'dnl`'')
  110. define(`LOCAL_USER', `PUSHDIVERT(5)CL$1
  111. POPDIVERT`'dnl`'')
  112. define(`MASQUERADE_AS', `define(`MASQUERADE_NAME', $1)')
  113. define(`MASQUERADE_DOMAIN', `PUSHDIVERT(5)CM$1
  114. POPDIVERT`'dnl`'')
  115. define(`MASQUERADE_DOMAIN_FILE', `PUSHDIVERT(5)FM$1
  116. POPDIVERT`'dnl`'')
  117. define(`GENERICS_DOMAIN', `PUSHDIVERT(5)CG$1
  118. POPDIVERT`'dnl`'')
  119. define(`GENERICS_DOMAIN_FILE', `PUSHDIVERT(5)FG$1
  120. POPDIVERT`'dnl`'')
  121. define(`_OPTINS', `ifdef(`$1', `$2$1$3')')
  122.  
  123. m4wrap(`include(_CF_DIR_`m4/proto.m4')')
  124.  
  125. # set up default values for options
  126. define(`ALIAS_FILE', `/etc/aliases')
  127. define(`confMAILER_NAME', ``MAILER-DAEMON'')
  128. define(`confFROM_LINE', `From $g  $d')
  129. define(`confOPERATORS', `.:%@!^/[]+')
  130. define(`confSMTP_LOGIN_MSG', `$j Sendmail $v/$Z; $b')
  131. define(`confRECEIVED_HEADER', `$?sfrom $s $.$?_($?s$|from $.$_)
  132.     $.by $j ($v/$Z)$?r with $r$. id $i$?u
  133.     for $u; $|;
  134.     $.$b')
  135. define(`confSEVEN_BIT_INPUT', `False')
  136. define(`confEIGHT_BIT_HANDLING', `pass8')
  137. define(`confALIAS_WAIT', `10')
  138. define(`confMIN_FREE_BLOCKS', `100')
  139. define(`confBLANK_SUB', `.')
  140. define(`confCON_EXPENSIVE', `False')
  141. define(`confDELIVERY_MODE', `background')
  142. define(`confTEMP_FILE_MODE', `0600')
  143. define(`confMCI_CACHE_SIZE', `2')
  144. define(`confMCI_CACHE_TIMEOUT', `5m')
  145. define(`confUSE_ERRORS_TO', `False')
  146. define(`confLOG_LEVEL', `9')
  147. define(`confCHECK_ALIASES', `False')
  148. define(`confOLD_STYLE_HEADERS', `True')
  149. define(`confPRIVACY_FLAGS', `authwarnings')
  150. define(`confSAFE_QUEUE', `True')
  151. define(`confTO_QUEUERETURN', `5d')
  152. define(`confTO_QUEUEWARN', `4h')
  153. define(`confTIME_ZONE', `USE_SYSTEM')
  154. define(`confDEF_USER_ID', `1:1')
  155. define(`confCW_FILE', `/etc/sendmail.cw')
  156. define(`confMIME_FORMAT_ERRORS', `True')
  157. define(`confFORWARD_PATH', `$z/.forward.$w:$z/.forward')
  158.  
  159. divert(0)dnl
  160. VERSIONID(`@(#)cfhead.m4    8.9 (Berkeley) 1/18/97')
  161.