Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!apple!usc!polyslo!steve From: steve@polyslo.CalPoly.EDU (Steve DeJarnett) Newsgroups: comp.mail.sendmail Subject: Re: Short-circuiting a route Keywords: sendmail, smail, domain names Message-ID: <12167@polyslo.CalPoly.EDU> Date: 28 Jun 89 17:01:22 GMT References: <562@daitc.daitc.mil> Reply-To: steve@polyslo.CalPoly.EDU (Steve DeJarnett) Organization: Lab Rat Rumpus Room -- Cal Poly SLO Lines: 30 In article <562@daitc.daitc.mil> generous@daitc.daitc.mil (Curtis Generous) writes: >More and more, I'm seeing UUCP mail going through my host of the format: > > uucp1!uucp2!uucp3!domain.name!user > >Since we have both Internet and UUCP connections, what's the best way to >handle this situtation if your host is capable of sending mail directly to >'domain.name'? Or should it be done? As it's been told to me (and from what I've read), it's always safe to take the rightmost fully-qualified domain name and dump everything to the left of it (in the bang-path sense). Thus, in your sendmail.cf, you can put in a rule that strips down to the rightmost FQDN when the address is composed of UUCP bang-paths. Thus, the above could be rewritten as: user@domain.name Try the following (no guarantees, your mileage may vary, etc.) to do it: # Transmorgrify R$+!$+.$D!$+ $2.$D!$3 stuff!h.d!u => h.d!u R$+.$D!$+ $@$2<@$1.$D> h.d!u => u@h.d >--curtis ------------------------------------------------------------------------------- | Steve DeJarnett | Smart Mailers -> steve@polyslo.CalPoly.EDU | | Computer Systems Lab | Dumb Mailers -> ..!ucbvax!voder!polyslo!steve | | Cal Poly State Univ. |------------------------------------------------| | San Luis Obispo, CA 93407 | BITNET = Because Idiots Type NETwork | -------------------------------------------------------------------------------