BSD 4_3 release
[unix-history] / usr / src / usr.lib / sendmail / cf.named / ucbvax.mc
CommitLineData
95f51977
C
1############################################################
2#
3# Sendmail
4# Copyright (c) 1983 Eric P. Allman
5# Berkeley, California
6#
7# Copyright (c) 1983 Regents of the University of California.
8# All rights reserved. The Berkeley software License Agreement
9# specifies the terms and conditions for redistribution.
10#
11# @(#)ucbvax.mc 1.19 (Berkeley) 5/1/86
12#
13############################################################
14############################################################
15#####
16##### SENDMAIL CONFIGURATION FILE
17#####
18##### This one is the big daddy. There is no "upstairs"
19##### to bounce a message to -- except perhaps the arpanet.
20#####
21#####
22############################################################
23############################################################
24
25
26
27######################
28### local info ###
29######################
30
31# internet hostname
32Cwucbvax vax k UCB-VAX Berkeley UCB-C70 UCB LOCAL
33
34# override hostname to use ARPANET name
35#DwUCB-VAX remove override if using named
36
37# uucp hostnames
38DUucbvax
39CUucbvax
40
41# berknet hostname
42DBUCBVAX
43
44# UUCP connections on ucbcad
45DWcad
46CWjupiter
47CWharris
48CWhpda
49CWmasscomp masscom
50CWsda
51CWtektronix
52
53# second alternate UUCP connection and hosts
54DXkim
55CXfranz
56CXfateman
57CXfisi
58CXendotsew
59CXfimus
60
61# third alternate UUCP connection
62DYucboz
63CYucbwodan wodan
64CYCTSB
65CYaloft
66CYaltos86
67
68# known uucp connections with a smart uucp
69CMdecvax
70
71# we have full sendmail support here
72Oa
73
74#############################
75### Setup Information ###
76#############################
77
78include(nsmacros.m4)
79include(nsclasses.m4)
80include(cchosts.m4)
81include(nicregistered.m4)
82include(uucphosts.m4)
83include(berkhosts.m4)
84include(version.m4)
85include(boilerplate.m4)
86
87###########################
88### Rewriting Rules ###
89###########################
90
91include(prewriterule.m4)
92include(postwriterule.m4)
93
94# addition to Post-rewrite Rule
95R$+%$=w@$=w.EDU $1@$w u%UCB@UCB.edu => u@UCB.berk.edu
96R$+%$=w@$=w.$=w.EDU $1@$w u%UCB@UCB.berk.edu => u@UCB
97
98include(rule3.m4)
99include(rule5.m4)
100
101###################
102### Mailers ###
103###################
104
105include(localm.m4)
106include(berkm.m4)
107define(`m4UUCP',TRUE)
108include(suucpm.m4)
109include(uucpm.m4)
110include(nstcpm.m4)
111include(nstcpldm.m4)
112
113#####################
114### Rule Zero ###
115#####################
116
117include(rule0.m4)
118
119################################################
120### Machine dependent part of ruleset zero ###
121################################################
122
123# if host is not in the class Q (class of valid uucp hosts), then assume
124# it is to be sent via tcp.
125R$*<@$*$~Q.UUCP>$* $1<@$2$[$3$]>$4
126
127# resolve explicitly arpanet names (to avoid with machine name "arpa" below)
128R$*<@$*$-.ARPA>$* $#tcp$@$3.ARPA$:$1<@$2$3.ARPA>$4 user@domain.ARPA
129
130# resolve names destined for the computer center
131R$*<@$=C.berkeley.edu>$* $#tcpld$@$C$:$1<@$2>$3
132R$*<@$=C>$* $#tcpld$@$C$:$1<@$2>$3
133R$*<@$+.CC>$* $#tcpld$@$C$:$1<@$2>$3 user@host
134
135# resolve berknet names
136R<@$=Z>:$+ $#berk$@$1$:$2 @berkhost: ...
137R$+<@$=Z> $#berk$@$2$:$1 user@berknethost
138
139# resolve explicit known foreign networks
140R$*<@$+.Oz.au>$* $#tcp$@seismo.css.gov$:$1<@$2.OZ.AU>$3 user@host.oz.au
141R$*<@$+.BITNET>$* $#tcpld$@$C$:$1<@$2.BITNET>$3 user@host.BITNET
142R$*<@$+.CSNET>$* $#tcp$@CSNET-RELAY.ARPA$:$1<@$2.CSNET>$3 user@host.CSNET
143R$*<@$+.DEC>$* $#tcp$@decwrl.dec.com$:$1<@$2.DEC>$3 user@host.DEC
144R$*<@$+.MailNET>$* $#tcp$@MIT-Multics.ARPA$:$1<@$2.MailNET>$3 user@host.MailNET
145
146# resolve nonlocal UUCP links
147R$*<@$*$=W.UUCP>$* $#tcpld$@$W$:$1<@$2$3.UUCP>$4 user@host.UUCP
148R$*<@$*$=X.UUCP>$* $#tcpld$@$X$:$1<@$2$3.UUCP>$4 user@host.UUCP
149R$*<@$*$=Y.UUCP>$* $#tcpld$@$Y$:$1<@$2$3.UUCP>$4 user@host.UUCP
150R$*<@$*$=Y>$* $#tcpld$@$Y$:$1<@$2$3.UUCP>$4 user@host.UUCP
151
152# this uucp stuff is wrong for domain uucp addresses
153# - we should pass the whole "host.domain" to uucp so it can
154# find the best route. But that depends on a uucp router
155# which doesn't exist here yet, so for now, we'll settle for
156# trying to route to the domain (pretending its a host).
157# Suitable L.sys entries can make this work. If it doesn't
158# then returned mail will just say "dom unknown", which is true ..
159
160# resolve smart UUCP links
161R<@$=M.$-.UUCP>:$+ $#suucp$@$2$:@$1.$2.UUCP:$3 @host.domain.UUCP: ...
162R<@$=M.UUCP>:$+ $#suucp$@$1$:$2 @host.UUCP: ...
163R$+<@$=M.$-.UUCP> $#suucp$@$3$:$1@$2.$3.UUCP user@host.domain.UUCP
164R$+<@$=M.UUCP> $#suucp$@$2$:$1 user@host.UUCP
165
166# resolve local UUCP links (all others)
167R<@$+.$-.UUCP>:$+ $#uucp$@$2$:@$1.$2.UUCP:$3 @host.domain.UUCP: ...
168R<@$-.UUCP>:$+ $#uucp$@$1$:$2 @host.UUCP: ...
169R$+<@$+.$-.UUCP> $#uucp$@$3$:$1@$2.$3.UUCP user@host.domain.UUCP
170R$+<@$-.UUCP> $#uucp$@$2$:$1 user@host.UUCP
171
172# resolve mmdf hack
173R$+<@UDel-Test> $#tcpld$@ucbarpa$:$1@Udel-Test user.host@UDel-Relay
174
175# check for local that has had .berkeley.edu stripped by previous rule
176R$*<@$->$* $1<@$2.$D>$3 user@host-within-this-domain
177
178# local domain sites
179R$*<@$*.berkeley.edu>$* $#tcpld$@$2$:$1<@$2.$D>$3 user@host.berkeley.edu
180
181# other non-local names will be kicked upstairs
182R$*<@$+>$* $#tcp$@$2$:$1<@$2>$3 user@some.where
183
184# remaining names must be local
185R$+ $#local$:$1 everything else
186
187########################################
188### Host dependent address cleanup ###
189########################################
190
191S8
192R$*$=U!$+@$+ $3@$4 drop uucp forward