home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / mail / sendmail / 3121 < prev    next >
Encoding:
Text File  |  1993-01-07  |  3.1 KB  |  80 lines

  1. Newsgroups: comp.mail.sendmail
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!rpi!utcsri!newsflash.concordia.ca!mizar.cc.umanitoba.ca!news
  3. From: grdetil@scrc.umanitoba.ca (Gilles Detillieux)
  4. Subject: Re: How does Sendmail determine Local domainname ?
  5. Message-ID: <C0I0Bn.Fv8@ccu.umanitoba.ca>
  6. Sender: news@ccu.umanitoba.ca
  7. Nntp-Posting-Host: gilles.scrc.umanitoba.ca
  8. Organization: University of Manitoba, Winnipeg, Canada
  9. References: <1993Jan4.160723.2551@icl.se>
  10. Date: Thu, 7 Jan 1993 19:18:57 GMT
  11. Lines: 67
  12.  
  13. In article <1993Jan4.160723.2551@icl.se> ltu@ki.icl.se (Lars Tunkrans) writes:
  14. > Hello, I have been studing sendmail for a while and I am a little
  15. > confused over How sendmail determines what the LOCAL domain name is.
  16. ..
  17. > Here is the definition part of sendmail.cf:
  18. > Dmki.icl.se
  19. > Dwsw2020
  20. > Cwsw2020 sw2020.ki.icl.se
  21. > Cmki.icl.se
  22. ..
  23. > This could be wrong  :-(     if it is, Please tell me how.
  24.  
  25. It looks OK to me, although the second name in the Cw definition may not be
  26. needed.
  27.  
  28. > What sendmail -bt  tells me is as follows:
  29. > ADDRESS TEST MODE
  30. > Enter <ruleset> <address>
  31. > > rewrite: ruleset  3   input: "user" "@" "icl" "." "se"
  32. > rewrite: ruleset  6   input: "user" "<" "@" "icl" "." "se" ">"
  33. > rewrite: ruleset  6 returns: "user" "<" "@" "LOCAL" ">"
  34.  
  35. Well, since the incorrect address translation is happening in ruleset 6,
  36. could you let us know what S6 in your sendmail.cf contains, along with
  37. the definitions of any other variables or classes it references?
  38.  
  39. > rewrite: ruleset  3 returns: "user" "<" "@" "LOCAL" ">"
  40. > rewrite: ruleset  1   input: "user" "<" "@" "LOCAL" ">"
  41. > rewrite: ruleset  1 returns: "user" "<" "@" "LOCAL" ">"
  42. > rewrite: ruleset  0   input: "user" "<" "@" "LOCAL" ">"
  43. > rewrite: ruleset  9   input: "user" "<" "@" "ki" "." "icl" "." "se" ">"
  44. > rewrite: ruleset  9 returns: "user" "<" "@" "ki" "." "icl" "." "se" ">"
  45. > rewrite: ruleset  0 returns: $# "ether" $@ "butler" $: "user" "<" "@" "ki"  
  46. "." "icl" "." "se" ">"
  47. > > 
  48. > As you can se it accept's "icl.se" as LOCAL and then Replaces it with 
  49. > "ki.icl.se".
  50. > When I comment away the "Dmki.icl.se" macro from sendmail.cf this behaivor 
  51. > dissapears. LOCAL gets converted back to "icl.se" again.
  52. > So obviously the "Dmki.icl.se" record makes sendmail use that as its LOCAL
  53. > domain at some point in time.
  54.  
  55. Well, yes.  The Dm variable is apparently being used in S0, but that's not
  56. where the problem is, since ki.icl.se is indeed your local domain.  S0 is
  57. just replacing the string "LOCAL" (which is used internally only) with your
  58. actual domain name before passing it on to S9.  The problem seems to be in
  59. S6's rules.
  60.  
  61. > But where does it pick up "icl.se" as a 
  62. > synonym for LOCAL. Its not in sendmail.cf.
  63.  
  64. Very good question.  Hopefully your S6 will give us a clue.
  65.  
  66. > My domain name in /etc/resolv.conf is "ki.icl.se".
  67. > domainname(1M) returns "ki.icl.se"
  68.  
  69. That matches your definitions of Dm and Cm, as it should.
  70.  
  71. --
  72. Gilles Detillieux                       <Gilles@scrc.UManitoba.CA>
  73. Spinal Cord Research Centre             or <grdetil@gilles.scrc.UManitoba.CA>
  74. Dept. of Physiology, U. of Manitoba     Phone:  (204)788-6766
  75. Winnipeg, MB  R3E 0W3  (Canada)         Fax:    (204)786-0932
  76.