Path: utzoo!attcan!uunet!wuarchive!udel!princeton!phoenix!fine!viktor From: viktor@fine.Princeton.EDU (Viktor Dukhovni) Newsgroups: comp.mail.sendmail Subject: Re: sendmail.cf - help matching a class of domain names Message-ID: <11720@phoenix.Princeton.EDU> Date: 24 Nov 89 23:08:03 GMT References: <1659@ultb.isc.rit.edu> Sender: news@phoenix.Princeton.EDU Lines: 41 mwg8908@ultb.isc.rit.edu (M.W. Goheen) writes: >I (and a few other sendmail.cf newcomers) spent a good deal of yesterday >bashing a config file senseless trying to get a rule that would strip >off all the possible addresses that were local to our site. The list is >something like: > ultb.isc.rit.edu > isc.rit.edu > ultb.rit.edu > rit.edu > ultb >... >Any tips/help would be greatly appreciated! $=C can only match a single(!) token, rit.edu (e.g.) is two tokens, and will never be matched by a Class C containing rit.edu You should make sure the name is properly cannonical before the strip. If you have a DNS capable mailer (5.61), just use $[domain$] to obtain the cannonical name. Presumably the list would shrink considerably. IF your mailer does not support $[$], you should fake it by hand! In any case the first step in ruleset zero is always to obtain a cannonical name. Presumably after that you will be facing only one name for utlb, and possibly a small list of domains, though ideally the nameserver should return either a utlb.rit.edu IN CNAME rit.edu. or rit.du IN CNAME utlb.rit.edu assuming you want to cannocalize to the rit.edu and not foo.rit.edu domain. In any case the idea is make the domain and gateway to acquire the same cannonical name. -- Viktor Dukhovni