Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!aplcen!jhunix!ecf_hap From: ecf_hap@jhunix.HCF.JHU.EDU (Andrew Poling) Newsgroups: comp.mail.sendmail Subject: Re: How to recognize domain literals (was Re: How to use IP addresses ...) Summary: alot of needless work... Message-ID: <3472@jhunix.HCF.JHU.EDU> Date: 1 Dec 89 22:51:09 GMT References: <8911292029.AA13662@jvncf.csc.org> <1436@utkcs2.cs.utk.edu> Reply-To: ecf_hap@jhunix.UUCP (Andrew Poling) Followup-To: comp.mail.sendmail Organization: The Johns Hopkins University - HCF Lines: 39 In article <1436@utkcs2.cs.utk.edu> moore@cs.utk.edu (Keith Moore) writes: >In article , > cfe+@andrew.cmu.edu (Craig F. Everhart) writes: >(lamenting the fact that most sendmail sites don't recognize domain literals) >>There's no cure but for the target administrator to fix the >>sendmail.cf file to recognize explicit dotted-quads, alas, [...] >While it's true that many sites running sendmail don't recognize >domain literals, you don't have to hard-code the IP address into >every machine's sendmail.cf file. The example below shows how. [shows one method of recognizing domain literals using canonicalization] Wail hail, it's even easier than that if you have functional $[ and $] canonicalization. In that case, attempting to canonicalize the address should return the hosts domain name anyway. I'm sure that most of the sites Craig was referring to don't yet have the ability to canonicalize using $[ and $]. In that case, one DOES have to hard-code their address in. it need not be difficult. in the generic sendmail.cf files that I distribute, all such host specific info is assigned to various macros at the beginning of the file. So I do it this way: near the top of /usr/lib/sendmail.cf # change "255.255.255.255" below to YOUR IP-address DA255.255.255.255 then in ruleset 0 # recognize my IP-address - make it my name R$+<@[$A]> $1<@$w> w macro is our simple hostname There... that didn't hurt too bad. :-) -Andy Andy Poling Internet: andy@gollum.hcf.jhu.edu Network Services Group Bitnet: ANDY@JHUVMS Homewood Academic Computing Voice: (301)338-8096 Johns Hopkins University UUCP: mimsy!aplcen!jhunix!gollum!andy