mark@drd.UUCP (Mark Lawrence) (06/01/89)
I'm looking for suggestions as to how to modify my sendmail.cf. My questions are of a novice nature, so please don't clutter up the ng by posting. I'd appreciate e-mail. 'drd' is the mailhost for a small lan and has a reliable uucp connection to a local university which is on the Internet. I'd like to have all mail with addresses which don't end in .uucp kicked across the uucp link to the University for relay. It surely must be child's play for those experienced in manipulating the contents of sendmail.cf, but some of the stuff there (M4?) still stumps me. I'm running SunOS 3.5 with whatever stock sendmail is provided with it. I'm allowing DD and CD default to the yellow pages domain name which is 'drd'. The sendmail.cf on drd has the following macros defined: # major relay host (uucp name of University of Tulsa mailhost) DRtusun2 CRtusun2 (I understand that DR defines a macro R which is referred to later on by $R. I don't understand the purpose of CR, or for that matter, Canything) # domain-spec for local domain within universe (eg, what domains are # above?) DUUUCP CUUUCP COM # major relay mailer DMuucp (uucp is defined as a mailer elsewhere # Pertinent (I think) chunks out of Ruleset 0 (after addresses ending in # .uucp are handled by passing off to #uucp mailer) R$*<@$*$-.arpa>$* $#$M $@$R $:$1@$2$3.arpa$4 user@anything.arpa R$*<@$*$-.bitnet>$* $#$M $@$R $:$1@$2$3.bitnet$4 user@anything.bitnet Basically, I'd like to have all addresses which aren't local and aren't .uucp forwarded via the #uucp mailer to $R. Below is an excerpt from Ruleset 0 on a subsidiary machine. Do I want to do something of the sort suggested there as far as how non-local names are handled? I'd rather not have to put in a line for every type of domain that I'd expect to have to handle. ################################################ ### Machine dependent part of ruleset zero ### ################################################ # resolve names we can handle locally R<@$=V.uucp>:$+ $:$>9 $1 First clean up, then... R<@$=V.uucp>:$+ $#uucp $@$1 $:$2 @host.uucp:... R$+<@$=V.uucp> $#uucp $@$2 $:$1 user@host.uucp # optimize names of known ethernet hosts R$*<@$*$%y.LOCAL>$* $#ether $@$3 $:$1<@$2$3>$4 user@host.here # other non-local names will be kicked upstairs R$+ $:$>9 $1 Clean up name, keep <> R$*<@$+>$* $#$M $@$R $:$1@$2$3 user@some.where R$*@$* $#$M $@$R $:$1@$2 strangeness with @ # Local names with % are really not local! R$+%$+ $@$>30$1@$2 turn % => @, retry # everything else is a local name R$+ $#local $:$1 local names Your suggestions and cogent explanations (and pointers to where I might dig this stuff up for myself) would be welcome. -- Hierarchical Earthers: lawrence@tusun2.knet.UTulsa.Edu Flat Earthers: {...uunet!apctrc,...rutgers!okstate!romed}!drd!mark Emailophobes: (918) 743-3013