xref: /csrg-svn/usr.sbin/sendmail/cf/m4/proto.m4 (revision 58070)
151222Sericdivert(-1)
251222Seric#
351222Seric# Copyright (c) 1983 Eric P. Allman
451222Seric# Copyright (c) 1988 The Regents of the University of California.
551222Seric# All rights reserved.
651222Seric#
751222Seric# %sccs.include.redist.sh%
851222Seric#
951222Sericdivert(0)
1051222Seric
11*58070SericVERSIONID(`@(#)proto.m4	6.5 (Berkeley) 02/19/93')
1251222Seric
1351322SericMAILER(local)dnl
1451222Seric
1552646Sericifdef(`_OLD_SENDMAIL_', `dnl',
1652646Seric`# level 3 config file format
1752646SericV3')
1852646Seric
1951222Seric##################
2051222Seric#   local info   #
2151222Seric##################
2251222Seric
2351889SericCwlocalhost
2451887Sericifdef(`USE_CW_FILE',
2551889Seric`# file containing names of hosts for which we receive email
2651222SericFw/etc/sendmail.cw', `dnl')
2751222Seric
2851222Sericifdef(`UUCP_RELAY',
2951222Seric`# UUCP relay host
3051281SericCONCAT(DY, UUCP_RELAY)
3157944Seric
3251222Seric')dnl
3351222Sericifdef(`BITNET_RELAY',
3451222Seric`#  BITNET relay host
3551222SericCONCAT(DB, BITNET_RELAY)
3657944Seric
3751222Seric')dnl
3851222Sericifdef(`CSNET_RELAY',
3951222Seric`# CSNET relay host
4051222SericCONCAT(DC, CSNET_RELAY)
4157944Seric
4251222Seric')dnl
43*58070Sericifdef(`SMART_HOST',
44*58070Seric`# "Smart" UUCP relay host
45*58070SericCONCAT(DS, SMART_HOST)
4651222Seric
47*58070Seric')dnl
4851222Seric# who I send unqualified names to (null means deliver locally)
4951222SericCONCAT(DR, ifdef(`LOCAL_RELAY', LOCAL_RELAY))
5051222Seric
5157527Seric# who gets all local email traffic ($R has precedence for unqualified names)
5257527SericCONCAT(DH, ifdef(`MAIL_HUB', MAIL_HUB))
5357527Seric
54*58070Seric# my official hostname ($w or $w.$D)
55*58070SericCONCAT(Dj$w, ifdef(`NEED_DOMAIN', .$D))
56*58070Seric
57*58070Seric# who I masquerade as (can be $j)
58*58070SericCONCAT(DM, ifdef(`MASQUERADE_NAME', MASQUERADE_NAME, $j))
59*58070Seric
6057245Seric# class L: names that should be delivered locally, even if we have a relay
6157245Seric# class E: names that should be exposed as from this host, even if we masquerade
6251279SericCLroot
6357245SericCEroot
6451279Sericundivert(5)dnl
6551279Seric
6651222Seric# operators that cannot be in local usernames (i.e., network indicators)
6751222SericCO @ % !
6851222Seric
6951322Seric# a class with just dot (for identifying canonical names)
7051322SericC..
7151322Seric
7257944Seric
7357944Seric######################
7457944Seric#   Special macros   #
7557944Seric######################
7657944Seric
7757944Seric# SMTP initial login message
7857944SericCONCAT(De, confSMTP_LOGIN_MSG)
7957944Seric
8057944Seric# UNIX initial From header format
8157944SericCONCAT(Dl, confFROM_LINE)
8257944Seric
8357944Seric# my name for error messages
8457944SericCONCAT(Dn, confMAILER_NAME)
8557944Seric
8657944Seric# delimiter (operator) characters
8757944SericCONCAT(Do, confOPERATORS)
8857944Seric
8957944Seric# format of a total name
9057944SericCONCAT(Dq, ifdef(`confFROM_HEADER', confFROM_HEADER,
9157944Seric	ifdef(`_OLD_SENDMAIL_', `$g$?x ($x)$.', `$?x$x <$g>$|$g$.')))
9257944Sericinclude(`../m4/version.m4')
9357944Seric
9457944Seric###############
9557944Seric#   Options   #
9657944Seric###############
9757944Seric
9857944Seric# preserve 8 bits on message body on input?
9957944SericCONCAT(O8, confEIGHT_BIT_INPUT)
10057944Seric
10157944Seric# wait (in minutes) for alias file rebuild
10257944SericCONCAT(Oa, confALIAS_WAIT)
10357944Seric
10457944Seric# location of alias file
10557944SericCONCAT(OA, ifdef(`ALIAS_FILE', ALIAS_FILE, /etc/aliases))
10657944Seric
10757944Seric# substitution for space (blank) characters
10857944SericCONCAT(OB, confBLANK_SUB)
10957944Seric
11057944Seric# connect to "expensive" mailers on initial submission?
11157944SericCONCAT(Oc, confCON_EXPENSIVE)
11257944Seric
11357944Seric# checkpoint queue runs after every N successful deliveries
11457944SericCONCAT(OC, confCHECKPOINT_INTERVAL)
11557944Seric
11657944Seric# default delivery mode
11757944SericCONCAT(Od, confDELIVERY_MODE)
11857944Seric
11957944Seric# automatically rebuild the alias database?
12057944SericCONCAT(OD, confAUTO_REBUILD)
12157944Seric
12257944Seric# error message header/file */
12357944Sericifdef(`confERROR_MESSAGE',
12457944Seric	concat(OE, confERROR_MESSAGE),
12557944Seric	#OE/etc/sendmail.oE)
12657944Seric
12757944Seric# error mode
12857944Sericifdef(`confERROR_MODE',
12957944Seric	concat(Oe, confERROR_MODE),
13057944Seric	#Oep)
13157944Seric
13257944Seric# save Unix-style "From_" lines at top of header?
13357944SericCONCAT(Of, confSAVE_FROM_LINES)
13457944Seric
13557944Seric# temporary file mode
13657944SericCONCAT(OF, confTEMP_FILE_MODE)
13757944Seric
13857944Seric# match recipients against GECOS field?
13957944SericCONCAT(OG, confMATCH_GECOS)
14057944Seric
14157944Seric# default GID
14257944SericCONCAT(Og, confDEF_GROUP_ID)
14357944Seric
14457944Seric# maximum hop count
14557944SericCONCAT(Oh, confMAX_HOP)
14657944Seric
14757944Seric# location of help file
14857944SericCONCAT(OH, ifdef(`HELP_FILE', HELP_FILE, /usr/lib/sendmail.hf))
14957944Seric
15057944Seric# ignore dots as terminators in incoming messages?
15157944SericCONCAT(Oi, confIGNORE_DOTS)
15257944Seric
15357944Seric# Insist that the BIND name server be running to resolve names
15457944Sericifdef(`confBIND_OPTS',
15557944Seric	CONCAT(OI, confBIND_OPTS),
15657944Seric	#OI)
15757944Seric
15857944Seric# Forward file search path
15957944Sericifdef(`confFORWARD_PATH',
16057944Seric	CONCAT(OJ, confFORWARD_PATH),
16157944Seric	#OJ/var/forward/$u:$z/.forward.$w:$z/.forward)
16257944Seric
16357944Seric# open connection cache size
16457944SericCONCAT(Ok, confMCI_CACHE_SIZE)
16557944Seric
16657944Seric# open connection cache timeout
16757944SericCONCAT(OK, confMCI_CACHE_TIMEOUT)
16857944Seric
16957944Seric# log level
17057944SericCONCAT(OL, confLOG_LEVEL)
17157944Seric
17257944Seric# send to me too, even in an alias expansion?
17357944SericCONCAT(Om, confME_TOO)
17457944Seric
17557944Seric# verify RHS in newaliases?
17657944SericCONCAT(On, confCHECK_ALIASES)
17757944Seric
17857944Seric# default messages to old style headers if no special punctuation?
17957944SericCONCAT(Oo, confOLD_STYLE_HEADERS)
18057944Seric
18157944Seric# who (if anyone) should get extra copies of error messages
18257944Sericifdef(`confCOPY_ERRORS_TO',
18357944Seric	CONCAT(OP, confCOPY_ERRORS_TO),
18457944Seric	#OPPostmaster)
18557944Seric
18657944Seric# slope of queue-only function
18757944Sericifdef(`confQUEUE_FACTOR',
18857944Seric	CONCAT(Oq, confQUEUE_FACTOR),
18957944Seric	#Oq600000)
19057944Seric
19157944Seric# queue directory
19257944SericCONCAT(OQ, ifdef(`QUEUE_DIR', QUEUE_DIR, /var/spool/mqueue))
19357944Seric
19457944Seric# read timeout -- now OK per RFC 1123 section 5.3.2
19557944SericCONCAT(Or, confREAD_TIMEOUT)
19657944Seric
19757944Seric# queue up everything before forking?
19857944SericCONCAT(Os, confSAFE_QUEUE)
19957944Seric
20057944Seric# status file
20157944SericCONCAT(OS, ifdef(`STATUS_FILE', STATUS_FILE, /etc/sendmail.st))
20257944Seric
20357944Seric# default message timeout interval
20457944SericCONCAT(OT, confMESSAGE_TIMEOUT)
20557944Seric
20657944Seric# time zone handling:
20757944Seric#  if undefined, use system default
20857944Seric#  if defined but null, use TZ envariable passed in
20957944Seric#  if defined and non-null, use that info
21057944Sericifelse(confTIME_ZONE, `USE_SYSTEM', `#Ot',
21157944Seric	confTIME_ZONE, `USE_TZ', `',
21257944Seric	`CONCAT(Ot, confTIME_ZONE)')
21357944Seric
21457944Seric# default UID
21557944SericCONCAT(Ou, confDEF_USER_ID)
21657944Seric
21751887Seric# list of locations of user database file (null means no lookup)
21857944SericCONCAT(OU, ifdef(`USERDB_SPEC', `USERDB_SPEC'))
21951222Seric
22057944Seric# load average at which we just queue messages
22157944SericCONCAT(Ox, confQUEUE_LA)
22257944Seric
22357944Seric# load average at which we refuse connections
22457944SericCONCAT(OX, confREFUSE_LA)
22557944Seric
22657944Seric# work recipient factor
22757944Sericifdef(`confWORK_RECIPIENT_FACTOR',
22857944Seric	CONCAT(Oy, confWORK_RECIPIENT_FACTOR),
22957944Seric	#Oy30000)
23057944Seric
23157944Seric# deliver each queued job in a separate process?
23257944SericCONCAT(OY, confSEPARATE_PROC)
23357944Seric
23457944Seric# work class factor
23557944Sericifdef(`confWORK_CLASS_FACTOR',
23657944Seric	CONCAT(Oz, confWORK_CLASS_FACTOR),
23757944Seric	#Oz1800)
23857944Seric
23957944Seric# work time factor
24057944Sericifdef(`confWORK_TIME_FACTOR',
24157944Seric	CONCAT(OZ, confWORK_TIME_FACTOR),
24257944Seric	#OZ90000)
24357944Seric
24457944Seric###########################
24557944Seric#   Message precedences   #
24657944Seric###########################
24757944Seric
24857944SericPfirst-class=0
24957944SericPspecial-delivery=100
250*58070SericPlist=-30
25157944SericPbulk=-60
25257944SericPjunk=-100
25357944Seric
25457944Seric#####################
25557944Seric#   Trusted users   #
25657944Seric#####################
25757944Seric
25857944SericTroot
25957944SericTdaemon
26057944SericTuucp
26157944Seric
26257944Seric#########################
26357944Seric#   Format of headers   #
26457944Seric#########################
26557944Seric
26657944SericH?P?Return-Path: <$?<$<$|$g$.>
26757944SericHReceived: $?sfrom $s $.by $j ($v/$Z) id $i; $b
26857944SericH?D?Resent-Date: $a
26957944SericH?D?Date: $a
27057944SericH?F?Resent-From: $q
27157944SericH?F?From: $q
27257944SericH?x?Full-Name: $x
27357944SericHSubject:
27457944Seric# HPosted-Date: $a
27557944Seric# H?l?Received-Date: $b
27657944SericH?M?Resent-Message-Id: <$t.$i@$j>
27757944SericH?M?Message-Id: <$t.$i@$j>
27856786Sericundivert(6)dnl
27951222Seric#
28051222Seric######################################################################
28151222Seric######################################################################
28251222Seric#####
28351222Seric#####			REWRITING RULES
28451222Seric#####
28551222Seric######################################################################
28651222Seric######################################################################
28751222Seric
28851222Seric
28951222Seric###########################################
29051222Seric###  Rulset 3 -- Name Canonicalization  ###
29151222Seric###########################################
29251260SericS3
29351222Seric
29451222Seric# handle "from:<>" special case
29555416SericR$* < > $*		$@ @				turn into magic token
29651222Seric
29751222Seric# basic textual canonicalization -- note RFC733 heuristic here
29857012SericR$*<$*>$*<$*>$*		<$2>$3$4$5			strip multiple <> <>
29951222SericR$*<$*<$*<$+>$*>$*>$*	$4				3-level <> nesting
30051222SericR$*<$*<$+>$*>$*		$3				2-level <> nesting
30151222SericR$*<$+>$*		$2				basic RFC821/822 parsing
30251222Seric
30351222Seric# make sure <@a,@b,@c:user@d> syntax is easy to parse -- undone later
30455416SericR@ $+ , $+		@ $1 : $2			change all "," to ":"
30551222Seric
30651222Seric# localize and dispose of route-based addresses
30755416SericR@ $+ : $+		$@ $>6 < @$1 > : $2		handle <route-addr>
30851222Seric
30951222Seric# find focus for list syntax
31055416SericR $+ : $* ; @ $+	$@ $>6 $1 : $2 ; < @ $3 >	list syntax
31155416SericR $+ : $* ;		$@ $1 : $2;			list syntax
31251222Seric
31351222Seric# find focus for @ syntax addresses
31455416SericR$+ @ $+		$: $1 < @ $2 >			focus on domain
31555416SericR$+ < $+ @ $+ >		$1 $2 < @ $3 >			move gaze right
31655416SericR$+ < @ $+ >		$@ $>6 $1 < @ $2 >		already canonical
31751222Seric
31851222Seric# convert old-style addresses to a domain-based address
31955416SericR$- ! $+		$@ $>6 $2 < @ $1 .UUCP >	resolve uucp names
32055416SericR$+ . $- ! $+		$@ $>6 $3 < @ $1 . $2 >		domain uucps
32155416SericR$+ ! $+		$@ $>6 $2 < @ $1 .UUCP >	uucp subdomains
32251222Seric
32351222Seric# if we have % signs, take the rightmost one
32455416SericR$* % $*		$1 @ $2				First make them all @s.
32555416SericR$* @ $* @ $*		$1 % $2 @ $3			Undo all but the last.
32655416SericR$* @ $*		$@ $>6 $1 < @ $2 >		Insert < > and finish
32751222Seric
32851222Seric# else we must be a local name
32951222Seric
33051222Seric
33151222Seric###############################################
33251222Seric###  Ruleset 6 -- bottom half of ruleset 3  ###
33351222Seric###############################################
33451222Seric
33557245Seric#  At this point, everything should be in a "local_part<@domain>extra" format.
33651222SericS6
33751222Seric
33851222Seric# handle special cases for local names
33951322SericR$* < @ $=w > $*		$: $1 < @ $j . > $3		no domain at all
34055416SericR$* < @ $=w . UUCP > $*		$: $1 < @ $j . > $3		.UUCP domain
34151889Sericundivert(2)dnl
34251222Seric
34351274Sericifdef(`UUCP_RELAY',
34451274Seric`# pass UUCP addresses straight through
34555416SericR$* < @ $+ . UUCP > $*		$@ $1 < @ $2 . UUCP > $3',
34651274Seric`# if really UUCP, handle it immediately
34751322Sericifdef(`_CLASS_U_',
34855416Seric`R$* < @ $=U . UUCP > $*	$@ $1 < @ $2 . UUCP > $3', `dnl')
34951322Sericifdef(`_CLASS_V_',
35055416Seric`R$* < @ $=V . UUCP > $*	$@ $1 < @ $2 . UUCP > $3', `dnl')
35151322Sericifdef(`_CLASS_W_',
35255416Seric`R$* < @ $=W . UUCP > $*	$@ $1 < @ $2 . UUCP > $3', `dnl')
35351322Sericifdef(`_CLASS_X_',
35455416Seric`R$* < @ $=X . UUCP > $*	$@ $1 < @ $2 . UUCP > $3', `dnl')
35551322Sericifdef(`_CLASS_Y_',
35655416Seric`R$* < @ $=Y . UUCP > $*	$@ $1 < @ $2 . UUCP > $3', `dnl')
35751267Seric
35851267Seric# try UUCP traffic as a local address
35955416SericR$* < @ $+ . UUCP > $*		$: $1 < @ $[ $2 $] . UUCP > $3
36051992Sericifdef(`_OLD_SENDMAIL_',
36155416Seric`R$* < @ $+ . $+ . UUCP > $*		$@ $1 < @ $2 . $3 . > $4',
36255416Seric`R$* < @ $+ . . UUCP > $*		$@ $1 < @ $2 . > $3')')
36351267Seric
36451222Seric# pass to name server to make hostname canonical
36551322SericR$* < @ $* $~. > $*		$: $1 < @ $[ $2 $3 $] > $4
36651222Seric
36751889Seric# handle possible alternate names
36851889SericR$* < @ $=w . $m . > $*		$: $1 < @ $j . > $3
36951889SericR$* < @ $=w . $m > $*		$: $1 < @ $j . > $3
37051889Sericundivert(8)dnl
37151889Seric
37251322Seric# if this is the local hostname, make sure we treat is as canonical
37351322SericR$* < @ $j > $*			$: $1 < @ $j . > $2
37451222Seric
37551322Seric
37651222Seric##################################################
37751222Seric###  Ruleset 4 -- Final Output Post-rewriting  ###
37851222Seric##################################################
37951222SericS4
38051222Seric
38151222SericR@			$@				handle <> error addr
38251222Seric
38351222Seric# resolve numeric addresses to name if possible
38451322SericR$* < @ [ $+ ] > $*	$: $1 < @ $[ [$2] $] > $3	lookup numeric internet addr
38551222Seric
38651322Seric# strip trailing dot off possibly canonical name
38751322SericR$* < @ $+ . > $*	$1 < @ $2 > $3
38851322Seric
38951222Seric# externalize local domain info
39051322SericR$* < $+ > $*		$1 $2 $3			defocus
39151322SericR@ $+ : @ $+ : $+	@ $1 , @ $2 : $3		<route-addr> canonical
39251997SericR@ $*			$@ @ $1				... and exit
39351222Seric
39451222Seric# UUCP must always be presented in old form
39551322SericR$+ @ $- . UUCP		$2!$1				u@h.UUCP => h!u
39651222Seric
39751222Seric# delete duplicate local names
39851322SericR$+ % $=w @ $=w		$1 @ $j				u%host@host => u@host
39951222Seric
40051222Seric
40151222Seric
40251222Seric#############################################################
40351222Seric###   Ruleset 7 -- recanonicalize and call ruleset zero   ###
40451222Seric###		   (used for recursive calls)		  ###
40551222Seric#############################################################
40651222Seric
40751222SericS7
40851222SericR$*			$: $>3 $1
40951222SericR$*			$@ $>0 $1
41051222Seric
41151222Seric
41251222Seric######################################
41351222Seric###   Ruleset 0 -- Parse Address   ###
41451222Seric######################################
41551222Seric
41651222SericS0
41751222Seric
41855416Sericifdef(`_MAILER_smtp_',
41955416Seric`# handle numeric address spec
42051322SericR$* < @ [ $+ ] > $*	$: $1 < @ $[ [$2] $] > $3	numeric internet addr
42155416SericR$* < @ [ $+ ] > $*	$#smtp $@ [$2] $: $1 @ [$2] $3	numeric internet spec',
42256785Seric`dnl')
42351222Seric
42451887Seric# now delete the local info -- note $=O to find characters that cause forwarding
42551322SericR< @ $j . > : $*	$@ $>7 $1			@here:... -> ...
42651322SericR$* $=O $* < @ $j . >	$@ $>7 $1 $2 $3			...@here -> ...
42751222Seric
42851222Seric# short circuit local delivery so forwarded email works
42957527SericR$+ < @ $j . >		$: $1 < @ $j @ $H >		first try hub
43051992Sericifdef(`_OLD_SENDMAIL_',
431*58070Seric`R$+ < $+ @ $-:$+ >	$# $3 $@ $4 $: $1 < $2 >	yep ....
432*58070SericR$+ < $+ @ $+ >		$#smtp $@ $3 $: $1 < $2 >	yep ....
43357527SericR$+ < $+ @ >		$#local $: $1			nope, local address',
43457527Seric`R$+ < $+ @ $+ >		$#local $: $1			yep ....
43557527SericR$+ < $+ @ >		$#local $: @ $1			nope, local address')
43651222Sericundivert(3)dnl
43751260Sericundivert(4)dnl
43851260Seric
43955416Seric# resolve remotely connected UUCP links (if any)
44051285Sericifdef(`_CLASS_V_',
44152044Seric`R$* < @ $=V . UUCP > $*		$#smtp $@ $V $: <@ $V> : $1 @ $2.UUCP $3',
44252044Seric	`dnl')
44351285Sericifdef(`_CLASS_W_',
44452044Seric`R$* < @ $=W . UUCP > $*		$#smtp $@ $W $: <@ $W> : $1 @ $2.UUCP $3',
44552044Seric	`dnl')
44651285Sericifdef(`_CLASS_X_',
44752044Seric`R$* < @ $=X . UUCP > $*		$#smtp $@ $X $: <@ $X> : $1 @ $2.UUCP $3',
44852044Seric	`dnl')
44951260Seric
45051222Seric# resolve fake top level domains by forwarding to other hosts
45151222Sericifdef(`BITNET_RELAY',
45252044Seric`R$*<@$+.BITNET>$*	$#smtp $@ $B $: $1 <@$2.BITNET> $3	user@host.BITNET',
45351222Seric	`dnl')
45451222Sericifdef(`CSNET_RELAY',
45552044Seric`R$*<@$+.CSNET>$*	$#smtp $@ $C $: $1 <@$2.CSNET> $3	user@host.CSNET',
45651222Seric	`dnl')
45751222Seric
45851260Sericifdef(`UUCP_RELAY',
45951260Seric`# forward non-local UUCP traffic to our UUCP relay
46052044SericR$*<@$*.UUCP>$*		$#smtp $@ $Y $: <@ $Y> : $1 @ $2.UUCP $3	uucp mail',
46155416Seric`ifdef(`_MAILER_uucp_',
46251260Seric`# forward other UUCP traffic straight to UUCP
46351260SericR< @ $+ .UUCP > : $+	$#uucp $@ $1 $: $1:$2			@host.UUCP:...
46451322SericR$+ < @ $+ .UUCP >	$#uucp $@ $2 $: $1			user@host.UUCP',
46551260Seric	`dnl')')
46651222Seric
467*58070Sericifdef(`_LOCAL_RULES_',
468*58070Seric`# figure out what should stay in our local mail system
469*58070Sericundivert(1)',
470*58070Seric`ifdef(`_MAILER_smtp_',
47155416Seric`# deal with other remote names
472*58070SericR$* < @ $* > $*		$#smtp $@ $2 $: $1 < @ $2 > $3		user@host.domain')')
473*58070Sericifdef(`SMART_HOST', `
474*58070Seric# pass names that still have a host to a smarthost
475*58070SericR$* < @ $* > $*		$: < $S > $1 < @ $2 > $3	glue on smarthost name
476*58070SericR<$-:$+> $* < @$* > $*	$# $1 $@ $2 $: $3 < @ $4 > $5	if non-null, use it
477*58070SericR<$+> $* < @$* > $*	$#suucp $@ $1 $: $2 < @ $3 > $4	if non-null, use it
478*58070SericR<> $* < @ $* > $*	$1 < @ $2 > $3			else strip off gunk',
479*58070Seric`ifdef(`_LOCAL_RULES_', `
480*58070Seric# reject messages that have host names we do not understand
481*58070SericR$* < @ $* > $*		$#error $@ NOHOST $: Unrecognized host name $2',
482*58070Seric`dnl')')
48351222Seric
48451992Sericifdef(`_OLD_SENDMAIL_',
48551887Seric`# forward remaining names to local relay, if any
48652041SericR$=L			$#local $: $1			special local names
48752041SericR$+			$: $1 < @ $R >			append relay
48857527SericR$+ < @ >		$: $1 < @ $H >			no relay, try hub
48957527SericR$+ < @ >		$#local $: $1			no relay or hub: local
49057527SericR$+ < @ $j  >		$#local $: $1			we are relay/hub: local
491*58070SericR$+ < @ $-:$+ >		$# $2 $@ $3 $: $1		deliver to relay/hub
49257527SericR$+ < @ $+ >		$#smtp $@ $2 $: $1		deliver to relay/hub',
49351992Seric`# handle locally delivered names
49452041SericR$=L			$#local $: @ $1			special local names
49552041SericR$+			$#local $: $1			regular local names
49651222Seric
49755416Seric###########################################################################
49855416Seric###   Ruleset 5 -- special rewriting after aliases have been expanded   ###
49955416Seric###		   (new sendmail only)					###
50055416Seric###########################################################################
50151222Seric
50251322SericS5
50351322Seric
50455416Sericifdef(`_MAILER_smtp_',
50555416Seric`R$+			$: $1 < @ $R >
50657527SericR$+ < @ >		$: $1 < @ $H >			no relay, try hub
50757527SericR$+ < @ $j >		$@ $1				we are relay/hub: local
508*58070SericR$+ < @ $-:$+ >		$# $2 $@ $3 $: $1		send to relay or hub
50957527SericR$+ < @ $+ >		$#smtp $@ $2 $: $1		send to relay or hub')')
51051222Seric#
51151222Seric######################################################################
51251222Seric######################################################################
51351222Seric#####
51456790Seric`#####			MAILER DEFINITIONS'
51551222Seric#####
51651222Seric######################################################################
51751222Seric######################################################################
51851222Sericundivert(7)dnl
519