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