Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!samsung!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: simple macro Keywords: macros, classes, tokens Message-ID: <3499@jhunix.HCF.JHU.EDU> Date: 4 Dec 89 18:24:46 GMT References: <8911292029.AA13662@jvncf.csc.org> <1436@utkcs2.cs.utk.edu> <3472@jhunix.HCF.JHU.EDU> <1937@psuhcx.psu.edu> Reply-To: ecf_hap@jhunix.UUCP (Andrew Poling) Followup-To: comp.mail.sendmail Organization: The Johns Hopkins University - HCF Lines: 30 In article <1937@psuhcx.psu.edu> wcf@psuhcx.psu.edu (Bill Fenner) writes: >In article <3472@jhunix.HCF.JHU.EDU> ecf_hap@jhunix.UUCP (Andrew Poling) writes: [...] >|near the top of /usr/lib/sendmail.cf >|# change "255.255.255.255" below to YOUR IP-address >|DA255.255.255.255 [...] >Unfortunately, I think many binary-only sendmail's will split dotted quads >into seperate tokens, and thus the single token "255.255.255.255" will not >match the 7 tokens "255" "." "255" "." "255" "." "255" . I've had this >problem quite a bit with customizing psuhcx's sendmail.cf ... I think you're confusing macros and classes. While it' doesn't seem to be documented anywhere, it's been my experience that a macro definition can contain multiple tokens, but a class definition cannot. Thus one could really view a macro as a class that ignores the special characters defined by the "o" macro (while you're defining the class/macro in question) - it can match only the exact same set of tokens later. Jeez - that seemd alot simpler until I tried to articulate it. -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