Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!wuarchive!psuvax1!psuhcx!wcf From: wcf@psuhcx.psu.edu (Bill Fenner) Newsgroups: comp.mail.sendmail Subject: Re: How to recognize domain literals (was Re: How to use IP addresses ...) Message-ID: <1937@psuhcx.psu.edu> Date: 2 Dec 89 05:25:16 GMT References: <8911292029.AA13662@jvncf.csc.org> <1436@utkcs2.cs.utk.edu> <3472@jhunix.HCF.JHU.EDU> Reply-To: wcf@psuhcx.psu.edu (Bill Fenner) Organization: Engineering Computer Lab, Penn State University Lines: 24 In article <3472@jhunix.HCF.JHU.EDU> ecf_hap@jhunix.UUCP (Andrew Poling) writes: |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. :-) 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 ... Bill -- Bill Fenner wcf@hcx.psu.edu ..!psuvax1!psuhcx!wcf sysop@hogbbs.fidonet.org (1:129/87 - 814/238-9633) ..!lll-winken!/