|
|
1.1 ! root 1: divert(10) ! 2: # ! 3: # Sendmail ! 4: # Copyright (c) 1983 Eric P. Allman ! 5: # Berkeley, California ! 6: # ! 7: # Copyright (c) 1983 Regents of the University of California. ! 8: # All rights reserved. The Berkeley software License Agreement ! 9: # specifies the terms and conditions for redistribution. ! 10: # ! 11: # @(#)rule0.m4 1.6 (Berkeley) 2/26/86 ! 12: # ! 13: divert(0) ! 14: ############################################################ ! 15: ############################################################ ! 16: ##### ! 17: ##### RULESET ZERO PREAMBLE ! 18: ##### ! 19: ##### The beginning of ruleset zero is constant through all ! 20: ##### configurations. ! 21: ##### ! 22: ############################################################ ! 23: ############################################################ ! 24: ! 25: S0 ! 26: ! 27: # first make canonical ! 28: R$*<$*>$* $1$2$3 defocus ! 29: R$+ $:$>3$1 make canonical ! 30: ! 31: # handle special cases..... ! 32: R$*<@[$+]>$* $:$1<@$[[$2]$]>$3 lookup numeric internet addr ! 33: R$*<@[$+]>$* $#tcp$@[$2]$:$1@[$2]$3 numeric internet spec ! 34: R$+ $:$>6$1 ! 35: R$-<@LOCAL> $#local$:$1 ! 36: R@ $#local$:$n handle <> form ! 37: ! 38: # canonicalize using the nameserver if not internal domain ! 39: R$*<@$*.$~I>$* $:$1<@$[$2.$3$]>$4 ! 40: R$*<@$->$* $:$1<@$[$2$]>$3 ! 41: ! 42: # arrange for local names to be fully qualified ! 43: R$*<$+.ARPA.LOCAL>$* $1<$2.ARPA>$3 because ARPA is a host ! 44: ! 45: # now delete the local info ! 46: R$*<$*$=w.$=T>$* $1<$2>$5 thishost.LOCAL ! 47: R$*<$*$=w>$* $1<$2>$4 thishost ! 48: R$*<$*.>$* $1<$2>$3 drop trailing dot ! 49: R<@>:$* $@$>0$1 retry after route strip ! 50: R$*<@> $@$>0$1 strip null trash & retry ! 51: ! 52: # forward around hosts with communication problems ! 53: R$*<@$=F.LOCAL>$* $#tcp$@$F$:$1<@$2.LOCAL>$3 reroute message ! 54: ! 55: ################################## ! 56: # End of ruleset zero preamble # ! 57: ##################################
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.