Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site sdcc3.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuxlm!harpo!decvax!ittvax!dcdwest!sdcsvax!sdcc3!brian From: brian@sdcc3.UUCP (Brian Kantor) Newsgroups: net.mail Subject: Re: Sendmail problems - HELP! Message-ID: <2773@sdcc3.UUCP> Date: Wed, 3-Apr-85 13:14:01 EST Article-I.D.: sdcc3.2773 Posted: Wed Apr 3 13:14:01 1985 Date-Received: Fri, 5-Apr-85 05:27:10 EST References: <325@mnetor.UUCP> <655@plus5.UUCP> <403@utai.UUCP> Organization: UCSD wombat breeding society Lines: 55 > I wouldn't mind hearing about better algorithms. We had a problem with > conflicts between CSNET names & local network nicnames, that caused some mail > to be sent to Amsterdam for a couple of days. I came up with a shell script > that munges the CSNET name file until it doesn't conflict. What I finally wound up doing for UCSD was modifying a copy of the Berkeley sendmail.cf files. How it works is: First, any address of the form a!b is transformed into b@a.uucp. This applies to an address having more than one bang in it, so that a!b!c!d becomes b!c!d@a.uucp. a@b.bitnet becomes a%b.bitnet@wiscvm.arpa a@b.csnet becomes a%b.csnet@csnet-relay.arpa a@b.dec becomes a%b.dec@decwrl.arpa a@b has the local domain tacked onto it (later removed) so that for a while, it becomes a@b.local Any address of the form a@b.domain is unmodified. If the domain is arpa (as in a@b.arpa) or milnet (soon to be EDU, COM, GOV, and others), its sent to the tcp mailer for delivery over the internet. If the domain is uucp, its transformed from b@a.uucp back into a banged address a!b and given to uucp to deliver. Finally, the host part (b of a@b.local) is examined to see if the host is a local one on the ethernet. If so, its sent by the ethernet mailer. Otherwise, the default is to strip off the .local domain, and its given to the tcp mailer for internet delivery. This doesn't solve all our problems. But it works quite well for almost all of our mail, and we're constantly improving it as we run into new and more interesting addresses. There's a bunch of other code in there to hide local non-registered hosts from the internet, and to send mail to VMS systems using the Wollongong TCP/IP server, and the like. If you'd seriously like a copy (its BIG!!!) of the sendmail.cf file, I can send it to you. Or maybe I'll post it to here or net.sources if enough people want it. As I say, its got bugs in it, but it does run. Brian Kantor UC San Diego decvax\ brian@ucsd.arpa akgua >--- sdcsvax --- brian ucbvax/ Kantor@Nosc ``You unlock this door with the key of imagination...''