home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume3 / gatech / part03 < prev    next >
Encoding:
Internet Message Format  |  1986-11-30  |  22.7 KB

  1. From: Gene Spafford <genrad!linus!gatech!spaf>
  2. Subject: GaTech Sendmail (Part 3 of 3)
  3. Newsgroups: mod.sources
  4. Approved: jpn@panda.UUCP
  5.  
  6. Mod.sources:  Volume 3, Issue 25
  7. Submitted by: Gene Spafford <ihnp4!gatech!spaf>
  8.  
  9.  
  10. #! /bin/sh
  11.  
  12. # Make a new directory for these sources, cd to it, and run kits 1 thru 3 
  13. # through sh.  When all 3 kits have been run, read README.
  14.  
  15. echo "This is GaTech Sendmail kit 3 (of 3).  If kit 3 is complete, the line"
  16. echo '"'"End of kit 3 (of 3)"'" will echo at the end.'
  17. echo ""
  18. export PATH || (echo "You didn't use sh, you clunch." ; kill $$)
  19. echo Extracting gatech.mc
  20. cat >gatech.mc <<'!STUFFY!FUNK!'
  21. ############################################################
  22. ############################################################
  23. #####
  24. #####        SENDMAIL CONFIGURATION FILE FOR GATECH
  25. #####
  26. #####    This one is the big daddy.  There is no "upstairs"
  27. #####    to bounce a message to -- except perhaps the CSnet
  28. #####
  29. #####    $Header: gatech.mc,v 5.1 85/10/13 20:38:16 spaf Release $
  30. #####
  31. ############################################################
  32. ############################################################
  33.  
  34.  
  35.  
  36. ############################################################
  37. ###    local info
  38. ############################################################
  39.  
  40. # internet hostname
  41. Cwgatech ga-tech georgia-tech
  42.  
  43. # override SMTP hostname to match Arpanet name
  44. Dj$w.CSNET
  45.  
  46. # Our UUCP hostname(s)
  47. DUgatech
  48. CUgatech GATech GaTech
  49.  
  50. include(csether.m4)
  51.  
  52. # Defined Gateway sites and so on.  Hosts are listed in files.
  53. #
  54. #     ARPA Gateway
  55. DAcsnet-relay
  56. FA/usr/lib/mail/arpa.hosts %s
  57. #
  58. #    BITNET gateway
  59. DBwiscvm.arpa
  60. FB/usr/lib/mail/bitnet.hosts %s
  61. #
  62. #     CSNET gateway
  63. DCcsnet-relay
  64. FC/usr/lib/mail/csnet.hosts %s
  65. #
  66. #       Gateway to Dec E-Net
  67. DEdecwrl.arpa
  68. FE/usr/lib/mail/decnet.hosts %s
  69. #
  70. #    Gateway to Mailnet.
  71. DMmit-multics.arpa
  72. FM/usr/lib/mail/mailnet.hosts %s
  73. #
  74. #    UUCP network
  75. #  (no gateway host)
  76. FX/usr/lib/mail/uucp.hosts %s
  77. #
  78. #    OZ gateway
  79. #    (no list of sites)
  80. DZmunnari.uucp
  81.  
  82.  
  83. # we have full sendmail support here
  84. Oa
  85.  
  86. include(gtbase.m4)
  87.  
  88. ################################################
  89. ###  Machine dependent part of ruleset zero  ###
  90. ################################################
  91.  
  92.  
  93. #     Resolve names that can go via the ethernet
  94. R$*<@$*$=S.LOCAL>$*        $#ether$@$3$:$1<@$2$3.$D>$4    user@etherhost
  95.  
  96. #     Resolve local UUCP links (all others)
  97. R<@$+.$-.UUCP>:$+    $#uucp$@$2$:@$1.$2.UUCP:$3    @host.domain.UUCP: ...
  98. R<@$-.UUCP>:$+        $#uucp$@$1$:$2            @host.UUCP: ...
  99. R$+<@$+.$-.UUCP>    $#uucp$@$3$:$1@$2.$3.UUCP    user@host.domain.UUCP
  100. R$+<@$-.UUCP>        $#uucp$@$2$:$1            user@host.UUCP
  101.  
  102. #
  103. #    Resolution of the CSNET, ARPA, BITNET and MAILNET domains should really
  104. #    have some sort of provision for addresses of the form:
  105. #    "@domain.XXX:rest-of-address" similar to the UUCP stuff
  106. #
  107.  
  108. #    Resolve ARPA names - these go by way of the PMDF mailer.
  109. #       If we had an Arpa link, we'd use the TCP mailer instead.
  110. R$+<@$*.$=K>        $#pmdf$@$A$:$1<@$2.$3>        user@site.ARPA
  111.  
  112. # Current: send BITNET mail to a known gatewaying host (wiscvm.arpa)
  113. R$+<@$*.BITNET>        $@$>0$1%$2.BITNET<@$B>        user@site.BITNET
  114.  
  115. #    Resolve mail to the CSNET domain
  116. #        make sure to leave the "csnet" in the address
  117. R$+<@$*.CSNET>        $#pmdf$@$C$:$1<@$2.CSNET>    user@site.CSNET
  118.  
  119. #    Resolve addresses to the MAILNET domain - these are handled
  120. #        by the site in the $M macro.  We merely re-iterate rule 0
  121. #        to get to the site specified by $M.
  122. R$+<@$*.MAILNET>    $@$>0$1%$2.MAILNET<@$M>        user@site.MAILNET
  123.  
  124. #    Resolve DEC E-Net addresses
  125. R$+<@$*.DEC>        $@$>0$1%$2.DEC<@$E>        user@site.DEC
  126.  
  127. #    Resolve OZ addresses
  128. R$+<@$*.OZ>        $@$>0$2.OZ!$1<@$Z>        user@site.OZ
  129.  
  130. #    At this point we look for names of the form
  131. #    user@site and see if we can intuit a domain for
  132. #    "site".  If so, we append the domain and try all over again.
  133. R$+<@$*$=S>        $@$>0$1<@$2$3.$D>        Local host
  134. R$+<@$*$=W>        $@$>0$1<@$2$3.UUCP>        (local) UUCP host
  135. R$+<@$*$=C>        $@$>0$1<@$2$3.CSNET>        CSnet host
  136. R$+<@$*$=A>        $@$>0$1<@$2$3.ARPA>        Arpanet host
  137. R$+<@$*$=M>        $@$>0$1<@$2$3.MAILNET>        Mailnet host
  138. R$+<@$*$=X>        $@$>0$1<@$2$3.UUCP>        (other) UUCP host
  139. R$+<@$*$=B>        $@$>0$1<@$2$3.BITNET>        BITNET host
  140. R$+<@$*$=E>        $@$>0$1<@$3.DEC>        DEC E-Net host
  141.  
  142. #    Error on any names with a network in them here since we couldn't
  143. #    figure out where to send them.
  144. R$*<@$+>$*        $#error$:Unknown host or domain in address
  145.  
  146. # remaining names are local (since they aren't on any of our networks)
  147. R$+            $#local$:$1            everything else
  148.  
  149. ########################################
  150. ###  Host dependent address cleanup  ###
  151. ########################################
  152.  
  153. S8
  154. R$*$=U!$+@$+        $3@$4                drop uucp forward
  155.  
  156.  
  157. include(uumail.m4)
  158. include(pmdfm.m4)
  159. include(etherm.m4)
  160. !STUFFY!FUNK!
  161. echo Extracting Makefile
  162. cat >Makefile <<'!STUFFY!FUNK!'
  163. ######################################################################
  164. #
  165. #    Makefile for Sendmail GaTech configuration files
  166. #
  167. #        $Header: Makefile,v 5.5 85/10/13 21:17:06 spaf Release $
  168. #
  169. ######################################################################
  170.  
  171.  
  172. M4    = base.m4 csether.m4 etherm.m4 gtbase.m4 localm.m4 shortzero.m4 \
  173.       uucpm.m4 uumail.m4 version.m4 zerobase.m4 pmdfm.m4 short2.m4 \
  174.       short3.m4 
  175. MC    = gatech.mc stratus.mc nimbus.mc gitpyr.mc cirrus.mc gt-cmmsr.mc \
  176.       gtss.mc gtqo.mc
  177. SRCS=    $(MC) $(M4)
  178.  
  179. CSALL    = gatech.cf gitpyr.cf stratus.cf nimbus.cf cirrus.cf
  180. ALL    = $(CSALL) gt-cmmsr.cf gtss.cf gtqo.cf
  181.  
  182. GET=    co
  183.  
  184. .SUFFIXES: .mc .cf
  185.  
  186. .mc.cf:
  187.     m4 $*.mc > $*.cf
  188.  
  189. all: $(ALL)
  190.  
  191. shar:   
  192.     co -q -sRelease $(SRCS) Makefile MANIFEST README KEY PATCHES \
  193.     uumail.c overview.ms Files
  194.     shar -v -pX `sed -n '5,$$s/  .*//p' MANIFEST | tr '\12' '\40'` > sendmail.shar
  195.     compress -c < sendmail.shar > sendmail.shar.Z
  196.  
  197. cs:  $(CSALL)
  198.  
  199.  
  200. ############################
  201. #   special dependencies   #
  202. ############################
  203.  
  204. # all computer science department hosts....
  205. $(CSALL): csether.m4
  206.  
  207. # pessimize -- basic dependencies
  208. $(ALL): base.m4 localm.m4 uucpm.m4 version.m4 zerobase.m4 gtbase.m4
  209.  
  210. # hosts using MMDF/PMDF
  211. gatech.cf: pmdfm.m4
  212.  
  213. # Hosts using Ethernet/SMTP
  214. $(CSALL): etherm.m4 
  215. gtss.cf gtqo.cf: etherm.m4
  216.  
  217. # Hosts using optimized uucp mailer
  218. gatech.cf: uumail.m4
  219.  
  220. # Hosts using short definition
  221. stratus.cf: shortzero.m4
  222. nimbus.cf: shortzero.m4
  223. cirrus.cf: shortzero.m4
  224. gitpyr.cf: shortzero.m4
  225.  
  226. # Other cases
  227. gt-cmmsr.cf: short2.m4
  228. gtss.cf gtqo.cf: short3.m4
  229.  
  230. # Specifics on hosts
  231. gatech.cf: gatech.mc
  232. gitpyr.cf: gitpyr.mc
  233. stratus.cf: stratus.mc
  234. nimbus.cf: nimbus.mc
  235. cirrus.cf: cirrus.mc
  236. gt-cmmsr.cf: gt-cmmsr.mc
  237. gtss.cf: gtss.mc
  238. gtqo.cf: gtqo.mc
  239.  
  240. #####################
  241. #   administrivia   #
  242. #####################
  243.  
  244. sources: $(SRCS)
  245.  
  246. $(SRCS):
  247.     $(GET) $@
  248.  
  249. README MANIFEST overview.ms KEY Makefile Files:
  250.     $(GET) $@
  251.  
  252. clean:
  253.     rm -f *.cf a.out core make.out Make.errs
  254.  
  255. !STUFFY!FUNK!
  256. echo Extracting gtbase.m4
  257. cat >gtbase.m4 <<'!STUFFY!FUNK!'
  258. #################################################
  259. #
  260. #  General configuration information and so on
  261. #  Specific to GaTech sites
  262. #
  263. #  $Header: gtbase.m4,v 5.1 85/10/13 20:45:55 spaf Release $
  264. #
  265. #################################################
  266.  
  267. ######################
  268. #   General Macros   #
  269. ######################
  270.  
  271.  
  272. # local domain names
  273. DDGTNET
  274. CDgtnet GTNET GTNet GtNet GTnet
  275.  
  276. # My "top-level" domain (seen on Gatech)
  277. DTCSNET
  278.  
  279. # major relay host
  280. DRgatech
  281. CRgatech GATECH GATech Gatech GaTech GAtech
  282.  
  283. # and forwarding host for ether mail
  284. DFgatech
  285.  
  286. # my official hostname
  287. Dj$w.$D
  288.  
  289. # known top-level domains
  290. CTARPA UUCP BITNET CSNET MAILNET DEC EDU GOV MIL COM ORG NET OZ
  291.  
  292. # known Internet domains (we send on as if ARPA)
  293. CKARPA EDU GOV MIL COM ORG NET
  294.  
  295. # UUCP hosts that we talk to
  296. FW/usr/lib/mail/uucp.local
  297.  
  298.  
  299. include(base.m4)
  300.  
  301. #######################
  302. #   Rewriting rules   #
  303. #######################
  304.  
  305. ##### special local conversions
  306. S6
  307. # Recognize "old" syntax mistakes, like UUCP specifications of Ethernet
  308. #    hosts
  309. R$*<@$=W>$*        $1<@$2.UUCP>$3
  310. R$*<@$=S.UUCP>        $1<@$2.$D>            uucp-isms
  311. #
  312. R$*<@$*$=D>$*        $1<@$2LOCAL>$4            convert local domain
  313. R$*<@$=S>$*        $1<@$2.LOCAL>$3            user@localhost
  314. R$*<@$+$=S>$*        $1<@$2$3.LOCAL>$4        user@host.subdomain
  315. R$*<@$*$=D.$=T>$*    $1<@$2LOCAL>$4            catch "gtnet.csnet"
  316. R$*<@LOCAL>        $1                degenerate case
  317.  
  318. R$+%$+<@$R.LOCAL>    $1<@$2.LOCAL>            hacks for % syntax
  319. R$+%$=S<@$=S.LOCAL>    $1<@$2.LOCAL>            relayed internally
  320.  
  321. R$*<@$+.$=D.$=D>$*    $1<@$2.$3>$5            make gtnet top level
  322.  
  323. include(localm.m4)
  324.  
  325. include(zerobase.m4)
  326.  
  327. !STUFFY!FUNK!
  328. echo Extracting KEY
  329. cat >KEY <<'!STUFFY!FUNK!'
  330.         USES FOR MACROS AND CLASSES
  331.  
  332.     MACROS                CLASSES
  333.     ======                =======
  334.  
  335. A    arpanet relay            known arpanet hosts
  336. B    Bitnet relay (wiscvm.arpa)    known BITNET hosts
  337. C    CSnet-relay            known CSnet hosts
  338.  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
  339. D    full local domain name        (bottom) local domain names
  340. E       Decwrl.arpa            list of DEC E-net sites
  341. F    forwarding host, $R default    hosts that we cannot talk directly to
  342.  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
  343. G
  344. H    internet name            all names this host is known by
  345. I
  346.  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
  347. J
  348. K                    all known Internet domains
  349. L
  350.  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
  351. M    Mailnet relay site        known Mailnet hosts
  352. N
  353. O
  354.  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
  355. P
  356. Q
  357. R    Relay-host            Relay-host nicknames
  358.  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
  359. S                    known SMTP partners
  360. T    Outside domain            Top level domains
  361. U    (local) uucp name        (local) uucp nicknames
  362.  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
  363. V    Version number
  364. W    Local machine with UUCP links    uucp sites on $W machine
  365. X                    Known UUCP hosts
  366.  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
  367. Y    other machine with UUCP links    UUCP hosts connected to $Y machine
  368. Z       OZ gateway (munnari)
  369. !STUFFY!FUNK!
  370. echo Extracting zerobase.m4
  371. cat >zerobase.m4 <<'!STUFFY!FUNK!'
  372. ############################################################
  373. ############################################################
  374. #####
  375. #####        RULESET ZERO PREAMBLE
  376. #####
  377. #####    The beginning of ruleset zero is constant through all
  378. #####    configurations.
  379. #####
  380. #####    $Header: zerobase.m4,v 5.1 85/10/13 20:46:24 spaf Release $
  381. #####
  382. ############################################################
  383. ############################################################
  384.  
  385. S0
  386.  
  387. # first make canonical
  388. R$*<$*>$*        $1$2$3                defocus
  389. R$+            $:$>3$1                make canonical
  390.  
  391. # handle special cases.....
  392. R@            $#local$:MAILER-DAEMON        handle <> form
  393. #R$*<@[$+]>$*        $#tcp$@[$2]$:$1@[$2]$3        numeric internet spec
  394.  
  395. # arrange for local names to be fully qualified
  396. R$*<$*$=S>$*        $1<$2$3.LOCAL>$4        user@etherhost
  397.  
  398. # now delete the local info
  399. R$*<$*$=w.LOCAL>$*    $1<$2>$4            thishost.LOCAL
  400. R$*<$*$=w.$T>$*        $1<$2>$4            thishost.ARPA
  401. R$*<$*$=w>$*        $1<$2>$4            thishost
  402. R$*<$*.>$*        $1<$2>$3            drop trailing dot
  403. R<@>:$*            $@$>0$1                retry after route strip
  404. R$*<@>            $@$>0$1                strip null trash & retry
  405.  
  406. ##################################
  407. #  End of ruleset zero preamble  #
  408. ##################################
  409. !STUFFY!FUNK!
  410. echo Extracting uumail.m4
  411. cat >uumail.m4 <<'!STUFFY!FUNK!'
  412. ############################################################
  413. ############################################################
  414. #####
  415. #####      UUCP Mailer specification
  416. #####   This is for the rerouting mailer on Gatech
  417. #####
  418. #####      $Header: uumail.m4,v 5.1 85/10/13 20:46:17 spaf Release $
  419. #####
  420. ############################################################
  421. ############################################################
  422.  
  423. # use fancy path expanding UUCP frontend.
  424. Muucp,    P=/usr/lib/mail/uumail, F=sCDFMSU, S=13, R=23, M=65535,
  425.     A=uumail -f $g $h!$u
  426.  
  427. S13
  428. R$+            $:$>5$1                convert to old style
  429. R$=w!$+            $2                strip local name
  430. R$*<@$->$*        $1<@$2.UUCP>$3            resolve abbreviations
  431. R$*<@$*.UUCP>$*        $:$>5$1<@$2.UUCP>$3
  432. R$+            $:$U!$1                stick on our host name
  433. R$=w!$=R$+        $:$2$3
  434. R$*$=w!$=w$*        $1$U$4
  435.  
  436. S23
  437. R$*<@$-.LOCAL>$*    $1<@$2.UUCP>$3
  438. R$*<@$=S>$*        $1<@$2.UUCP>$3            resolve abbreviations
  439. R$*<@$R.$D.UUCP>$*    $1<@$2.UUCP>$3
  440. R$+!$+!$+<@$*.UUCP>$*    $2!$3<@$4.UUCP>$5        strip leading sites
  441. R$+!$+<@$*.UUCP>$*    $:$2<@$1.UUCP>$4        put in right sitename
  442.  
  443.  
  444. S5
  445. R$+<@$-.LOCAL>        $2!$1                u@h.LOCAL => u%h
  446. R$+<@$-.UUCP>        $2!$1                u@host.UUCP => host!u
  447. !STUFFY!FUNK!
  448. echo Extracting uucpm.m4
  449. cat >uucpm.m4 <<'!STUFFY!FUNK!'
  450. ############################################################
  451. ############################################################
  452. #####
  453. #####      UUCP Mailer specification
  454. #####
  455. #####      $Header: uucpm.m4,v 5.1 85/10/13 20:46:14 spaf Release $
  456. #####
  457. ############################################################
  458. ############################################################
  459.  
  460. Muucp,    P=/usr/bin/uux, F=sDFMuU, S=13, R=23, M=65535,
  461.     A=uux - -L -a$f -gC $h!rmail ($u)
  462.  
  463. S13
  464. R$+            $:$>5$1                convert to old style
  465. R$=w!$+            $2                strip local name
  466. R$*<@$->$*        $1<@$2.UUCP>$3            resolve abbreviations
  467. R$*<@$*.UUCP>$*        $:$>5$1<@$2.UUCP>$3
  468. R$+            $:$U!$1                stick on our host name
  469. R$=w!$=R$+        $:$2$3
  470. R$*$=w!$=w$*        $1$U$4
  471.  
  472. S23
  473. R$+            $:$>5$1                convert to old style
  474. R$*<@$=S>$*        $1<@$2.$D.UUCP>$3        resolve abbreviations
  475. R$*<@$R.$D.UUCP>$*    $1<@$2.UUCP>$3
  476.  
  477.  
  478. S5
  479. R$+<@$-.LOCAL>        $1%$2                u@h.LOCAL => u%h
  480. R$+<@$-.UUCP>        $2!$1                u@host.UUCP => host!u
  481. R$+@$+.$=T        $1@$2                u@host.ARPA => u@host
  482. !STUFFY!FUNK!
  483. echo Extracting short3.m4
  484. cat >short3.m4 <<'!STUFFY!FUNK!'
  485. ################################################
  486. ###  Machine dependent part of ruleset zero  
  487. ###
  488. ###  Short version for non-ICS machines on their own common
  489. ###  ethernet.  Forwarding host is "gatech"
  490. ###
  491. ###  $Header: short3.m4,v 5.1 85/10/13 20:46:08 spaf Release $
  492. ################################################
  493.  
  494. # resolve names that we can handle locally
  495. R<@$=W.UUCP>$+        $#uucp$@$1$:$2            @host.UUCP: ...
  496. R$+<@$=W.UUCP>        $#uucp$@$2$:$1            user@host.UUCP
  497.  
  498. # resolve names that can go via the ethernet
  499. R$*<@$*$=S.LOCAL>$*    $#ether$@$3$:$1<@$2$3.$D>$4    user@etherhost
  500.  
  501. # other non-local names will be kicked upstairs
  502. R$*<@$+>$*        $#uucp$@$F$:$1<@$2>$3        user@some.where
  503.  
  504. # remaining names must be local
  505. R$+            $#local$:$1            everything else
  506.  
  507. include(uucpm.m4)
  508. include(etherm.m4)
  509. !STUFFY!FUNK!
  510. echo Extracting shortzero.m4
  511. cat >shortzero.m4 <<'!STUFFY!FUNK!'
  512. ################################################
  513. ###  Machine dependent part of ruleset zero  
  514. ###
  515. ###  Short version for ICS machines on common
  516. ###  ethernet. (NOT "gatech")
  517. ###
  518. ###  $Header: shortzero.m4,v 5.1 85/10/13 20:46:11 spaf Release $
  519. ################################################
  520.  
  521. # resolve names that we can handle locally
  522. R<@$=W.UUCP>$+        $#uucp$@$1$:$2            @host.UUCP: ...
  523. R$+<@$=W.UUCP>        $#uucp$@$2$:$1            user@host.UUCP
  524.  
  525. # resolve names that can go via the ethernet
  526. R$*<@$*$=S.LOCAL>$*    $#ether$@$3$:$1<@$2$3.$D>$4    user@etherhost
  527.  
  528. # other non-local names will be kicked upstairs
  529. R$*<@$+>$*        $#ether$@$F$:$1<@$2>$3        user@some.where
  530.  
  531. # remaining names must be local
  532. R$+            $#local$:$1            everything else
  533.  
  534. include(uucpm.m4)
  535. include(etherm.m4)
  536. !STUFFY!FUNK!
  537. echo Extracting cirrus.mc
  538. cat >cirrus.mc <<'!STUFFY!FUNK!'
  539. ############################################################
  540. ############################################################
  541. #####
  542. #####        SENDMAIL CONFIGURATION FILE FOR CIRRUS
  543. #####
  544. #####    $Header: cirrus.mc,v 5.1 85/10/13 20:38:11 spaf Release $
  545. #####
  546. ############################################################
  547. ############################################################
  548.  
  549.  
  550.  
  551. ############################################################
  552. ###    local info
  553. ############################################################
  554.  
  555. # internet hostname
  556. Cwgt-cirrus cirrus Cirrus CIRRUS GT-Cirrus GT-CIRRUS GT-cirrus
  557.  
  558. # UUCP name
  559. DUgt-cirrus
  560. CUgt-cirrus cirrus
  561.  
  562. include(csether.m4)
  563. include(gtbase.m4)
  564. include(shortzero.m4)
  565. !STUFFY!FUNK!
  566. echo Extracting nimbus.mc
  567. cat >nimbus.mc <<'!STUFFY!FUNK!'
  568. ############################################################
  569. ############################################################
  570. #####
  571. #####        SENDMAIL CONFIGURATION FILE FOR NIMBUS
  572. #####
  573. #####    $Header: nimbus.mc,v 5.1 85/10/13 20:38:35 spaf Release $
  574. #####
  575. ############################################################
  576. ############################################################
  577.  
  578.  
  579.  
  580. ############################################################
  581. ###    local info
  582. ############################################################
  583.  
  584. # internet hostname
  585. Cwgt-nimbus nimbus NIMBUS Nimbus GT-Nimbus GT-nimbus GT-NIMBUS
  586.  
  587. # UUCP name
  588. DUgt-nimbus
  589. CUgt-nimbus nimbus
  590.  
  591. include(csether.m4)
  592. include(gtbase.m4)
  593. include(shortzero.m4)
  594. !STUFFY!FUNK!
  595. echo Extracting stratus.mc
  596. cat >stratus.mc <<'!STUFFY!FUNK!'
  597. ############################################################
  598. ############################################################
  599. #####
  600. #####        SENDMAIL CONFIGURATION FILE FOR STRATUS
  601. #####
  602. #####    $Header: stratus.mc,v 5.1 85/10/13 20:38:39 spaf Release $
  603. #####
  604. ############################################################
  605. ############################################################
  606.  
  607.  
  608.  
  609. ############################################################
  610. ###    local info
  611. ############################################################
  612.  
  613. # internet hostname
  614. Cwgt-stratus stratus STRATUS GT-Stratus GT-STRATUS
  615.  
  616. # UUCP name
  617. DUgt-stratus
  618. CUgt-stratus stratus
  619.  
  620. include(csether.m4)
  621. include(gtbase.m4)
  622. include(shortzero.m4)
  623. !STUFFY!FUNK!
  624. echo Extracting gtqo.mc
  625. cat >gtqo.mc <<'!STUFFY!FUNK!'
  626. ############################################################
  627. ############################################################
  628. #####
  629. #####        SENDMAIL CONFIGURATION FILE FOR GTQO
  630. #####
  631. #####    $Header: gtqo.mc,v 5.1 85/10/13 20:38:28 spaf Release $
  632. #####
  633. ############################################################
  634. ############################################################
  635.  
  636.  
  637.  
  638. ############################################################
  639. ###    local info
  640. ############################################################
  641.  
  642. # internet hostname
  643. Cwgtqo
  644.  
  645. # UUCP name
  646. DUgtqo
  647. CUgtqo gt-qo
  648.  
  649. # Ethernet stuff
  650. CS gtss gtqo gt-ss gt-qo
  651.  
  652. include(gtbase.m4)
  653. DRgtss
  654. CR
  655. CRgtss gt-ss
  656. DFgtss
  657. include(short3.m4)
  658. !STUFFY!FUNK!
  659. echo Extracting gtss.mc
  660. cat >gtss.mc <<'!STUFFY!FUNK!'
  661. ############################################################
  662. ############################################################
  663. #####
  664. #####        SENDMAIL CONFIGURATION FILE FOR GTSS
  665. #####
  666. #####    $Header: gtss.mc,v 5.1 85/10/13 20:38:32 spaf Release $
  667. #####
  668. ############################################################
  669. ############################################################
  670.  
  671.  
  672.  
  673. ############################################################
  674. ###    local info
  675. ############################################################
  676.  
  677. # internet hostname
  678. Cwgtss
  679.  
  680. # UUCP name
  681. DUgtss
  682. CUgtss gt-ss
  683.  
  684. # Ethernet stuff
  685. CS gtss gtqo gt-ss gt-qo
  686.  
  687. include(gtbase.m4)
  688. include(short3.m4)
  689. !STUFFY!FUNK!
  690. echo Extracting gt-cmmsr.mc
  691. cat >gt-cmmsr.mc <<'!STUFFY!FUNK!'
  692. ############################################################
  693. ############################################################
  694. #####
  695. #####        SENDMAIL CONFIGURATION FILE FOR GT-CMMSR
  696. #####
  697. #####    $Header: gt-cmmsr.mc,v 5.1 85/10/13 20:38:25 spaf Release $
  698. #####
  699. ############################################################
  700. ############################################################
  701.  
  702.  
  703.  
  704. ############################################################
  705. ###    local info
  706. ############################################################
  707.  
  708. # internet hostname
  709. Cwgt-cmmsr cmmsr gtcmmsr
  710.  
  711. # UUCP name
  712. DUgt-cmmsr
  713. CUgt-cmmsr cmmsr gtcmmsr
  714.  
  715. include(gtbase.m4)
  716. include(short2.m4)
  717. !STUFFY!FUNK!
  718. echo Extracting gitpyr.mc
  719. cat >gitpyr.mc <<'!STUFFY!FUNK!'
  720. ############################################################
  721. ############################################################
  722. #####
  723. #####        SENDMAIL CONFIGURATION FILE FOR GITPYR
  724. #####
  725. #####    $Header: gitpyr.mc,v 5.1 85/10/13 20:38:21 spaf Release $
  726. #####
  727. ############################################################
  728. ############################################################
  729.  
  730.  
  731.  
  732. ############################################################
  733. ###    local info
  734. ############################################################
  735.  
  736. # internet hostname
  737. Cwgitpyr Gitpyr GITPYR
  738.  
  739. # UUCP name
  740. DUgitpyr
  741. CUgitpyr
  742.  
  743. include(csether.m4)
  744. include(gtbase.m4)
  745. include(shortzero.m4)
  746. !STUFFY!FUNK!
  747. echo Extracting short2.m4
  748. cat >short2.m4 <<'!STUFFY!FUNK!'
  749. ################################################
  750. ###  Machine dependent part of ruleset zero  
  751. ###
  752. ###  Short version for non-ICS machines not on 
  753. ###  common ethernet. (e.g., gt-cmmsr)
  754. ###
  755. ###  $Header: short2.m4,v 5.1 85/10/13 20:46:05 spaf Release $
  756. ################################################
  757.  
  758. # resolve names that we can handle locally
  759. R<@$=W.UUCP>$+        $#uucp$@$1$:$2            @host.UUCP: ...
  760. R$+<@$=W.UUCP>        $#uucp$@$2$:$1            user@host.UUCP
  761.  
  762. # other non-local names will be kicked upstairs
  763. R$*<@$+>$*        $#uucp$@$F$:$1<@$2>$3        user@some.where
  764.  
  765. # remaining names must be local
  766. R$+            $#local$:$1            everything else
  767.  
  768. include(uucpm.m4)
  769. !STUFFY!FUNK!
  770. echo Extracting csether.m4
  771. cat >csether.m4 <<'!STUFFY!FUNK!'
  772. ############################################################
  773. ############################################################
  774. #####
  775. #####      ICS Etehernet based hosts using SMTP
  776. #####
  777. #####      $Header: csether.m4,v 5.1 85/10/13 20:45:48 spaf Release $
  778. #####
  779. ############################################################
  780. ############################################################
  781.  
  782. # known SMTP/ethernet hosts (this domain only) -- only $R need be complete
  783. CSgatech Gatech
  784. CSgitpyr Gitpyr
  785. CSgt-nimbus nimbus GT-Nimbus Nimbus
  786. CSgt-cirrus GT-Cirrus cirrus Cirrus
  787. CSgt-stratus stratus GT-Stratus Stratus
  788.  
  789. !STUFFY!FUNK!
  790. echo Extracting localm.m4
  791. cat >localm.m4 <<'!STUFFY!FUNK!'
  792. ############################################################
  793. ############################################################
  794. #####
  795. #####      Local and Program Mailer specification
  796. #####
  797. #####      $Header: localm.m4,v 5.1 85/10/13 20:45:58 spaf Release $
  798. #####
  799. ############################################################
  800. ############################################################
  801.  
  802. Mlocal,    P=/bin/mail, F=rlsDFMmn, S=10, A=mail -d $u
  803. Mprog,    P=/bin/sh,   F=lsDFMe,   S=10, A=sh -c $u
  804.  
  805. S10
  806. R@            MAILER-DAEMON            errors to mailer-daemon
  807. !STUFFY!FUNK!
  808. echo Extracting etherm.m4
  809. cat >etherm.m4 <<'!STUFFY!FUNK!'
  810. ############################################################
  811. ############################################################
  812. #####
  813. #####      Ethernet Mailer specification
  814. #####
  815. #####      $Header: etherm.m4,v 5.1 85/10/13 20:45:52 spaf Release $
  816. #####
  817. ############################################################
  818. ############################################################
  819.  
  820. Mether,    P=[IPC], F=msDFIMuCX, S=11, A=IPC $h
  821.  
  822. S11
  823. R$*<@$+>$*        $@$1<@$2>$3            already ok
  824. R$+            $@$1<@$w.LOCAL>            tack on our hostname
  825. !STUFFY!FUNK!
  826. echo Extracting version.m4
  827. cat >version.m4 <<'!STUFFY!FUNK!'
  828. #    $Header: version.m4,v 5.1 85/10/13 20:46:20 spaf Release $
  829.  
  830. DV5.8.GaTech
  831. !STUFFY!FUNK!
  832. echo ""
  833. echo "End of kit 3 (of 3)"
  834. cat /dev/null >kit3isdone
  835. config=true
  836. for iskit in 1 2 3; do
  837.     if test -f kit${iskit}isdone; then
  838.     echo "You have run kit ${iskit}."
  839.     else
  840.     echo "You still need to run kit ${iskit}."
  841.     config=false
  842.     fi
  843. done
  844. case $config in
  845.     true)
  846.     echo "You have run all your kits.  Please read README."
  847.     ;;
  848. esac
  849. : I do not append .signature, but someone might mail this.
  850. exit
  851.  
  852.