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*58174SericVERSIONID(`@(#)proto.m4 6.10 (Berkeley) 02/24/93') 1251222Seric 1351322SericMAILER(local)dnl 1451222Seric 1552646Sericifdef(`_OLD_SENDMAIL_', `dnl', 1658119Seric`# level 4 config file format 1758119SericV4') 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 4358070Sericifdef(`SMART_HOST', 4458070Seric`# "Smart" UUCP relay host 4558070SericCONCAT(DS, SMART_HOST) 4651222Seric 4758070Seric')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 5458070Seric# my official hostname ($w or $w.$D) 5558070SericCONCAT(Dj$w, ifdef(`NEED_DOMAIN', .$D)) 5658070Seric 5758070Seric# who I masquerade as (can be $j) 5858070SericCONCAT(DM, ifdef(`MASQUERADE_NAME', MASQUERADE_NAME, $j)) 5958070Seric 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 10758084Seric# minimum number of free blocks on filesystem 10858084SericCONCAT(Ob, confMIN_FREE_BLOCKS) 10958084Seric 11057944Seric# substitution for space (blank) characters 11157944SericCONCAT(OB, confBLANK_SUB) 11257944Seric 11357944Seric# connect to "expensive" mailers on initial submission? 11457944SericCONCAT(Oc, confCON_EXPENSIVE) 11557944Seric 11657944Seric# checkpoint queue runs after every N successful deliveries 11757944SericCONCAT(OC, confCHECKPOINT_INTERVAL) 11857944Seric 11957944Seric# default delivery mode 12057944SericCONCAT(Od, confDELIVERY_MODE) 12157944Seric 12257944Seric# automatically rebuild the alias database? 12357944SericCONCAT(OD, confAUTO_REBUILD) 12457944Seric 12557944Seric# error message header/file */ 12657944Sericifdef(`confERROR_MESSAGE', 12757944Seric concat(OE, confERROR_MESSAGE), 12857944Seric #OE/etc/sendmail.oE) 12957944Seric 13057944Seric# error mode 13157944Sericifdef(`confERROR_MODE', 13257944Seric concat(Oe, confERROR_MODE), 13357944Seric #Oep) 13457944Seric 13557944Seric# save Unix-style "From_" lines at top of header? 13657944SericCONCAT(Of, confSAVE_FROM_LINES) 13757944Seric 13857944Seric# temporary file mode 13957944SericCONCAT(OF, confTEMP_FILE_MODE) 14057944Seric 14157944Seric# match recipients against GECOS field? 14257944SericCONCAT(OG, confMATCH_GECOS) 14357944Seric 14457944Seric# default GID 14557944SericCONCAT(Og, confDEF_GROUP_ID) 14657944Seric 14757944Seric# maximum hop count 14857944SericCONCAT(Oh, confMAX_HOP) 14957944Seric 15057944Seric# location of help file 15157944SericCONCAT(OH, ifdef(`HELP_FILE', HELP_FILE, /usr/lib/sendmail.hf)) 15257944Seric 15357944Seric# ignore dots as terminators in incoming messages? 15457944SericCONCAT(Oi, confIGNORE_DOTS) 15557944Seric 15657944Seric# Insist that the BIND name server be running to resolve names 15757944Sericifdef(`confBIND_OPTS', 15857944Seric CONCAT(OI, confBIND_OPTS), 15957944Seric #OI) 16057944Seric 16157944Seric# Forward file search path 16257944Sericifdef(`confFORWARD_PATH', 16357944Seric CONCAT(OJ, confFORWARD_PATH), 16457944Seric #OJ/var/forward/$u:$z/.forward.$w:$z/.forward) 16557944Seric 16657944Seric# open connection cache size 16757944SericCONCAT(Ok, confMCI_CACHE_SIZE) 16857944Seric 16957944Seric# open connection cache timeout 17057944SericCONCAT(OK, confMCI_CACHE_TIMEOUT) 17157944Seric 17257944Seric# log level 17357944SericCONCAT(OL, confLOG_LEVEL) 17457944Seric 17557944Seric# send to me too, even in an alias expansion? 17657944SericCONCAT(Om, confME_TOO) 17757944Seric 17857944Seric# verify RHS in newaliases? 17957944SericCONCAT(On, confCHECK_ALIASES) 18057944Seric 18157944Seric# default messages to old style headers if no special punctuation? 18257944SericCONCAT(Oo, confOLD_STYLE_HEADERS) 18357944Seric 18458084Seric# privacy flags 18558084SericCONCAT(Op, confPRIVACY_FLAGS) 18658084Seric 18757944Seric# who (if anyone) should get extra copies of error messages 18857944Sericifdef(`confCOPY_ERRORS_TO', 18957944Seric CONCAT(OP, confCOPY_ERRORS_TO), 19057944Seric #OPPostmaster) 19157944Seric 19257944Seric# slope of queue-only function 19357944Sericifdef(`confQUEUE_FACTOR', 19457944Seric CONCAT(Oq, confQUEUE_FACTOR), 19557944Seric #Oq600000) 19657944Seric 19757944Seric# queue directory 19857944SericCONCAT(OQ, ifdef(`QUEUE_DIR', QUEUE_DIR, /var/spool/mqueue)) 19957944Seric 20057944Seric# read timeout -- now OK per RFC 1123 section 5.3.2 20158119Sericifdef(`confREAD_TIMEOUT', 20258119Seric CONCAT(Or, confREAD_TIMEOUT), 20358119Seric #Ordatablock=10m) 20457944SericCONCAT(Or, confREAD_TIMEOUT) 20557944Seric 20657944Seric# queue up everything before forking? 20757944SericCONCAT(Os, confSAFE_QUEUE) 20857944Seric 20957944Seric# status file 21057944SericCONCAT(OS, ifdef(`STATUS_FILE', STATUS_FILE, /etc/sendmail.st)) 21157944Seric 21257944Seric# default message timeout interval 21357944SericCONCAT(OT, confMESSAGE_TIMEOUT) 21457944Seric 21557944Seric# time zone handling: 21657944Seric# if undefined, use system default 21757944Seric# if defined but null, use TZ envariable passed in 21857944Seric# if defined and non-null, use that info 21957944Sericifelse(confTIME_ZONE, `USE_SYSTEM', `#Ot', 22057944Seric confTIME_ZONE, `USE_TZ', `', 22157944Seric `CONCAT(Ot, confTIME_ZONE)') 22257944Seric 22357944Seric# default UID 22457944SericCONCAT(Ou, confDEF_USER_ID) 22557944Seric 22651887Seric# list of locations of user database file (null means no lookup) 22757944SericCONCAT(OU, ifdef(`USERDB_SPEC', `USERDB_SPEC')) 22851222Seric 22957944Seric# load average at which we just queue messages 23057944SericCONCAT(Ox, confQUEUE_LA) 23157944Seric 23257944Seric# load average at which we refuse connections 23357944SericCONCAT(OX, confREFUSE_LA) 23457944Seric 23557944Seric# work recipient factor 23657944Sericifdef(`confWORK_RECIPIENT_FACTOR', 23757944Seric CONCAT(Oy, confWORK_RECIPIENT_FACTOR), 23857944Seric #Oy30000) 23957944Seric 24057944Seric# deliver each queued job in a separate process? 24157944SericCONCAT(OY, confSEPARATE_PROC) 24257944Seric 24357944Seric# work class factor 24457944Sericifdef(`confWORK_CLASS_FACTOR', 24557944Seric CONCAT(Oz, confWORK_CLASS_FACTOR), 24657944Seric #Oz1800) 24757944Seric 24857944Seric# work time factor 24957944Sericifdef(`confWORK_TIME_FACTOR', 25057944Seric CONCAT(OZ, confWORK_TIME_FACTOR), 25157944Seric #OZ90000) 25257944Seric 25357944Seric########################### 25457944Seric# Message precedences # 25557944Seric########################### 25657944Seric 25757944SericPfirst-class=0 25857944SericPspecial-delivery=100 25958070SericPlist=-30 26057944SericPbulk=-60 26157944SericPjunk=-100 26257944Seric 26357944Seric##################### 26457944Seric# Trusted users # 26557944Seric##################### 26657944Seric 26757944SericTroot 26857944SericTdaemon 26957944SericTuucp 27057944Seric 27157944Seric######################### 27257944Seric# Format of headers # 27357944Seric######################### 27457944Seric 27557944SericH?P?Return-Path: <$?<$<$|$g$.> 27657944SericHReceived: $?sfrom $s $.by $j ($v/$Z) id $i; $b 27757944SericH?D?Resent-Date: $a 27857944SericH?D?Date: $a 27957944SericH?F?Resent-From: $q 28057944SericH?F?From: $q 28157944SericH?x?Full-Name: $x 28257944SericHSubject: 28357944Seric# HPosted-Date: $a 28457944Seric# H?l?Received-Date: $b 28557944SericH?M?Resent-Message-Id: <$t.$i@$j> 28657944SericH?M?Message-Id: <$t.$i@$j> 28756786Sericundivert(6)dnl 28851222Seric# 28951222Seric###################################################################### 29051222Seric###################################################################### 29151222Seric##### 29251222Seric##### REWRITING RULES 29351222Seric##### 29451222Seric###################################################################### 29551222Seric###################################################################### 29651222Seric 29751222Seric 29851222Seric########################################### 29951222Seric### Rulset 3 -- Name Canonicalization ### 30051222Seric########################################### 30151260SericS3 30251222Seric 303*58174Seric# handle null input (translate to <> special case) 304*58174SericR$@ $@ <@> 305*58174Seric 30651222Seric# basic textual canonicalization -- note RFC733 heuristic here 30757012SericR$*<$*>$*<$*>$* <$2>$3$4$5 strip multiple <> <> 30858158SericR$*<$*<$+>$*>$* <$3>$5 2-level <> nesting 30958158SericR$*<>$* $@ $<@> MAIL FROM:<> case 31051222SericR$*<$+>$* $2 basic RFC821/822 parsing 31151222Seric 31251222Seric# make sure <@a,@b,@c:user@d> syntax is easy to parse -- undone later 31355416SericR@ $+ , $+ @ $1 : $2 change all "," to ":" 31451222Seric 31551222Seric# localize and dispose of route-based addresses 31655416SericR@ $+ : $+ $@ $>6 < @$1 > : $2 handle <route-addr> 31751222Seric 31851222Seric# find focus for list syntax 31955416SericR $+ : $* ; @ $+ $@ $>6 $1 : $2 ; < @ $3 > list syntax 32055416SericR $+ : $* ; $@ $1 : $2; list syntax 32151222Seric 32251222Seric# find focus for @ syntax addresses 32355416SericR$+ @ $+ $: $1 < @ $2 > focus on domain 32455416SericR$+ < $+ @ $+ > $1 $2 < @ $3 > move gaze right 32555416SericR$+ < @ $+ > $@ $>6 $1 < @ $2 > already canonical 32651222Seric 32751222Seric# convert old-style addresses to a domain-based address 32855416SericR$- ! $+ $@ $>6 $2 < @ $1 .UUCP > resolve uucp names 32955416SericR$+ . $- ! $+ $@ $>6 $3 < @ $1 . $2 > domain uucps 33055416SericR$+ ! $+ $@ $>6 $2 < @ $1 .UUCP > uucp subdomains 33151222Seric 33251222Seric# if we have % signs, take the rightmost one 33355416SericR$* % $* $1 @ $2 First make them all @s. 33455416SericR$* @ $* @ $* $1 % $2 @ $3 Undo all but the last. 33555416SericR$* @ $* $@ $>6 $1 < @ $2 > Insert < > and finish 33651222Seric 33751222Seric# else we must be a local name 33851222Seric 33951222Seric 34051222Seric############################################### 34151222Seric### Ruleset 6 -- bottom half of ruleset 3 ### 34251222Seric############################################### 34351222Seric 34457245Seric# At this point, everything should be in a "local_part<@domain>extra" format. 34551222SericS6 34651222Seric 34751222Seric# handle special cases for local names 34851322SericR$* < @ $=w > $* $: $1 < @ $j . > $3 no domain at all 34955416SericR$* < @ $=w . UUCP > $* $: $1 < @ $j . > $3 .UUCP domain 35051889Sericundivert(2)dnl 35151222Seric 35251274Sericifdef(`UUCP_RELAY', 35351274Seric`# pass UUCP addresses straight through 35455416SericR$* < @ $+ . UUCP > $* $@ $1 < @ $2 . UUCP > $3', 35551274Seric`# if really UUCP, handle it immediately 35651322Sericifdef(`_CLASS_U_', 35755416Seric`R$* < @ $=U . UUCP > $* $@ $1 < @ $2 . UUCP > $3', `dnl') 35851322Sericifdef(`_CLASS_V_', 35955416Seric`R$* < @ $=V . UUCP > $* $@ $1 < @ $2 . UUCP > $3', `dnl') 36051322Sericifdef(`_CLASS_W_', 36155416Seric`R$* < @ $=W . UUCP > $* $@ $1 < @ $2 . UUCP > $3', `dnl') 36251322Sericifdef(`_CLASS_X_', 36355416Seric`R$* < @ $=X . UUCP > $* $@ $1 < @ $2 . UUCP > $3', `dnl') 36451322Sericifdef(`_CLASS_Y_', 36555416Seric`R$* < @ $=Y . UUCP > $* $@ $1 < @ $2 . UUCP > $3', `dnl') 36651267Seric 36751267Seric# try UUCP traffic as a local address 36855416SericR$* < @ $+ . UUCP > $* $: $1 < @ $[ $2 $] . UUCP > $3 36951992Sericifdef(`_OLD_SENDMAIL_', 37055416Seric`R$* < @ $+ . $+ . UUCP > $* $@ $1 < @ $2 . $3 . > $4', 37155416Seric`R$* < @ $+ . . UUCP > $* $@ $1 < @ $2 . > $3')') 37251267Seric 37351222Seric# pass to name server to make hostname canonical 37451322SericR$* < @ $* $~. > $* $: $1 < @ $[ $2 $3 $] > $4 37551222Seric 37651889Seric# handle possible alternate names 37751889SericR$* < @ $=w . $m . > $* $: $1 < @ $j . > $3 37851889SericR$* < @ $=w . $m > $* $: $1 < @ $j . > $3 37951889Sericundivert(8)dnl 38051889Seric 38151322Seric# if this is the local hostname, make sure we treat is as canonical 38251322SericR$* < @ $j > $* $: $1 < @ $j . > $2 38351222Seric 38451322Seric 38551222Seric################################################## 38651222Seric### Ruleset 4 -- Final Output Post-rewriting ### 38751222Seric################################################## 38851222SericS4 38951222Seric 39058119SericR<@> $@ handle <> error addr 39151222Seric 39251222Seric# resolve numeric addresses to name if possible 39351322SericR$* < @ [ $+ ] > $* $: $1 < @ $[ [$2] $] > $3 lookup numeric internet addr 39451222Seric 39551322Seric# strip trailing dot off possibly canonical name 39651322SericR$* < @ $+ . > $* $1 < @ $2 > $3 39751322Seric 39851222Seric# externalize local domain info 39951322SericR$* < $+ > $* $1 $2 $3 defocus 40051322SericR@ $+ : @ $+ : $+ @ $1 , @ $2 : $3 <route-addr> canonical 40151997SericR@ $* $@ @ $1 ... and exit 40251222Seric 40351222Seric# UUCP must always be presented in old form 40451322SericR$+ @ $- . UUCP $2!$1 u@h.UUCP => h!u 40551222Seric 40651222Seric# delete duplicate local names 40751322SericR$+ % $=w @ $=w $1 @ $j u%host@host => u@host 40851222Seric 40951222Seric 41051222Seric 41151222Seric############################################################# 41251222Seric### Ruleset 7 -- recanonicalize and call ruleset zero ### 41351222Seric### (used for recursive calls) ### 41451222Seric############################################################# 41551222Seric 41651222SericS7 41751222SericR$* $: $>3 $1 41851222SericR$* $@ $>0 $1 41951222Seric 42051222Seric 42151222Seric###################################### 42251222Seric### Ruleset 0 -- Parse Address ### 42351222Seric###################################### 42451222Seric 42551222SericS0 42651222Seric 42755416Sericifdef(`_MAILER_smtp_', 42855416Seric`# handle numeric address spec 42951322SericR$* < @ [ $+ ] > $* $: $1 < @ $[ [$2] $] > $3 numeric internet addr 43055416SericR$* < @ [ $+ ] > $* $#smtp $@ [$2] $: $1 @ [$2] $3 numeric internet spec', 43156785Seric`dnl') 43251222Seric 43351887Seric# now delete the local info -- note $=O to find characters that cause forwarding 43451322SericR< @ $j . > : $* $@ $>7 $1 @here:... -> ... 43551322SericR$* $=O $* < @ $j . > $@ $>7 $1 $2 $3 ...@here -> ... 43651222Seric 43751222Seric# short circuit local delivery so forwarded email works 43857527SericR$+ < @ $j . > $: $1 < @ $j @ $H > first try hub 43951992Sericifdef(`_OLD_SENDMAIL_', 44058070Seric`R$+ < $+ @ $-:$+ > $# $3 $@ $4 $: $1 < $2 > yep .... 44158070SericR$+ < $+ @ $+ > $#smtp $@ $3 $: $1 < $2 > yep .... 44257527SericR$+ < $+ @ > $#local $: $1 nope, local address', 44357527Seric`R$+ < $+ @ $+ > $#local $: $1 yep .... 44457527SericR$+ < $+ @ > $#local $: @ $1 nope, local address') 44551222Sericundivert(3)dnl 44651260Sericundivert(4)dnl 44751260Seric 44855416Seric# resolve remotely connected UUCP links (if any) 44951285Sericifdef(`_CLASS_V_', 45052044Seric`R$* < @ $=V . UUCP > $* $#smtp $@ $V $: <@ $V> : $1 @ $2.UUCP $3', 45152044Seric `dnl') 45251285Sericifdef(`_CLASS_W_', 45352044Seric`R$* < @ $=W . UUCP > $* $#smtp $@ $W $: <@ $W> : $1 @ $2.UUCP $3', 45452044Seric `dnl') 45551285Sericifdef(`_CLASS_X_', 45652044Seric`R$* < @ $=X . UUCP > $* $#smtp $@ $X $: <@ $X> : $1 @ $2.UUCP $3', 45752044Seric `dnl') 45851260Seric 45951222Seric# resolve fake top level domains by forwarding to other hosts 46051222Sericifdef(`BITNET_RELAY', 46152044Seric`R$*<@$+.BITNET>$* $#smtp $@ $B $: $1 <@$2.BITNET> $3 user@host.BITNET', 46251222Seric `dnl') 46351222Sericifdef(`CSNET_RELAY', 46452044Seric`R$*<@$+.CSNET>$* $#smtp $@ $C $: $1 <@$2.CSNET> $3 user@host.CSNET', 46551222Seric `dnl') 46651222Seric 46751260Sericifdef(`UUCP_RELAY', 46851260Seric`# forward non-local UUCP traffic to our UUCP relay 46952044SericR$*<@$*.UUCP>$* $#smtp $@ $Y $: <@ $Y> : $1 @ $2.UUCP $3 uucp mail', 47055416Seric`ifdef(`_MAILER_uucp_', 47151260Seric`# forward other UUCP traffic straight to UUCP 47251260SericR< @ $+ .UUCP > : $+ $#uucp $@ $1 $: $1:$2 @host.UUCP:... 47351322SericR$+ < @ $+ .UUCP > $#uucp $@ $2 $: $1 user@host.UUCP', 47451260Seric `dnl')') 47551222Seric 47658070Sericifdef(`_LOCAL_RULES_', 47758070Seric`# figure out what should stay in our local mail system 47858070Sericundivert(1)', 47958070Seric`ifdef(`_MAILER_smtp_', 48055416Seric`# deal with other remote names 48158070SericR$* < @ $* > $* $#smtp $@ $2 $: $1 < @ $2 > $3 user@host.domain')') 48258070Sericifdef(`SMART_HOST', ` 48358070Seric# pass names that still have a host to a smarthost 48458070SericR$* < @ $* > $* $: < $S > $1 < @ $2 > $3 glue on smarthost name 48558070SericR<$-:$+> $* < @$* > $* $# $1 $@ $2 $: $3 < @ $4 > $5 if non-null, use it 48658070SericR<$+> $* < @$* > $* $#suucp $@ $1 $: $2 < @ $3 > $4 if non-null, use it 48758070SericR<> $* < @ $* > $* $1 < @ $2 > $3 else strip off gunk', 48858070Seric`ifdef(`_LOCAL_RULES_', ` 48958070Seric# reject messages that have host names we do not understand 49058070SericR$* < @ $* > $* $#error $@ NOHOST $: Unrecognized host name $2', 49158070Seric`dnl')') 49258084Sericifdef(`_MAILER_USENET_', ` 49358084Seric# addresses sent to net.group.USENET will get forwarded to a newsgroup 49458096SericR$+ . USENET $# usenet $: $1') 49551222Seric 49651992Sericifdef(`_OLD_SENDMAIL_', 49751887Seric`# forward remaining names to local relay, if any 49852041SericR$=L $#local $: $1 special local names 49952041SericR$+ $: $1 < @ $R > append relay 50057527SericR$+ < @ > $: $1 < @ $H > no relay, try hub 50157527SericR$+ < @ > $#local $: $1 no relay or hub: local 50257527SericR$+ < @ $j > $#local $: $1 we are relay/hub: local 50358070SericR$+ < @ $-:$+ > $# $2 $@ $3 $: $1 deliver to relay/hub 50457527SericR$+ < @ $+ > $#smtp $@ $2 $: $1 deliver to relay/hub', 50551992Seric`# handle locally delivered names 50652041SericR$=L $#local $: @ $1 special local names 50752041SericR$+ $#local $: $1 regular local names 50851222Seric 50955416Seric########################################################################### 51055416Seric### Ruleset 5 -- special rewriting after aliases have been expanded ### 51155416Seric### (new sendmail only) ### 51255416Seric########################################################################### 51351222Seric 51451322SericS5 51551322Seric 51655416Sericifdef(`_MAILER_smtp_', 51755416Seric`R$+ $: $1 < @ $R > 51857527SericR$+ < @ > $: $1 < @ $H > no relay, try hub 51957527SericR$+ < @ $j > $@ $1 we are relay/hub: local 52058070SericR$+ < @ $-:$+ > $# $2 $@ $3 $: $1 send to relay or hub 52157527SericR$+ < @ $+ > $#smtp $@ $2 $: $1 send to relay or hub')') 52251222Seric# 52351222Seric###################################################################### 52451222Seric###################################################################### 52551222Seric##### 52656790Seric`##### MAILER DEFINITIONS' 52751222Seric##### 52851222Seric###################################################################### 52951222Seric###################################################################### 53051222Sericundivert(7)dnl 531