Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site pur-ee.UUCP Path: utzoo!linus!decvax!harpo!ihnp4!inuxc!pur-ee!ecn-ee!tony From: tony@ecn-ee.UUCP Newsgroups: net.mail Subject: path aliasing for sendmail - done - (nf) Message-ID: <1392@pur-ee.UUCP> Date: Sun, 15-Jan-84 18:17:44 EST Article-I.D.: pur-ee.1392 Posted: Sun Jan 15 18:17:44 1984 Date-Received: Mon, 16-Jan-84 05:15:35 EST Sender: notes@pur-ee.UUCP Organization: Electrical Engineering Department , Purdue University Lines: 55 #N:ecn-ee:16800001:000:2273 ecn-ee!tony Jan 13 19:41:00 1984 After checking around, and finding that no one else had done it already, I put uucp path aliasing in sendmail. I took what code I could from the delivermail implementation. The pathalias file remains the same. I don`t know how this relates to what the Hortons have in mind, but I had to get something running, and I`ll be happy to install something better when it comes along. The first thing to be aware of is that this is UUCP path aliasing, and not a general aliasing mechanism. This seems sufficient since UUCP is the only domain that uses relative addressing. It is implemented as a separate process from sendmail. The uucp mailer description for sendmail is modified to call my program (senduucpmail) instead of calling uux directly. The syntax is: senduucpmail -h host -u user In the case I was most concerned with (locally generated mail), both host and user will consist of a single atom. However, for mail being forwarded elsewhere, the user part will consist of one or more host names followed by a recipient. Aliasing is done on the "host" part, which is replaced by the path found in the database. For locally generated mail, this generates a hopefully valid path to the destination machine. The net effect for forwarded mail is that no aliasing is done unless the next machine in the path is one that we don`t talk to directly. In that case, the host name is replaced by a path to it. I don`t trust my database enough to impose it on others, but if a message is doomed to failure anyway, it seems reasonable to try to give it some help. The letter is piped into uux and occurences of host!user in the headers are replaced by the aliased path. If, for some reason, a particular path MUST be used, the pseudo-host "DIRECT" may be used to disable path aliasing. Mail to "DIRECT!path..." is sent to "path" with no aliasing. Occurences of "DIRECT!" in the headers are deleted. I`ll mail source to anyone who wants it. If there is sufficient interest, I`ll post it to net.sources. It`s only about 250 lines. Also, is anyone out there maintaining a host database in the form required by the path aliasing software? Ours has fallen far out of date and I`d like to get it in shape again. Tony Andrews UUCP: {decvax | ucbvax} !pur-ee!tony ARPA: ada@purdue