Path: utzoo!attcan!uunet!wuarchive!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!syd From: syd@DSI.COM (Syd Weinstein) Newsgroups: comp.mail.uucp Subject: Re: Use domains without registering? Message-ID: <1990Mar12.143348.9713@DSI.COM> Date: 12 Mar 90 14:33:48 GMT References: <72@dynasys.UUCP> <9909@medusa.cs.purdue.edu> <1990Mar9.191451.28093@val.com> <1990Mar10.195008.15998@DSI.COM> <4460@jhunix.HCF.JHU.EDU> Reply-To: syd@DSI.COM Organization: Datacomp Systems, Inc. Huntingdon Valley, PA Lines: 38 gwollman@jhunix.HCF.JHU.EDU (Garrett A Wollman) writes: >In article <1990Mar10.195008.15998@DSI.COM> syd@DSI.COM writes: >>2. I use that information, in a reverse fashion to see if I can >>get to that site via smtp or via uucp. >I've been wondering, what type of software does it take do do this? Its really simple, and first off, let me say I am not doing rerouting. What I do is that the path I was given, say a!b!c!d!e!f and start looking for a match in a file I call rpaths. I look for longest match starting with the full path less the final user name. I keep looking for an exact match stripping off the right most site until the string is empty, or I get a match. If I get a match, I turn the address into uucp-remainder (stuff I stripped off on the right) @ site. Thus if rpaths contained a!b!c!d:site.domain it would be e!f@site.domain and then I route that as normal. Rpaths is made using a simple shell and perl script from the maps. I grep the maps for the = lines, deleting all comment info and getting just the first site on the line for those that list many, or the first site in a row for those that take multiple lines for it. And then look up using pathalias the path to get there, sort those, delete my neighbors I want to use uucp for, and store it in a file as path:site. -- ===================================================================== Sydney S. Weinstein, CDP, CCP Elm Coordinator Datacomp Systems, Inc. Voice: (215) 947-9900 syd@DSI.COM or bpa!dsinc!syd FAX: (215) 938-0235