home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!usc!sol.ctr.columbia.edu!ira.uka.de!chx400!urz.unibas.ch!bioftp.unibas.ch!comp.bioz.unibas.ch!doelz
- Newsgroups: comp.sys.sgi
- Subject: Re: how do I make sendmail use the name server rather than /etc/hosts
- Message-ID: <1992Jul30.055734.1792@comp.bioz.unibas.ch>
- From: doelz@comp.bioz.unibas.ch (Reinhard Doelz)
- Date: Thu, 30 Jul 1992 05:57:34 GMT
- Reply-To: doelz@urz.unibas.ch
- Sender: usenet@comp.bioz.unibas.ch (NEWS transaction account)
- References: <712451466@anthrax.cs.duke.edu>
- Organization: EMBnet Switzerland [BASEL]
- Nntp-Posting-Host: biox.embnet.unibas.ch
- Lines: 75
-
- Please do NOT consider the following to be an authorized advice. It just
- works here.
-
- The problem you describe,
- In article <712451466@anthrax.cs.duke.edu>, jwt@duke.cs.duke.edu (Jeffrey W. Tannehill) writes:
- |>
- |> Our sendmail.cf seems to work fine for local hosts, or hosts in the
- |> /etc/hosts file that are in our local domain (cs.duke.edu). However,
- ...
- |>
- |> Apparently,the first rule takes "bob@physics.phy.duke.edu" and changes it to
- |> something like "bob@physics" and the second line then rewrites this as
- |> "bob@physics.cs.duke.edu". If the name services is consulted instead of the
- |> /etc/hosts file (i.e. I remove physics from the hosts file) then the mail
- ...
-
- should be resolvable with the 'hostresorder' line in the /usr/etc/resolv.conf
- file. Mine looks as follows:
-
- ;
- ; RD 3-11-90
- domain unibas.ch
- nameserver 131.152.8.1
- nameserver 131.152.1.1
- nameserver 131.152.1.2
- hostresorder bind nis local
- search unibas.ch bioz.unibas.ch embnet.unibas.ch
-
-
- In the /hosts file, I have something like
-
- 131.152.1.1 guru.ce.unibas.ch guru GURU bindmaster
-
- and if I send to doelz@guru, it comes up like
-
- biox > Mail -s test -v doelz@guru
- test
- EOT
- doelz@guru... Connecting to guru.unibas.ch (forgn)...
- 220 guru.urz.unibas.ch Sendmail 5.57/Ultrix3.0-C ready at Thu, 30 Jul 92 07:52:03 +0200
- >>> HELO comp.bioz.unibas.ch
- 250 guru.urz.unibas.ch Hello comp.bioz.unibas.ch, pleased to meet you
- >>> MAIL From:<doelz@comp.bioz.unibas.ch>
- ...
-
- but if I send to the authorized mail domain name, doelz@guru.urz.unibas.ch, it
- uses the domain name server MX record:
-
- biox > Mail -s test -v doelz@guru.urz.unibas.ch
- test2
- EOT
- doelz@guru.urz.unibas.ch... Connecting to guru.ce.unibas.ch (forgn)...
- 220 guru.urz.unibas.ch Sendmail 5.57/Ultrix3.0-C ready at Thu, 30 Jul 92 07:53:09 +0200
- ...
-
- > guru.urz.unibas.ch
- Server: biox.embnet.unibas.ch
- Address: 131.152.8.1
-
- guru.urz.unibas.ch preference = 10, mail exchanger = guru.ce.unibas.ch
- guru.ce.unibas.ch internet address = 131.152.1.1
-
-
- Maybe this helps.
- Regards
- Reinhard
-
- +----------------------------------+-------------------------------------+
- | Dr. Reinhard Doelz | RFC doelz@urz.unibas.ch |
- | Biocomputing | DECNET 20579::48130::doelz |
- |Biozentrum der Universitaet | X25 022846211142036::doelz |
- | Klingelbergstrasse 70 | FAX x41 61 261- 6760 or 267- 2078
- | CH 4056 Basel | TEL x41 61 267- 2076 or 2247 |
- +------------- bioftp.unibas.ch is the SWISS EMBnet node ----------------+
- -----------------------------------------
-