|
|
1.1 ! root 1: ########################################## ! 2: # sendmail configuration file ! 3: # @(#)cf.m4 3.42 1/1/82 ! 4: ########################################## ! 5: ! 6: include(macros.m4) dnl ! 7: include(whoami.m4) dnl ! 8: ! 9: ### local hosts on various nets ! 10: # arpanet ! 11: ifdef(`ANHOST', concat(DA, ANHOST)) ! 12: # berknet ! 13: ifdef(`BNHOST', concat(DB, BNHOST)) ! 14: # ethernet ! 15: ifdef(`ENHOST', concat(DE, ENHOST)) ! 16: # uucpnet ! 17: ifdef(`UNHOST', concat(DU, UNHOST)) ! 18: # arpanet gateway ! 19: DGucbvax ! 20: # uucp gateway ! 21: DHcbosgd ! 22: # IBM gateway ! 23: DIg ! 24: # Berknet gateway ! 25: DJucbvax ! 26: ! 27: ### special macros ! 28: # my name ! 29: DnMAILER-DAEMON ! 30: # my official SMTP hostname ! 31: ifdef(`UNHOST', concat(Di, UNHOST)) ! 32: # UNIX header format ! 33: DlFrom $g $d ! 34: # delimiter (operator) characters ! 35: Do.:%@!^=/ ! 36: ! 37: ### other special macros are set internally: ! 38: # f -- from person ! 39: # g -- from person translated by mailer ! 40: # u -- the user being sent to ! 41: # h -- the host being sent to ! 42: # c -- the hop count ! 43: # p -- the process id -- for unique names ! 44: # t -- the current time (as a base 10 number) ! 45: # d -- the sending date (as a ctime string) ! 46: # a -- the sending date (in arpanet format) ! 47: # b -- the current date (in arpanet format) ! 48: # x -- ``signature'' (full name) ! 49: # y -- the tty id ! 50: # z -- home directory of recipient ! 51: ! 52: ### format of headers: ! 53: HMail-From: ! 54: HDate: $a ! 55: HFrom: $g$?x ($x)$. ! 56: HFull-Name: $x ! 57: HSubject: ! 58: # HFrom: $?x$x $.<$g> ! 59: # HPosted-Date: $a ! 60: # HReceived-Date: $b ! 61: # HMessage-Id: <$t.$p.$B@$A> ! 62: HVia: $U.uucp (V$v); $b ! 63: ! 64: ### name classifications ! 65: # arpanet hostnames ! 66: CAUCB Berkeley UCB-C70 ! 67: # list of local host names ! 68: CBCSVAX v VAX ernie ucbvax ! 69: # berknet hosts on the arpanet ! 70: CCu c70 ! 71: # uucp hostnames ! 72: CUcbosgd ! 73: # known domains ! 74: CDarpa berk uucp ibm ! 75: # known SMTP hosts ! 76: CSmonet ucb-comet oscar bert ucb-arpa ! 77: # known berknet hosts ! 78: CHA B C D E F G Q S Src ! 79: CHI Ing70 Ingres J IngVAX ! 80: CHV CSVAX R ARPAVAX U C70 Y Cory X Onyx ! 81: CHO ESVAX M Image Z EECS40 ! 82: CHN Kim T MathStat P UCBCAD ! 83: CHW StatVAX L VLSI K Virus ! 84: ! 85: ### mailers ! 86: # local mail -- must be zero ! 87: Mlocal /bin/mail rlsAmn $f ...LocalMail -d $u ! 88: # program mail -- must be one ! 89: Mprog /bin/csh lA $f ...ProgMail -fc $u ! 90: # berkeley net mail ! 91: Mberk /usr/bin/uux fsA $U!$f ...BerkMail - $J!rmail $h:$u ! 92: # arpanet mail ! 93: Marpa /usr/bin/uux fsuA $U!$f@$A ...ArpaMail $G!rmail $u@$h ! 94: # uucp mail ! 95: Muucp /usr/bin/uux rsDxmhu $U!$f ...UucpMail - $h!rmail ($u) ! 96: # IBM RJE mail ! 97: Mibm /usr/bin/uux fxsuA $U!$f ...IbmMail $H!rmail $h=$u ! 98: # SMTP mail over TCP (this appears to be kludged in and need work) ! 99: Msmtp /usr/bin/uux sAu $U!$f ...EtherMail ucbvax!rmail ($h:$u) ! 100: ! 101: ### rewriting rules ! 102: R$+ at $+ $1@$2 change "at" to "@" ! 103: R$+.$-@$=D $#$3$@$2$:$1 resolve user.host@domain ! 104: R$=C:$+@$- $2@$3 delete gateway: on arpanet addresses ! 105: R$+@$=A $G:$1 delete local arpa hosts ! 106: R$+@$- $#arpa$@$2$:$1 resolve arpa mail ! 107: R$-=$+ $#ibm$@$1$:$2 resolve IBM mail ! 108: R$=S:$+ $#smtp$@$1$:$2 resolve SMTP mail ! 109: R$=H.$+ $1:$2 change "." to ":" ! 110: R$+^$+ $1!$2 change "^" to "!" ! 111: R$-!$=U!$+ $3 delete uucp loops through here ! 112: R$-!$+ $#uucp$@$1$:$2 resolve uucp mail ! 113: R$-:$-:$+ $2:$3 delete multiple berk hosts ! 114: R$-:$+ $#berk$@$1$:$2 resolve berk mail ! 115: R$+ $#local$:$1 resolve local mail ! 116: ! 117: ### rewriting rules for from host ! 118: S1 ! 119: R$+ at $- $1@$2 prefer "@" over "at" ! 120: R$J!$+@$- $1@$2 arpanet mail is automatic ! 121: R$J!$-:$+ $1:$2 uucp mail is automatic ! 122: ! 123: ### rewriting rules for "after $g translate" ! 124: S2 ! 125: R$-:$-:$+ $2:$3 delete multiple berknet hosts ! 126: R$-:$-.$+ $2:$3 delete multiple berknet hosts ! 127: R$-!$+@$- $2@$3 delete berknet if forwarded
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.