home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / aix / 12545 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  1.7 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!uvaarpa!concert!duke!news.duke.edu!ee.egr.duke.edu!jpe
  2. From: jpe@ee.egr.duke.edu (John P. Eisenmenger)
  3. Newsgroups: comp.unix.aix
  4. Subject: Re: Sendmail for CNAME aliases?
  5. Message-ID: <jpe.724351334@ee.egr.duke.edu>
  6. Date: 14 Dec 92 16:42:14 GMT
  7. References: <9212111949.AA12276@ecnet.ec> <davecb.724112643@yorku.ca>
  8. Sender: news@news.duke.edu
  9. Lines: 32
  10. Nntp-Posting-Host: ee.egr.duke.edu
  11.  
  12. davecb@nexus.yorku.ca (David Collier-Brown) writes:
  13.  
  14. >jhidalgo@ecnet.ec (Javier Hidalgo E.) writes:
  15. >|Two questions: 1) is there a way to get sendmail to recognize that a
  16. >|CNAME points to its own host machine? 2) What does "local" mean in the 
  17. >|above error message?  It seems to us that the problem is, in fact, 
  18. >|that ecnet.ec IS recognizing "ecnet.ec" as its own name....
  19.  
  20. Yes.  Before you try to determine whether iit is the local host or not, you
  21. need to "canonicalize the domain"  (i.e. get the canonical name for the host).
  22. This is done with the "$[ $]" operators.  Make SURE you can manipulate CNAME
  23. records (a la "OK ALL" or whatever).
  24.  
  25. Here's an example:
  26.  
  27.     R$*<@$*>$*    $:$1<@$[$2$]>$3     # canonicalize domain
  28.  
  29. This changes the "<@some.host.name>" part of the address to
  30. "<@canonical.host.name>" which sounds like what you want.
  31.  
  32. -John
  33.  
  34. -- 
  35. *************************************************************************
  36. * John P. Eisenmenger             Phone: (919) 660-5248        *
  37. * Duke University             FAX:   (919) 660-5293        *
  38. * Department of Electrical Engineering     Email: jpe@egr.duke.edu (pref)    *
  39. * Box 90291                        jpe@cs.duke.edu        *
  40. * Durham, NC 27708-0291                            *
  41. *                                    *
  42. *  Reports of problems w/EE systems should go to problem@egr.duke.edu    *
  43. *************************************************************************
  44.