Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site umcp-cs.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!umcp-cs!israel From: israel@umcp-cs.UUCP (Bruce Israel) Newsgroups: net.mail Subject: Re: is there a right way use to the map data? Message-ID: <927@umcp-cs.UUCP> Date: Fri, 9-Nov-84 10:54:30 EST Article-I.D.: umcp-cs.927 Posted: Fri Nov 9 10:54:30 1984 Date-Received: Sat, 10-Nov-84 06:19:57 EST References: <22@politik.UUCP> Reply-To: israel@maryland.UUCP (Bruce israel) Organization: U of Maryland, Computer Science Dept., College Park, MD Lines: 38 In article <22@politik.UUCP> chris@politik.UUCP (Christopher Seiwald) writes: >I would like to use the mod.map data for automatic routing. > How do I get sendmail to do routing, short of writing my own > mailer? That seems to be one of the major limitations of sendmail. I've been looking at it, trying to figure a way to get a vanilla sendmail to do uucp routing, and I came to the conclusion that it couldn't be done (at least not in a general fashion). So I spent some time and modified sendmail to be able to look up path translations in files. What I have is a modification to the 'F' command in the sendmail.cf file so that you can have a file which looks like this: /usr/lib/hostnames/uucp-routing: . . . ihnp4 seismo!ihnp4 . . . Then your rewrite rules in your .cf file can look hosts up in these files (the first column is the fileclass set) and can use the name translation using a new construct (the $& construct). An example rule is: # define the routing table with the name and name translation in the file FX/usr/lib/hostnames/uucp-routing %s%s R$-!$+ $&1!$2 replace site name with route to that site I've been testing it here for a couple of weeks, and it feels pretty robust. I'm not quite ready to release it because of other sendmail problems that keep cropping up (more about that in another message, probably), but when I'm ready (within the next couple of weeks or so) I can post diff's of the appropriate files if there is enough interest. -- Bruce Israel University of Maryland, Computer Science Dept. {rlgvax,seismo}!umcp-cs!israel (Usenet) israel@Maryland (Arpanet)