Annotation of cci/usr/src/usr.lib/sendmail/cf/medea.cf, revision 1.1.1.1

1.1       root        1: ############################################################
                      2: ############################################################
                      3: #####
                      4: #####          SENDMAIL CONFIGURATION FILE
                      5: #####
                      6: #####          @(#)medea.mc    4.1             7/25/83
                      7: #####
                      8: ############################################################
                      9: ############################################################
                     10: 
                     11: 
                     12: 
                     13: ############################################################
                     14: ###    local info
                     15: ############################################################
                     16: 
                     17: # internet hostname
                     18: Cwucbmedea medea
                     19: # obsolete names....
                     20: CwM image
                     21: 
                     22: #################################################
                     23: #
                     24: #      General configuration information
                     25: #
                     26: #      @(#)csbase.m4   4.3             8/21/83
                     27: #
                     28: #################################################
                     29: 
                     30: ######################
                     31: #   General Macros   #
                     32: ######################
                     33: 
                     34: # our arpanet gateway
                     35: DABerkeley
                     36: CABerkeley UCB ucbc70 c70 UCB-C70 u UCB-VAX ucbvax
                     37: 
                     38: # local domain names
                     39: DDBERKELEY
                     40: CDBERKELEY UCB ucbc70 c70 ucb-c70 u UCB-VAX ucbvax
                     41: 
                     42: # major relay host
                     43: DRUCBVAX
                     44: CRucbvax vax k
                     45: 
                     46: # my official hostname
                     47: Dj$w.ARPA
                     48: 
                     49: # known SMTP/ethernet hosts (this domain only) -- only $R need be complete
                     50: CSucbarpa arpa
                     51: CSucbbach bach ucbstatvax statvax
                     52: CSucbbrahms brahms mathstat
                     53: CSucbcad cad cad-a
                     54: CSucbcalder calder
                     55: CSucbcartan cartan
                     56: CSucbcory cory ucbokeeffe okeeffe
                     57: CSucbdali dali
                     58: CSucbdegas degas
                     59: # CSucbear ear
                     60: CSucbernie ernie
                     61: CSucbesvax esvax
                     62: CSucbic ic ucbic-ec ic-ec cad-b cad-ic
                     63: CSucbicw icw ucbicw-ec icw-ec cad-c cad-icw
                     64: CSucbingres ingres
                     65: CSucbkim kim
                     66: CSucbmatisse matisse
                     67: CSucbmedea medea
                     68: CSucbmerlin merlin
                     69: CSucbmiro miro
                     70: CSucbmonet monet
                     71: CSucboz oz
                     72: CSucbvax
                     73: CSucbweyl weyl
                     74: 
                     75: # known top-level domains
                     76: CTLOCAL ARPA UUCP BITNET CC
                     77: 
                     78: ############################################################
                     79: #
                     80: #      General configuration information
                     81: #
                     82: #      This information is basically just "boiler-plate"; it must be
                     83: #      there, but is essentially constant.
                     84: #
                     85: #      Information in this file should be independent of location --
                     86: #      i.e., although there are some policy decisions made, they are
                     87: #      not specific to Berkeley per se.
                     88: #
                     89: #              @(#)base.m4     4.3             8/30/83
                     90: #
                     91: ############################################################
                     92: 
                     93: #      @(#)version.m4  4.7             8/31/83
                     94: 
                     95: DV4.7
                     96: 
                     97: 
                     98: ##########################
                     99: ###   Special macros   ###
                    100: ##########################
                    101: 
                    102: # my name
                    103: DnMAILER-DAEMON
                    104: # UNIX header format
                    105: DlFrom $g  $d
                    106: # delimiter (operator) characters
                    107: Do.:%@!^=/[]
                    108: # format of a total name
                    109: Dq$g$?x ($x)$.
                    110: # SMTP login message
                    111: De$j Sendmail $v/$V ready at $b
                    112: 
                    113: # forwarding host -- redefine this if you can't talk to the relay directly
                    114: DF$R
                    115: 
                    116: ###################
                    117: ###   Options   ###
                    118: ###################
                    119: 
                    120: # location of alias file
                    121: OA/usr/lib/aliases
                    122: # default delivery mode (deliver in background)
                    123: Odbackground
                    124: # (don't) connect to "expensive" mailers
                    125: #Oc
                    126: # temporary file mode
                    127: OF0644
                    128: # default GID
                    129: Og1
                    130: # location of help file
                    131: OH/usr/lib/sendmail.hf
                    132: # log level
                    133: OL9
                    134: # default messages to old style
                    135: Oo
                    136: # queue directory
                    137: OQ/usr/spool/mqueue
                    138: # read timeout -- violates protocols
                    139: Or2h
                    140: # status file
                    141: OS/usr/lib/sendmail.st
                    142: # queue up everything before starting transmission
                    143: Os
                    144: # default timeout interval
                    145: OT3d
                    146: # time zone names (V6 only)
                    147: OtPST,PDT
                    148: # default UID
                    149: Ou1
                    150: # wizard's password
                    151: OWa/FjIfuGKXyc2
                    152: 
                    153: ###############################
                    154: ###   Message precedences   ###
                    155: ###############################
                    156: 
                    157: Pfirst-class=0
                    158: Pspecial-delivery=100
                    159: Pjunk=-100
                    160: 
                    161: #########################
                    162: ###   Trusted users   ###
                    163: #########################
                    164: 
                    165: Troot
                    166: Tdaemon
                    167: Tuucp
                    168: Teric
                    169: Tnetwork
                    170: 
                    171: #############################
                    172: ###   Format of headers   ###
                    173: #############################
                    174: 
                    175: H?P?Return-Path: <$g>
                    176: HReceived: $?sfrom $s $.by $j ($v/$V)
                    177:        id $i; $b
                    178: H?D?Resent-Date: $a
                    179: H?D?Date: $a
                    180: H?F?Resent-From: $q
                    181: H?F?From: $q
                    182: H?x?Full-Name: $x
                    183: HSubject:
                    184: # HPosted-Date: $a
                    185: # H?l?Received-Date: $b
                    186: H?M?Resent-Message-Id: <$t.$i@$j>
                    187: H?M?Message-Id: <$t.$i@$j>
                    188: 
                    189: ###########################
                    190: ###   Rewriting rules   ###
                    191: ###########################
                    192: 
                    193: 
                    194: ################################
                    195: #  Sender Field Pre-rewriting  #
                    196: ################################
                    197: S1
                    198: #R$*<$*>$*             $1$2$3                          defocus
                    199: 
                    200: ###################################
                    201: #  Recipient Field Pre-rewriting  #
                    202: ###################################
                    203: S2
                    204: #R$*<$*>$*             $1$2$3                          defocus
                    205: 
                    206: #################################
                    207: #  Final Output Post-rewriting  #
                    208: #################################
                    209: S4
                    210: 
                    211: R@                     $@                              handle <> error addr
                    212: 
                    213: # externalize local domain info
                    214: R$*<$*LOCAL>$*         $1<$2$D>$3                      change local info
                    215: R$*<$+>$*              $1$2$3                          defocus
                    216: R@$+:$+:$+             $@@$1,$2:$3                     <route-addr> canonical
                    217: 
                    218: # UUCP must always be presented in old form
                    219: R$+@$-.UUCP            $2!$1                           [email protected] => h!u
                    220: 
                    221: # delete duplicate local names -- mostly for arpaproto.mc
                    222: R$+%$=w@$=w            $1@$3                           u%UCB@UCB => u@UCB
                    223: R$+%$=w@$=w.ARPA       $1@$3.ARPA                      u%UCB@UCB => u@UCB
                    224: 
                    225: ###########################
                    226: #  Name Canonicalization  #
                    227: ###########################
                    228: S3
                    229: 
                    230: # handle "from:<>" special case
                    231: R<>                    $@@                             turn into magic token
                    232: 
                    233: # basic textual canonicalization
                    234: R$*<$+>$*              $2                              basic RFC821/822 parsing
                    235: R$+ at $+              $1@$2                           "at" -> "@" for RFC 822
                    236: R$*<$*>$*              $1$2$3                          in case recursive
                    237: 
                    238: # make sure <@a,@b,@c:user@d> syntax is easy to parse -- undone later
                    239: R@$+,$+                        @$1:$2                          change all "," to ":"
                    240: 
                    241: # localize and dispose of domain-based addresses
                    242: R@$+:$+                        $@$>6<@$1>:$2                   handle <route-addr>
                    243: 
                    244: # more miscellaneous cleanup
                    245: R$+                    $:$>8$1                         host dependent cleanup
                    246: R$+:$*;@$+             $@$1:$2;@$3                     list syntax
                    247: R$+@$+                 $:$1<@$2>                       focus on domain
                    248: R$+<$+@$+>             $1$2<@$3>                       move gaze right
                    249: R$+<@$+>               $@$>6$1<@$2>                    already canonical
                    250: 
                    251: # convert old-style addresses to a domain-based address
                    252: R$+%$+                 $@$>6$1<@$2>                    user%host
                    253: R$-:$+                 $@$>6$2<@$1>                    host:user
                    254: R$-.$+                 $@$>6$2<@$1>                    host.user
                    255: R$+^$+                 $1!$2                           convert ^ to !
                    256: R$-!$+                 $@$>6$2<@$1.UUCP>               resolve uucp names
                    257: R$-=$+                 $@$>6$2<@$1.BITNET>             resolve bitnet names
                    258: 
                    259: 
                    260: #######################
                    261: #   Rewriting rules   #
                    262: #######################
                    263: 
                    264: ##### special local conversions
                    265: S6
                    266: R$*<@$*$=D>$*          $1<@$2LOCAL>$4                  convert local domain
                    267: R$*<@$*$=D.ARPA>$*     $1<@$2LOCAL>$4
                    268: R$+%$+<@LOCAL>         $1<@$2.LOCAL>                   hack for % syntax
                    269: R$*<@$+.$=T.$=T>$*     $1<@$2.$3>$5                    make UUCP top level
                    270: R$*<@$+.$=T.$=T>$*     $1<@$2.$3>$5                    make UUCP top level
                    271: R$*<@$*$=C.$=T>$*      $1<@$2$3>$5                     adjust CC hosts (ucbvax)
                    272: R$*<@$*$=C>$*          $1<@$2$3.CC>$4                  adjust CC hosts (ucbvax)
                    273: 
                    274: ############################################################
                    275: ############################################################
                    276: #####
                    277: #####          Local and Program Mailer specification
                    278: #####
                    279: #####          @(#)localm.m4   4.1             7/25/83
                    280: #####
                    281: ############################################################
                    282: ############################################################
                    283: 
                    284: Mlocal,        P=/bin/mail, F=rlsDFMmn, S=10, R=20, A=mail -d $u
                    285: Mprog, P=/bin/sh,   F=lsDFMe,   S=10, R=20, A=sh -c $u
                    286: 
                    287: S10
                    288: R@                     MAILER-DAEMON                   errors to mailer-daemon
                    289: 
                    290: ############################################################
                    291: ############################################################
                    292: #####
                    293: #####          Ethernet Mailer specification
                    294: #####
                    295: #####          @(#)etherm.m4   4.1             7/25/83
                    296: #####
                    297: ############################################################
                    298: ############################################################
                    299: 
                    300: Mether,        P=[IPC], F=msDFMueCX, S=11, R=21, A=IPC $h
                    301: 
                    302: S11
                    303: R$*<@$+>$*             $@$1<@$2>$3                     already ok
                    304: R$+                    $@$1<@$w>                       tack on our hostname
                    305: 
                    306: S21
                    307: 
                    308: 
                    309: ############################################################
                    310: ############################################################
                    311: #####
                    312: #####          BASIC ETHERNET RULES
                    313: #####
                    314: #####          @(#)ether.m4    4.1             7/25/83
                    315: #####
                    316: ############################################################
                    317: ############################################################
                    318: 
                    319: 
                    320: 
                    321: ############################################################
                    322: ############################################################
                    323: #####
                    324: #####          RULESET ZERO PREAMBLE
                    325: #####
                    326: #####  The beginning of ruleset zero is constant through all
                    327: #####  configurations.
                    328: #####
                    329: #####          @(#)zerobase.m4 4.1             7/25/83
                    330: #####
                    331: ############################################################
                    332: ############################################################
                    333: 
                    334: S0
                    335: 
                    336: # first make canonical
                    337: R$*<$*>$*              $1$2$3                          defocus
                    338: R$+                    $:$>3$1                         make canonical
                    339: 
                    340: # handle special cases.....
                    341: R@                     $#local$:MAILER-DAEMON          handle <> form
                    342: R$*<@[$+]>$*           $#tcp$@[$2]$:$1@[$2]$3          numeric internet spec
                    343: 
                    344: # arrange for local names to be fully qualified
                    345: R$*<$*$=S>$*           $1<$2$3.LOCAL>$4                user@etherhost
                    346: R$*<$*$=Z>$*           $1<$2$3.LOCAL>$4                user@berkhost
                    347: R$*<$+.ARPA.LOCAL>$*   $1<$2.ARPA>$3                   because ARPA is a host
                    348: 
                    349: # now delete the local info
                    350: R$*<$*$=w.LOCAL>$*     $1<$2>$4                        thishost.LOCAL
                    351: R$*<$*$=w.ARPA>$*      $1<$2>$4                        thishost.ARPA
                    352: R$*<$*$=w.UUCP>$*      $1<$2>$4                        thishost.UUCP
                    353: R$*<$*$=w>$*           $1<$2>$4                        thishost
                    354: R$*<$*.>$*             $1<$2>$3                        drop trailing dot
                    355: R<@>:$*                        $@$>0$1                         retry after route strip
                    356: R$*<@>                 $@$>0$1                         strip null trash & retry
                    357: 
                    358: # forward around hosts with communication problems
                    359: R$*<@$=F.LOCAL>$*      $#ether$@$F$:$1<@$2.LOCAL>$3    reroute message
                    360: 
                    361: ##################################
                    362: #  End of ruleset zero preamble  #
                    363: ##################################
                    364: 
                    365: 
                    366: ################################################
                    367: ###  Machine dependent part of ruleset zero  ###
                    368: ################################################
                    369: 
                    370: # resolve names that can go via the ethernet
                    371: R$*<@$*$=S.LOCAL>$*    $#ether$@$3$:$1<@$2$3.$D>$4     user@etherhost
                    372: 
                    373: # other non-local names will be kicked upstairs
                    374: R$*<@$+>$*             $#ether$@$F$:$1<@$2>$3          [email protected]
                    375: 
                    376: # remaining names must be local
                    377: R$+                    $#local$:$1                     everything else
                    378: 
                    379: ############################################################
                    380: #
                    381: #      Fudge to make things look old style
                    382: #
                    383: #              @(#)fudge.m4    4.1             7/25/83
                    384: #
                    385: ############################################################
                    386: 
                    387: ############################################################
                    388: ############################################################
                    389: #####
                    390: #####          Provide Backward Compatibility
                    391: #####
                    392: #####          @(#)compat.m4   4.2             8/30/83
                    393: #####
                    394: ############################################################
                    395: ############################################################
                    396: 
                    397: 
                    398: 
                    399: ############################################################
                    400: ############################################################
                    401: #####
                    402: #####          Berknet Host List
                    403: #####
                    404: #####          @(#)berkhosts.m4        4.2             8/6/83
                    405: #####
                    406: ############################################################
                    407: ############################################################
                    408: 
                    409: # A-H, Q, and S are in the computer center domain
                    410: CZI Ing70 ucberl70 erl70
                    411: CZJ IngVAX Ingres ucbingres
                    412: CZK ucbvax vax
                    413: CZM medea ucbmedea image
                    414: CZN Kim ucbkim
                    415: CZO ESVAX ucbesvax
                    416: CZR ARPAVAX arpa ucbarpa
                    417: CZT MathStat ucbmathstat
                    418: CZV CSVAX Ernie ucbernie
                    419: CZX onyx ucbonyx
                    420: CZZ EECS40 EARVAX ucbear ear
                    421: 
                    422: 
                    423: #####################################################
                    424: #  General code to convert back to old style names  #
                    425: #####################################################
                    426: S5
                    427: 
                    428: R$+<@$-.LOCAL>         $2:$1                           [email protected] => h:u
                    429: R$+<@$-.CC>            $2:$1                           [email protected] => h:u
                    430: R$+<@$=Z>              $@$2:$1                         u@bhost => h:u
                    431: R$+<@$=C>              $@$2:$1                         u@cchost => h:u
                    432: R$+<@$-.UUCP>          $2!$1                           [email protected] => host!u
                    433: R$+@$+.ARPA            $1@$2                           [email protected] => u@host
                    434: 
                    435: 
                    436: ############################################################
                    437: ###    Convert names to old style for local delivery
                    438: ############################################################
                    439: S10
                    440: 
                    441: R$+                    $:$>5$1                         convert to old style
                    442: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.