File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / usr / src / usr.lib / sendmail / cf / ucbvax.cf
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Sun Jul 28 12:24:19 2019 UTC (7 years ago) by root
Branches: bsd, MAIN
CVS tags: v12b, HEAD
Power 6/32 Unix version 1.2b

############################################################
############################################################
#####
#####		SENDMAIL CONFIGURATION FILE
#####
#####	This one is the big daddy.  There is no "upstairs"
#####	to bounce a message to -- except perhaps the arpanet.
#####
#####		@(#)ucbvax.mc	4.5		8/31/83
#####
############################################################
############################################################



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

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

# override SMTP hostname to match Arpanet name
DjUCB-VAX.ARPA

# uucp hostnames
DUucbvax
CUucbvax ernie

# berknet hostname
DBUCBVAX

# UUCP connections on ucbcad
DVucbcad
CVboulder
CVcaddyvax caddyva
CVlblh
CVmasscomp masscom
CVmhb5a
CVmi-cec
CVtekcad
CVjupiter

# second alternate UUCP connection and hosts
#DWucbarpa
#CWsun

# known computer center hosts and gateway
############################################################
############################################################
#####
#####	KNOWN COMPUTER CENTER HOSTNAMES
#####
#####		@(#)cchosts.m4	4.1		7/25/83
#####
############################################################
############################################################


DCUCBJADE
CCucbcfo-a cfo-a A
CCucbcfo-b cfo-b B
CCucbcfo-c cfo-c C
CCucbcfo-d cfo-d D
CCucbcfo-e cfo-e E
CCucbcfo-f cfo-f F
CCucbcfo-g cfo-g G populi ucbpopuli
CCucbcfo-h cfo-h H ucbjade jade
CCucbcfo-q cfo-q Q ucbruby ruby
CCucbsrc Src S
CCucbcfo-2 cfo-2 2 ucbtopaz topaz
CCucbcfo-3 cfo-3 3 ucbcoral coral
CCucbcfo-4 cfo-4 4 ucbamber amber
CCucbcfo-5 cfo-5 5 ucbivory ivory
CCucbcfo-6 cfo-6 6 ucblapis lapis


# we have full sendmail support here
Oa

#################################################
#
#	General configuration information
#
#	@(#)csbase.m4	4.3		8/21/83
#
#################################################

######################
#   General Macros   #
######################

# our arpanet gateway
DABerkeley
CABerkeley UCB ucbc70 c70 UCB-C70 u UCB-VAX ucbvax

# local domain names
DDBERKELEY
CDBERKELEY UCB ucbc70 c70 ucb-c70 u UCB-VAX ucbvax

# major relay host
DRUCBVAX
CRucbvax vax k

# my official hostname
Dj$w.ARPA

# known SMTP/ethernet hosts (this domain only) -- only $R need be complete
CSucbarpa arpa
CSucbbach bach ucbstatvax statvax
CSucbbrahms brahms mathstat
CSucbcad cad cad-a
CSucbcalder calder
CSucbcartan cartan
CSucbcory cory ucbokeeffe okeeffe
CSucbdali dali
CSucbdegas degas
# CSucbear ear
CSucbernie ernie
CSucbesvax esvax
CSucbic ic ucbic-ec ic-ec cad-b cad-ic
CSucbicw icw ucbicw-ec icw-ec cad-c cad-icw
CSucbingres ingres
CSucbkim kim
CSucbmatisse matisse
CSucbmedea medea
CSucbmerlin merlin
CSucbmiro miro
CSucbmonet monet
CSucboz oz
CSucbvax
CSucbweyl weyl

# known top-level domains
CTLOCAL ARPA UUCP BITNET CC

############################################################
#
#	General configuration information
#
#	This information is basically just "boiler-plate"; it must be
#	there, but is essentially constant.
#
#	Information in this file should be independent of location --
#	i.e., although there are some policy decisions made, they are
#	not specific to Berkeley per se.
#
#		@(#)base.m4	4.3		8/30/83
#
############################################################

#	@(#)version.m4	4.7		8/31/83

DV4.7


##########################
###   Special macros   ###
##########################

# my name
DnMAILER-DAEMON
# UNIX header format
DlFrom $g  $d
# delimiter (operator) characters
Do.:%@!^=/[]
# format of a total name
Dq$g$?x ($x)$.
# SMTP login message
De$j Sendmail $v/$V ready at $b

# forwarding host -- redefine this if you can't talk to the relay directly
DF$R

###################
###   Options   ###
###################

