home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.mail.sendmail
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!rpi!utcsri!newsflash.concordia.ca!mizar.cc.umanitoba.ca!news
- From: grdetil@scrc.umanitoba.ca (Gilles Detillieux)
- Subject: Re: How does Sendmail determine Local domainname ?
- Message-ID: <C0I0Bn.Fv8@ccu.umanitoba.ca>
- Sender: news@ccu.umanitoba.ca
- Nntp-Posting-Host: gilles.scrc.umanitoba.ca
- Organization: University of Manitoba, Winnipeg, Canada
- References: <1993Jan4.160723.2551@icl.se>
- Date: Thu, 7 Jan 1993 19:18:57 GMT
- Lines: 67
-
- In article <1993Jan4.160723.2551@icl.se> ltu@ki.icl.se (Lars Tunkrans) writes:
- > Hello, I have been studing sendmail for a while and I am a little
- > confused over How sendmail determines what the LOCAL domain name is.
- ..
- > Here is the definition part of sendmail.cf:
- >
- > Dmki.icl.se
- > Dwsw2020
- > Cwsw2020 sw2020.ki.icl.se
- > Cmki.icl.se
- ..
- > This could be wrong :-( if it is, Please tell me how.
-
- It looks OK to me, although the second name in the Cw definition may not be
- needed.
-
- > What sendmail -bt tells me is as follows:
- >
- > ADDRESS TEST MODE
- > Enter <ruleset> <address>
- > > rewrite: ruleset 3 input: "user" "@" "icl" "." "se"
- > rewrite: ruleset 6 input: "user" "<" "@" "icl" "." "se" ">"
- > rewrite: ruleset 6 returns: "user" "<" "@" "LOCAL" ">"
-
- Well, since the incorrect address translation is happening in ruleset 6,
- could you let us know what S6 in your sendmail.cf contains, along with
- the definitions of any other variables or classes it references?
-
- > rewrite: ruleset 3 returns: "user" "<" "@" "LOCAL" ">"
- > rewrite: ruleset 1 input: "user" "<" "@" "LOCAL" ">"
- > rewrite: ruleset 1 returns: "user" "<" "@" "LOCAL" ">"
- > rewrite: ruleset 0 input: "user" "<" "@" "LOCAL" ">"
- > rewrite: ruleset 9 input: "user" "<" "@" "ki" "." "icl" "." "se" ">"
- > rewrite: ruleset 9 returns: "user" "<" "@" "ki" "." "icl" "." "se" ">"
- > rewrite: ruleset 0 returns: $# "ether" $@ "butler" $: "user" "<" "@" "ki"
- "." "icl" "." "se" ">"
- > >
- >
- > As you can se it accept's "icl.se" as LOCAL and then Replaces it with
- > "ki.icl.se".
- >
- > When I comment away the "Dmki.icl.se" macro from sendmail.cf this behaivor
- > dissapears. LOCAL gets converted back to "icl.se" again.
- > So obviously the "Dmki.icl.se" record makes sendmail use that as its LOCAL
- > domain at some point in time.
-
- Well, yes. The Dm variable is apparently being used in S0, but that's not
- where the problem is, since ki.icl.se is indeed your local domain. S0 is
- just replacing the string "LOCAL" (which is used internally only) with your
- actual domain name before passing it on to S9. The problem seems to be in
- S6's rules.
-
- > But where does it pick up "icl.se" as a
- > synonym for LOCAL. Its not in sendmail.cf.
-
- Very good question. Hopefully your S6 will give us a clue.
-
- > My domain name in /etc/resolv.conf is "ki.icl.se".
- > domainname(1M) returns "ki.icl.se"
-
- That matches your definitions of Dm and Cm, as it should.
-
- --
- Gilles Detillieux <Gilles@scrc.UManitoba.CA>
- Spinal Cord Research Centre or <grdetil@gilles.scrc.UManitoba.CA>
- Dept. of Physiology, U. of Manitoba Phone: (204)788-6766
- Winnipeg, MB R3E 0W3 (Canada) Fax: (204)786-0932
-