Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!mcvax!ukc!etive!glasgow!taylor From: taylor@cs.glasgow.ac.uk (Jem Taylor) Newsgroups: comp.mail.sendmail,mail.uk-sendmail-workers Subject: Re: Another 2.1 concept error? Message-ID: <3055.8906181203@paama.cs.glasgow.ac.uk> Date: 18 Jun 89 12:03:12 GMT Sender: daemon@cs.glasgow.ac.uk Organization: Comp Sci, Glasgow Univ, Scotland Lines: 80 In-Reply-To: <16233.8906161458@np1a.bristol.ac.uk> |Think we're talking at cross purposes. Below is a script listing showing |the creation of 2 configs - test1 and test2. They are identical except |for the order of the domain declarations in the config file. You'll |see that there are indeed differences between the resultant sendmail |configuration files but these diffences do not affect the order of |domain resolution. In both, "computervision" still resolves to |computervision.co.uk I see your point. I suggest you do as the manual tells you, and use the sequence (assume your config is called $config ) $ cd $SENDMAIL/$config && make check $config install This will abort if any potential conflicts are detected. You can then delete the entry you dislike. We in fact do something more - a makefile generates new NRS derived input decks by editing out names we know to be a problem, like 'uk.ac.co', 'uk.ac.mrc' etc (we have a uk.ac.gla.mrc) I enclose the relevant script, which Jim thought too obvious to put into the package:- mk.sendmail.db :::::::::::::: #!/bin/sh # # Bring sendmail domain databases up-to-date # /bin/make -f - $@ <<'EOF' NRS=/usr/local/src/c-nrs NRSFILES=$(NRS)/ac.dom $(NRS)/top.dom $(NRS)/co.dom $(NRS)/gla.dom DERFIL=/usr/spool/nrs/DERFIL2 SENDMAIL=/usr/local/lib/Sendmail EXTERNAL= eng eng-slave psy psy-slave geology geol-slave science science-slave\ art art-slave all: $(DERFIL) hawaii crete slave $(EXTERNAL) getfiles hawaii crete: $(NRSFILES) cd $(SENDMAIL)/$@ && make check $@ install external: $(EXTERNAL) $(EXTERNAL): $(NRSFILES) cd $(SENDMAIL)/$@ && make check $@ slave: cd $(SENDMAIL)/$@ && make $@ check $@ && ./install-$@ $(DERFIL): $(DERFIL).Z -uncompress -f $(DERFIL) $(DERFIL).Z: getfiles: cd $(NRS) && ./$@ $(NRSFILES): $(DERFIL) cd $(NRS) && make sendmail for i in $(NRS)/*.dom $(NRS)/*.chn ; \ do sort -u $$i | sed -e '/^co\./s/^/#/' \ -e '/uk\.ac\.gla\.cs/s/^/#/' \ -e '/uk\.ac\.glasgow\.cs/s/^/#/' \ -e '/uk\.co\.stc/s/^/#/' \ -e '/^mrc /s/^/#/' \ -e '/^ac\./s/^/#/' >$$i-t \ && mv -f $$i-t $$i \ && chmod a+r $$i ; \ done EOF -- Arpa:taylor@cs.glasgow.ac.uk \ J.A.Taylor, Computing Science, Janet: taylor@uk.ac.glasgow.cs \ University of Glasgow, Uucp: mcvax!cs.glasgow.ac.uk!taylor \ GB-GLASGOW G12 8QQ