home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!concert!duke!jwt
- From: jwt@duke.cs.duke.edu (Jeffrey W. Tannehill)
- Newsgroups: comp.sys.sgi
- Subject: how do I make sendmail use the name server rather than /etc/hosts
- Message-ID: <712451466@anthrax.cs.duke.edu>
- Date: 29 Jul 92 23:11:07 GMT
- Organization: Duke University Computer Science Dept.; Durham, N.C.
- Lines: 34
-
-
- 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,
- if a host in another domain is specified and that host is in the hosts file,
- then the sendmail.cf file drops off the hosts' domain name and replaces it with
- cs.duke.edu . Apparently this is due to the sequence of ruleset 0 rules
-
- # Canonicalize the host name. Detect any failures.
- R$*<@$+>$* $:$1<@$[$2$:$2.$Y$]>$3
-
- # If we successfully canonicalize a hostname, but the result contains
- # no dots, make it relative to our domain.
- R$*<@$->$* $1<@$2.$D>$3
-
- 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
- is sent properly. I tried using the "-oI" option with sendmail, which the
- man page says will
-
- Insist that the domain name server be running to resolve host names
- and MX records. Treat ECONNREFUSED errors from the resolver as
- temporary failures.
-
- but this had no effect when the entry for physics was in the /etc/hosts file.
- Since I prefer to use the name services anyway (it is more likely to be correct
- than the local /etc/hosts file), then is there anyway that I can make
- sendmail consult the name services first?
-
- --
- /*______________________________Jeff Tannehill_______________________________*
- * MAIL: Duke Dept. of Computer Science Internet: jwt@cs.duke.edu *
- * Durham, NC 27708 USA PHONE: +1 919 660 6500 */
-