# location of alias file
OA/usr/lib/aliases
# default delivery mode (deliver in background)
Odbackground
# (don't) connect to "expensive" mailers
#Oc
# temporary file mode
OF0644
# default GID
Og1
# location of help file
OH/usr/lib/sendmail.hf
# log level
OL9
# default messages to old style
Oo
# queue directory
OQ/usr/spool/mqueue
# read timeout -- violates protocols
Or2h
# status file
OS/usr/lib/sendmail.st
# queue up everything before starting transmission
Os
# default timeout interval
OT3d
# time zone names (V6 only)
OtPST,PDT
# default UID
Ou1
# wizard's password
OWa/FjIfuGKXyc2

###############################
###   Message precedences   ###
###############################

Pfirst-class=0
Pspecial-delivery=100
Pjunk=-100

#########################
###   Trusted users   ###
#########################

Troot
Tdaemon
Tuucp
Teric
Tnetwork

#############################
###   Format of headers   ###
#############################

H?P?Return-Path: <$g>
HReceived: $?sfrom $s $.by $j ($v/$V)
	id $i; $b
H?D?Resent-Date: $a
H?D?Date: $a
H?F?Resent-From: $q
H?F?From: $q
H?x?Full-Name: $x
HSubject:
# HPosted-Date: $a
# H?l?Received-Date: $b
H?M?Resent-Message-Id: <$t.$i@$j>
H?M?Message-Id: <$t.$i@$j>

###########################
###   Rewriting rules   ###
###########################


################################
#  Sender Field Pre-rewriting  #
################################
S1
#R$*<$*>$*		$1$2$3				defocus

###################################
#  Recipient Field Pre-rewriting  #
###################################
S2
#R$*<$*>$*		$1$2$3				defocus

#################################
#  Final Output Post-rewriting  #
#################################
S4

R@			$@				handle <> error addr

# externalize local domain info
R$*<$*LOCAL>$*		$1<$2$D>$3			change local info
R$*<$+>$*		$1$2$3				defocus
R@$+:$+:$+		$@@$1,$2:$3			<route-addr> canonical

# UUCP must always be presented in old form
R$+@$-.UUCP		$2!$1				[email protected] => h!u

# delete duplicate local names -- mostly for arpaproto.mc
R$+%$=w@$=w		$1@$3				u%UCB@UCB => u@UCB
R$+%$=w@$=w.ARPA	$1@$3.ARPA			u%UCB@UCB => u@UCB

###########################
#  Name Canonicalization  #
###########################
S3

# handle "from:<>" special case
R<>			$@@				turn into magic token

# basic textual canonicalization
R$*<$+>$*		$2				basic RFC821/822 parsing
R$+ at $+		$1@$2				"at" -> "@" for RFC 822
R$*<$*>$*		$1$2$3				in case recursive

# make sure <@a,@b,@c:user@d> syntax is easy to parse -- undone later
R@$+,$+			@$1:$2				change all "," to ":"

# localize and dispose of domain-based addresses
R@$+:$+			$@$>6<@$1>:$2			handle <route-addr>

# more miscellaneous cleanup
R$+			$:$>8$1				host dependent cleanup
R$+:$*;@$+		$@$1:$2;@$3			list syntax
R$+@$+			$:$1<@$2>			focus on domain
R$+<$+@$+>		$1$2<@$3>			move gaze right
R$+<@$+>		$@$>6$1<@$2>			already canonical

# convert old-style addresses to a domain-based address
R$+%$+			$@$>6$1<@$2>			user%host
R$-:$+			$@$>6$2<@$1>			host:user
R$-.$+			$@$>6$2<@$1>			host.user
R$+^$+			$1!$2				convert ^ to !
R$-!$+			$@$>6$2<@$1.UUCP>		resolve uucp names
R$-=$+			$@$>6$2<@$1.BITNET>		resolve bitnet names


#######################
#   Rewriting rules   #
#######################

##### special local conversions
S6
R$*<@$*$=D>$*		$1<@$2LOCAL>$4			convert local domain
R$*<@$*$=D.ARPA>$*	$1<@$2LOCAL>$4
R$+%$+<@LOCAL>		$1<@$2.LOCAL>			hack for % syntax
R$*<@$+.$=T.$=T>$*	$1<@$2.$3>$5			make UUCP top level
R$*<@$+.$=T.$=T>$*	$1<@$2.$3>$5			make UUCP top level
R$*<@$*$=C.$=T>$*	$1<@$2$3>$5			adjust CC hosts (ucbvax)
R$*<@$*$=C>$*		$1<@$2$3.CC>$4			adjust CC hosts (ucbvax)

############################################################
############################################################
#####
#####		Local and Program Mailer specification
#####
#####		@(#)localm.m4	4.1		7/25/83
#####
############################################################
############################################################

