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*58288SericVERSIONID(`@(#)proto.m4 6.13 (Berkeley) 02/27/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) 67*58288SericCO @ % ifdef(`_NO_UUCP_', `', `!') 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) 20457944Seric 20557944Seric# queue up everything before forking? 20657944SericCONCAT(Os, confSAFE_QUEUE) 20757944Seric 20857944Seric# status file 20957944SericCONCAT(OS, ifdef(`STATUS_FILE', STATUS_FILE, /etc/sendmail.st)) 21057944Seric 21157944Seric# default message timeout interval 21257944SericCONCAT(OT, confMESSAGE_TIMEOUT) 21357944Seric 21457944Seric# time zone handling: 21557944Seric# if undefined, use system default 21657944Seric# if defined but null, use TZ envariable passed in 21757944Seric# if defined and non-null, use that info 21857944Sericifelse(confTIME_ZONE, `USE_SYSTEM', `#Ot', 21957944Seric confTIME_ZONE, `USE_TZ', `', 22057944Seric `CONCAT(Ot, confTIME_ZONE)') 22157944Seric 22257944Seric# default UID 22357944SericCONCAT(Ou, confDEF_USER_ID) 22457944Seric 22551887Seric# list of locations of user database file (null means no lookup) 22657944SericCONCAT(OU, ifdef(`USERDB_SPEC', `USERDB_SPEC')) 22751222Seric 22857944Seric# load average at which we just queue messages 22957944SericCONCAT(Ox, confQUEUE_LA) 23057944Seric 23157944Seric# load average at which we refuse connections 23257944SericCONCAT(OX, confREFUSE_LA) 23357944Seric 23457944Seric# work recipient factor 23557944Sericifdef(`confWORK_RECIPIENT_FACTOR', 23657944Seric CONCAT(Oy, confWORK_RECIPIENT_FACTOR), 23757944Seric #Oy30000) 23857944Seric 23957944Seric# deliver each queued job in a separate process? 24057944SericCONCAT(OY, confSEPARATE_PROC) 24157944Seric 24257944Seric# work class factor 24357944Sericifdef(`confWORK_CLASS_FACTOR', 24457944Seric CONCAT(Oz, confWORK_CLASS_FACTOR), 24557944Seric #Oz1800) 24657944Seric 24757944Seric# work time factor 24857944Sericifdef(`confWORK_TIME_FACTOR', 24957944Seric CONCAT(OZ, confWORK_TIME_FACTOR), 25057944Seric #OZ90000) 25157944Seric 25257944Seric########################### 25357944Seric# Message precedences # 25457944Seric########################### 25557944Seric 25657944SericPfirst-class=0 25757944SericPspecial-delivery=100 25858070SericPlist=-30 25957944SericPbulk=-60 26057944SericPjunk=-100 26157944Seric 26257944Seric##################### 26357944Seric# Trusted users # 26457944Seric##################### 26557944Seric 26657944SericTroot 26757944SericTdaemon 26857944SericTuucp 26957944Seric 27057944Seric######################### 27157944Seric# Format of headers # 27257944Seric######################### 27357944Seric 27457944SericH?P?Return-Path: <$?<$<$|$g$.> 27557944SericHReceived: $?sfrom $s $.by $j ($v/$Z) id $i; $b 27657944SericH?D?Resent-Date: $a 27757944SericH?D?Date: $a 27857944SericH?F?Resent-From: $q 27957944SericH?F?From: $q 28057944SericH?x?Full-Name: $x 28157944SericHSubject: 28257944Seric# HPosted-Date: $a 28357944Seric# H?l?Received-Date: $b 28457944SericH?M?Resent-Message-Id: <$t.$i@$j> 28557944SericH?M?Message-Id: <$t.$i@$j> 28656786Sericundivert(6)dnl 28751222Seric# 28851222Seric###################################################################### 28951222Seric###################################################################### 29051222Seric##### 29151222Seric##### REWRITING RULES 29251222Seric##### 29351222Seric###################################################################### 29451222Seric###################################################################### 29551222Seric 29651222Seric 29751222Seric########################################### 29851222Seric### Rulset 3 -- Name Canonicalization ### 29951222Seric########################################### 30051260SericS3 30151222Seric 30258174Seric# handle null input (translate to <> special case) 30358174SericR$@ $@ <@> 30458174Seric 30551222Seric# basic textual canonicalization -- note RFC733 heuristic here 30657012SericR$*<$*>$*<$*>$* <$2>$3$4$5 strip multiple <> <> 30758158SericR$*<$*<$+>$*>$* <$3>$5 2-level <> nesting 30858176SericR$*<>$* $@ <@> MAIL FROM:<> case 30951222SericR$*<$+>$* $2 basic RFC821/822 parsing 31051222Seric 31151222Seric# make sure <@a,@b,@c:user@d> syntax is easy to parse -- undone later 31255416SericR@ $+ , $+ @ $1 : $2 change all "," to ":" 31351222Seric 31451222Seric# localize and dispose of route-based addresses 31555416SericR@ $+ : $+ $@ $>6 < @$1 > : $2 handle <route-addr> 31651222Seric 31751222Seric# find focus for list syntax 31855416SericR $+ : $* ; @ $+ $@ $>6 $1 : $2 ; < @ $3 > list syntax 31955416SericR $+ : $* ; $@ $1 : $2; list syntax 32051222Seric 32151222Seric# find focus for @ syntax addresses 32255416SericR$+ @ $+ $: $1 < @ $2 > focus on domain 32355416SericR$+ < $+ @ $+ > $1 $2 < @ $3 > move gaze right 32455416SericR$+ < @ $+ > $@ $>6 $1 < @ $2 > already canonical 32551222Seric 326*58288Sericifdef(`_NO_UUCP_', `dnl', 327*58288Seric`# convert old-style addresses to a domain-based address 32855416SericR$- ! $+ $@ $>6 $2 < @ $1 .UUCP > resolve uucp names 32955416SericR$+ . $- ! $+ $@ $>6 $3 < @ $1 . $2 > domain uucps 330*58288SericR$+ ! $+ $@ $>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 403*58288Sericifdef(`_NO_UUCP_', `dnl', 404*58288Seric`# UUCP must always be presented in old form 405*58288SericR$+ @ $- . UUCP $2!$1 u@h.UUCP => h!u') 40651222Seric 40751222Seric# delete duplicate local names 40851322SericR$+ % $=w @ $=w $1 @ $j u%host@host => u@host 40951222Seric 41051222Seric 41151222Seric 41251222Seric############################################################# 41351222Seric### Ruleset 7 -- recanonicalize and call ruleset zero ### 41451222Seric### (used for recursive calls) ### 41551222Seric############################################################# 41651222Seric 41751222SericS7 41851222SericR$* $: $>3 $1 41951222SericR$* $@ $>0 $1 42051222Seric 42151222Seric 42251222Seric###################################### 42351222Seric### Ruleset 0 -- Parse Address ### 42451222Seric###################################### 42551222Seric 42651222SericS0 42751222Seric 42855416Sericifdef(`_MAILER_smtp_', 42955416Seric`# handle numeric address spec 43051322SericR$* < @ [ $+ ] > $* $: $1 < @ $[ [$2] $] > $3 numeric internet addr 43155416SericR$* < @ [ $+ ] > $* $#smtp $@ [$2] $: $1 @ [$2] $3 numeric internet spec', 43256785Seric`dnl') 43351222Seric 43451887Seric# now delete the local info -- note $=O to find characters that cause forwarding 43551322SericR< @ $j . > : $* $@ $>7 $1 @here:... -> ... 43651322SericR$* $=O $* < @ $j . > $@ $>7 $1 $2 $3 ...@here -> ... 43751222Seric 43851222Seric# short circuit local delivery so forwarded email works 43957527SericR$+ < @ $j . > $: $1 < @ $j @ $H > first try hub 44051992Sericifdef(`_OLD_SENDMAIL_', 44158070Seric`R$+ < $+ @ $-:$+ > $# $3 $@ $4 $: $1 < $2 > yep .... 44258070SericR$+ < $+ @ $+ > $#smtp $@ $3 $: $1 < $2 > yep .... 44357527SericR$+ < $+ @ > $#local $: $1 nope, local address', 44457527Seric`R$+ < $+ @ $+ > $#local $: $1 yep .... 44557527SericR$+ < $+ @ > $#local $: @ $1 nope, local address') 44651222Sericundivert(3)dnl 44751260Sericundivert(4)dnl 44851260Seric 44955416Seric# resolve remotely connected UUCP links (if any) 45051285Sericifdef(`_CLASS_V_', 45152044Seric`R$* < @ $=V . UUCP > $* $#smtp $@ $V $: <@ $V> : $1 @ $2.UUCP $3', 45252044Seric `dnl') 45351285Sericifdef(`_CLASS_W_', 45452044Seric`R$* < @ $=W . UUCP > $* $#smtp $@ $W $: <@ $W> : $1 @ $2.UUCP $3', 45552044Seric `dnl') 45651285Sericifdef(`_CLASS_X_', 45752044Seric`R$* < @ $=X . UUCP > $* $#smtp $@ $X $: <@ $X> : $1 @ $2.UUCP $3', 45852044Seric `dnl') 45951260Seric 46051222Seric# resolve fake top level domains by forwarding to other hosts 46151222Sericifdef(`BITNET_RELAY', 46252044Seric`R$*<@$+.BITNET>$* $#smtp $@ $B $: $1 <@$2.BITNET> $3 user@host.BITNET', 46351222Seric `dnl') 46451222Sericifdef(`CSNET_RELAY', 46552044Seric`R$*<@$+.CSNET>$* $#smtp $@ $C $: $1 <@$2.CSNET> $3 user@host.CSNET', 46651222Seric `dnl') 46751222Seric 46851260Sericifdef(`UUCP_RELAY', 46951260Seric`# forward non-local UUCP traffic to our UUCP relay 47052044SericR$*<@$*.UUCP>$* $#smtp $@ $Y $: <@ $Y> : $1 @ $2.UUCP $3 uucp mail', 47155416Seric`ifdef(`_MAILER_uucp_', 47251260Seric`# forward other UUCP traffic straight to UUCP 47351260SericR< @ $+ .UUCP > : $+ $#uucp $@ $1 $: $1:$2 @host.UUCP:... 47451322SericR$+ < @ $+ .UUCP > $#uucp $@ $2 $: $1 user@host.UUCP', 47551260Seric `dnl')') 47651222Seric 47758070Sericifdef(`_LOCAL_RULES_', 47858070Seric`# figure out what should stay in our local mail system 47958070Sericundivert(1)', 48058070Seric`ifdef(`_MAILER_smtp_', 48155416Seric`# deal with other remote names 48258070SericR$* < @ $* > $* $#smtp $@ $2 $: $1 < @ $2 > $3 user@host.domain')') 48358070Sericifdef(`SMART_HOST', ` 48458070Seric# pass names that still have a host to a smarthost 48558070SericR$* < @ $* > $* $: < $S > $1 < @ $2 > $3 glue on smarthost name 48658070SericR<$-:$+> $* < @$* > $* $# $1 $@ $2 $: $3 < @ $4 > $5 if non-null, use it 48758070SericR<$+> $* < @$* > $* $#suucp $@ $1 $: $2 < @ $3 > $4 if non-null, use it 48858070SericR<> $* < @ $* > $* $1 < @ $2 > $3 else strip off gunk', 48958070Seric`ifdef(`_LOCAL_RULES_', ` 49058070Seric# reject messages that have host names we do not understand 49158070SericR$* < @ $* > $* $#error $@ NOHOST $: Unrecognized host name $2', 49258070Seric`dnl')') 49358084Sericifdef(`_MAILER_USENET_', ` 49458084Seric# addresses sent to net.group.USENET will get forwarded to a newsgroup 49558096SericR$+ . USENET $# usenet $: $1') 49651222Seric 49751992Sericifdef(`_OLD_SENDMAIL_', 49851887Seric`# forward remaining names to local relay, if any 49952041SericR$=L $#local $: $1 special local names 50052041SericR$+ $: $1 < @ $R > append relay 50157527SericR$+ < @ > $: $1 < @ $H > no relay, try hub 50257527SericR$+ < @ > $#local $: $1 no relay or hub: local 50357527SericR$+ < @ $j > $#local $: $1 we are relay/hub: local 50458070SericR$+ < @ $-:$+ > $# $2 $@ $3 $: $1 deliver to relay/hub 50557527SericR$+ < @ $+ > $#smtp $@ $2 $: $1 deliver to relay/hub', 50651992Seric`# handle locally delivered names 50752041SericR$=L $#local $: @ $1 special local names 50852041SericR$+ $#local $: $1 regular local names 50951222Seric 51055416Seric########################################################################### 51155416Seric### Ruleset 5 -- special rewriting after aliases have been expanded ### 51255416Seric### (new sendmail only) ### 51355416Seric########################################################################### 51451222Seric 51551322SericS5 51651322Seric 51755416Sericifdef(`_MAILER_smtp_', 51855416Seric`R$+ $: $1 < @ $R > 51957527SericR$+ < @ > $: $1 < @ $H > no relay, try hub 52057527SericR$+ < @ $j > $@ $1 we are relay/hub: local 52158070SericR$+ < @ $-:$+ > $# $2 $@ $3 $: $1 send to relay or hub 52257527SericR$+ < @ $+ > $#smtp $@ $2 $: $1 send to relay or hub')') 52351222Seric# 52451222Seric###################################################################### 52551222Seric###################################################################### 52651222Seric##### 52756790Seric`##### MAILER DEFINITIONS' 52851222Seric##### 52951222Seric###################################################################### 53051222Seric###################################################################### 53151222Sericundivert(7)dnl 532