File:  [CSRG BSD Unix] / 43BSD / usr.lib / sendmail / cf.named / ucbvax.mc
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:55 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43
BSD 4.3

############################################################
#
#  Sendmail
#  Copyright (c) 1983  Eric P. Allman
#  Berkeley, California
#
#  Copyright (c) 1983 Regents of the University of California.
#  All rights reserved.  The Berkeley software License Agreement
#  specifies the terms and conditions for redistribution.
#
#	@(#)ucbvax.mc	1.19 (Berkeley) 5/1/86
#
############################################################
############################################################
#####
#####		SENDMAIL CONFIGURATION FILE
#####
#####	This one is the big daddy.  There is no "upstairs"
#####	to bounce a message to -- except perhaps the arpanet.
#####
#####
############################################################
############################################################



######################
###   local info   ###
######################

# internet hostname
Cwucbvax vax k UCB-VAX Berkeley UCB-C70 UCB LOCAL

# override hostname to use ARPANET name
#DwUCB-VAX		remove override if using named

# uucp hostnames
DUucbvax
CUucbvax 

# berknet hostname
DBUCBVAX

# UUCP connections on ucbcad
DWcad
CWjupiter
CWharris
CWhpda
CWmasscomp masscom
CWsda
CWtektronix

# second alternate UUCP connection and hosts
DXkim
CXfranz
CXfateman
CXfisi
CXendotsew
CXfimus

# third alternate UUCP connection
DYucboz
CYucbwodan wodan
CYCTSB
CYaloft
CYaltos86

# known uucp connections with a smart uucp
CMdecvax

# we have full sendmail support here
Oa

#############################
###   Setup Information   ###
#############################

include(nsmacros.m4)
include(nsclasses.m4)
include(cchosts.m4)
include(nicregistered.m4)
include(uucphosts.m4)
include(berkhosts.m4)
include(version.m4)
include(boilerplate.m4)

###########################
###   Rewriting Rules   ###
###########################

include(prewriterule.m4)
include(postwriterule.m4)

# addition to Post-rewrite Rule
R$+%$=w@$=w.EDU		$1@$w			u%[email protected] => [email protected]
R$+%$=w@$=w.$=w.EDU	$1@$w			u%[email protected] => u@UCB

include(rule3.m4)
include(rule5.m4)

###################
###   Mailers   ###
###################

include(localm.m4)
include(berkm.m4)
define(`m4UUCP',TRUE)
include(suucpm.m4)
include(uucpm.m4)
include(nstcpm.m4)
include(nstcpldm.m4)

#####################
###   Rule Zero   ###
#####################

include(rule0.m4)

################################################
###  Machine dependent part of ruleset zero  ###
################################################

# if host is not in the class Q (class of valid uucp hosts), then assume
# it is to be sent via tcp.
R$*<@$*$~Q.UUCP>$*	$1<@$2$[$3$]>$4

# resolve explicitly arpanet names (to avoid with machine name "arpa" below)
R$*<@$*$-.ARPA>$*	$#tcp$@$3.ARPA$:$1<@$2$3.ARPA>$4	[email protected]

# resolve names destined for the computer center
R$*<@$=C.berkeley.edu>$*	$#tcpld$@$C$:$1<@$2>$3
R$*<@$=C>$*		$#tcpld$@$C$:$1<@$2>$3
R$*<@$+.CC>$*		$#tcpld$@$C$:$1<@$2>$3			user@host

# resolve berknet names
R<@$=Z>:$+		$#berk$@$1$:$2				@berkhost: ...
R$+<@$=Z>		$#berk$@$2$:$1				user@berknethost

# resolve explicit known foreign networks
R$*<@$+.Oz.au>$*	$#[email protected]$:$1<@$2.OZ.AU>$3	[email protected]
R$*<@$+.BITNET>$*	$#tcpld$@$C$:$1<@$2.BITNET>$3		[email protected]
R$*<@$+.CSNET>$*	$#[email protected]$:$1<@$2.CSNET>$3	[email protected]
R$*<@$+.DEC>$*		$#[email protected]$:$1<@$2.DEC>$3	[email protected]
R$*<@$+.MailNET>$*	$#[email protected]$:$1<@$2.MailNET>$3	[email protected]

# resolve nonlocal UUCP links
R$*<@$*$=W.UUCP>$*	$#tcpld$@$W$:$1<@$2$3.UUCP>$4	[email protected]
R$*<@$*$=X.UUCP>$*	$#tcpld$@$X$:$1<@$2$3.UUCP>$4	[email protected]
R$*<@$*$=Y.UUCP>$*	$#tcpld$@$Y$:$1<@$2$3.UUCP>$4	[email protected]
R$*<@$*$=Y>$*		$#tcpld$@$Y$:$1<@$2$3.UUCP>$4	[email protected]

# this uucp stuff is wrong for domain uucp addresses
# - we should pass the whole "host.domain" to uucp so it can
#   find the best route.  But that depends on a uucp router
#   which doesn't exist here yet, so for now, we'll settle for
#   trying to route to the domain (pretending its a host).
#   Suitable L.sys entries can make this work.  If it doesn't
#   then returned mail will just say "dom unknown", which is true ..

# resolve smart UUCP links
R<@$=M.$-.UUCP>:$+	$#suucp$@$2$:@$1.$2.UUCP:$3	@host.domain.UUCP: ...
R<@$=M.UUCP>:$+		$#suucp$@$1$:$2			@host.UUCP: ...
R$+<@$=M.$-.UUCP>	$#suucp$@$3$:$1@$2.$3.UUCP	[email protected]
R$+<@$=M.UUCP>		$#suucp$@$2$:$1			[email protected]

# resolve local UUCP links (all others)
R<@$+.$-.UUCP>:$+	$#uucp$@$2$:@$1.$2.UUCP:$3	@host.domain.UUCP: ...
R<@$-.UUCP>:$+		$#uucp$@$1$:$2			@host.UUCP: ...
R$+<@$+.$-.UUCP>	$#uucp$@$3$:$1@$2.$3.UUCP	[email protected]
R$+<@$-.UUCP>		$#uucp$@$2$:$1			[email protected]

# resolve mmdf hack
R$+<@UDel-Test>		$#tcpld$@ucbarpa$:$1@Udel-Test	user.host@UDel-Relay

# check for local that has had .berkeley.edu stripped by previous rule
R$*<@$->$*		$1<@$2.$D>$3			user@host-within-this-domain

# local domain sites
R$*<@$*.berkeley.edu>$*	$#tcpld$@$2$:$1<@$2.$D>$3	[email protected]

# other non-local names will be kicked upstairs
R$*<@$+>$*		$#tcp$@$2$:$1<@$2>$3		[email protected]

# remaining names must be local
R$+			$#local$:$1			everything else

########################################
###  Host dependent address cleanup  ###
########################################

S8
R$*$=U!$+@$+		$3@$4				drop uucp forward

unix.superglobalmegacorp.com

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