Mlocal,	P=/bin/mail, F=rlsDFMmn, S=10, R=20, A=mail -d $u
Mprog,	P=/bin/sh,   F=lsDFMe,   S=10, R=20, A=sh -c $u

S10
R@			MAILER-DAEMON			errors to mailer-daemon

############################################################
############################################################
#####
#####		Ethernet Mailer specification
#####
#####		@(#)etherm.m4	4.1		7/25/83
#####
############################################################
############################################################

Mether,	P=[IPC], F=msDFMueCX, S=11, R=21, A=IPC $h

S11
R$*<@$+>$*		$@$1<@$2>$3			already ok
R$+			$@$1<@$w>			tack on our hostname

S21



# names of NCP hosts
########################################################################
#
#		List of NCP-only sites
#
#	When NCP goes away, so should this file.
#
#		@(#)ncphosts.m4	4.1		7/25/83
#
########################################################################

# NCP gateway
DNUDEL-RELAY

# list of NCP-only hosts

# Cutoff date  1 Feb 83
CNnusc-npt
CNmartin mmc

# Cutoff date 15 Feb 83
CNafsc-sd afsd

# Cutoff date  1 Mar 83
CNwharton-10 wharton
CNudel-tcp

# Cutoff date  1 Apr 83
CNcmu-cs-b cmu-10b cmub
CNsri-nsc11 nsc11 dnsri
CNcmu-cs-a cmu-10a cmua

# Cutoff date Unknown
CNs1-gateway


############################################################
############################################################
#####
#####		RULESET ZERO PREAMBLE
#####
#####	The beginning of ruleset zero is constant through all
#####	configurations.
#####
#####		@(#)zerobase.m4	4.1		7/25/83
#####
############################################################
############################################################

S0

# first make canonical
R$*<$*>$*		$1$2$3				defocus
R$+			$:$>3$1				make canonical

# handle special cases.....
R@			$#local$:MAILER-DAEMON		handle <> form
R$*<@[$+]>$*		$#tcp$@[$2]$:$1@[$2]$3		numeric internet spec

# arrange for local names to be fully qualified
R$*<$*$=S>$*		$1<$2$3.LOCAL>$4		user@etherhost
R$*<$*$=Z>$*		$1<$2$3.LOCAL>$4		user@berkhost
R$*<$+.ARPA.LOCAL>$*	$1<$2.ARPA>$3			because ARPA is a host

# now delete the local info
R$*<$*$=w.LOCAL>$*	$1<$2>$4			thishost.LOCAL
R$*<$*$=w.ARPA>$*	$1<$2>$4			thishost.ARPA
R$*<$*$=w.UUCP>$*	$1<$2>$4			thishost.UUCP
R$*<$*$=w>$*		$1<$2>$4			thishost
R$*<$*.>$*		$1<$2>$3			drop trailing dot
R<@>:$*			$@$>0$1				retry after route strip
R$*<@>			$@$>0$1				strip null trash & retry

# forward around hosts with communication problems
R$*<@$=F.LOCAL>$*	$#ether$@$F$:$1<@$2.LOCAL>$3	reroute message

##################################
#  End of ruleset zero preamble  #
##################################


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

# forward NCP mail through udel-relay
R$+<@$=N>		$#tcp$@$N$:$1.$2<@$N>		user.host@UDEL-RELAY
R$+<@$=N.ARPA>		$#tcp$@$N$:$1.$2<@$N>		user.host@UDEL-RELAY

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

# resolve names that can go via the ethernet
R$*<@$*$=S>$*		$#ether$@$3$:$1<@$2$3>$4	user@etherhost

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

# resolve names destined for the computer center
R$*<@$+.CC>$*		$#ether$@$C$:$1<@$2.CC>$3	[email protected]
R$*<@$+.BITNET>$*	$#ether$@$C$:$1<@$2.BITNET>$3	[email protected]

# resolve nonlocal UUCP links
R$*<@$*$=V.UUCP>$*	$#ether$@$V$:$1<@$2$3.UUCP>$4	[email protected]
R$*<@$*$=W.UUCP>$*	$#ether$@$W$:$1<@$2$3.UUCP>$4	[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>		$#ether$@ucbarpa$:$1@Udel-Test	user.host@UDel-Relay

# other non-local names will be kicked upstairs
R$*<@$*$->$*		$#tcp$@$3$:$1<@$2$3>$4		user@host

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

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

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


############################################################
############################################################
#####
#####		Berknet Mailer specification
#####
#####		@(#)berkm.m4	4.1		7/25/83
#####
############################################################
############################################################

############################################################
############################################################
#####
#####		Provide Backward Compatibility
#####
#####		@(#)compat.m4	4.2		8/30/83
#####
############################################################
############################################################



############################################################
############################################################
#####
#####		Berknet Host List
#####
#####		@(#)berkhosts.m4	4.2		8/6/83
#####
############################################################
############################################################

# A-H, Q, and S are in the computer center domain
CZI Ing70 ucberl70 erl70
CZJ IngVAX Ingres ucbingres
CZK ucbvax vax
CZM medea ucbmedea image
CZN Kim ucbkim
CZO ESVAX ucbesvax
CZR ARPAVAX arpa ucbarpa
CZT MathStat ucbmathstat
CZV CSVAX Ernie ucbernie
CZX onyx ucbonyx
CZZ EECS40 EARVAX ucbear ear


#####################################################
#  General code to convert back to old style names  #
#####################################################
S5

R$+<@$-.LOCAL>		$2:$1				[email protected] => h:u
R$+<@$-.CC>		$2:$1				[email protected] => h:u
R$+<@$=Z>		$@$2:$1				u@bhost => h:u
R$+<@$=C>		$@$2:$1				u@cchost => h:u
R$+<@$-.UUCP>		$2!$1				[email protected] => host!u
R$+@$+.ARPA		$1@$2				[email protected] => u@host


Mberk,	P=/usr/net/bin/sendberkmail, F=fsDFMC, S=12, R=22, M=100000,
	A=sendberkmail -m $h -h $c -t $u

S12
R$+			$:$>5$1				convert to old style
R$-:$+			$@$1:$2				old berknet as is
R$+<@$+>		$@$1<@$2>			don't modify arpanet
R$-!$+			$@$1!$2				don't modify uucp
R$+			$@$B:$1				make others relative

S22
R$+			$:$>5$1				convert to old style

############################################################
############################################################
#####
#####		UUCP Mailer specification
#####
#####		@(#)uucpm.m4	4.2		8/30/83
#####
############################################################
############################################################



Muucp,	P=/usr/bin/uux, F=sDFMhuU, S=13, R=23, M=100000,
	A=uux - -r $h!rmail ($u)

S13
R$+			$:$>5$1				convert to old style
R$=w!$+			$2				strip local name
R$*<@$=S>$*		$1<@$2.Berkeley.ARPA>$3		resolve abbreviations
R$*<@$=Z>$*		$1<@$2.Berkeley.ARPA>$3		resolve abbreviations
R$*<@$->$*		$1<@$2.ARPA>$3			resolve abbreviations
R$+			$:$U!$1				stick on our host name
R$=w!$=R:$+		$:$1!$3				ucbvax!ucbvax:xxx

S23
R$+			$:$>5$1				convert to old style
R$*<@$=S>$*		$1<@$2.Berkeley.ARPA>$3		resolve abbreviations
R$*<@$=Z>$*		$1<@$2.Berkeley.ARPA>$3		resolve abbreviations
R$*<@$->$*		$1<@$2.ARPA>$3			resolve abbreviations

############################################################
############################################################
#####
#####		Arpanet TCP Mailer specification
#####
#####		@(#)tcpm.m4	4.1		7/25/83
#####
############################################################
############################################################

Mtcp,	P=[IPC], F=msDFMueXL, S=14, R=14, A=IPC $h, E=\r\n

S14

# pass <route-addr>'s through
R<@$+>$*		$@<@$1>$2			resolve <route-addr>

# map colons to dots everywhere.....
R$*:$*			$1.$2				map colons to dots

# handle the simple case....
R$+<@$-.ARPA>		$@$1<@$2.ARPA>			[email protected]

# fully qualify computer center names so the rest works nicely
R$+<@$+.CC>		$1<@$2.CC.LOCAL>		[email protected]

# output local hosts in user%host@Berkeley syntax
R$+<@LOCAL>		$@$1<@$A>			local names
R$+<@$+.LOCAL>		$@$1%$2<@$A>			local hosts
R$+<@$*$=S>		$@$1%$2$3<@$A>
R$+<@$*$=Z>		$@$1%$2$3<@$A>

# handle other external cases
R$+<@$->		$@$1<@$2>			no .ARPA on simple names
R$+<@$+.$-.ARPA>	$@$1%$2<@$3.ARPA>		approximate something
R$+<@[$+]>		$@$1<@[$2]>			already ok

# convert remaining addresses to old format and externalize appropriately
R$+			$:$>5$1				=> old format
R$-:$+			$@$1.$2<@$A>			convert berk hosts
R$+<@$+>		$@$1%$2<@$A>			pessmize
R$+			$:$1%$w<@$A>			tack on our hostname
R$+%$=R<@$=A>		$1<@$3>				strip unneeded relay


unix.superglobalmegacorp.com

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