Article View: comp.mail.sendmail
Article #2624How does Sendmail determine Local domainname ?
From: Lars Tunkrans
Date: Mon, 04 Jan 1993 16:07
Date: Mon, 04 Jan 1993 16:07
58 lines
2641 bytes
2641 bytes
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. My sVr4 system has the name "sw2020.ki.icl.se". I thougt that this would make the LOCAL varible contain "ki.icl.se", but it seems to match both "icl.se" and "ki.icl.se" 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. What happends is that if i send something off to " user@icl.se" which is our toplevel domain, sendmail converts it to "user@ki.icl.se". 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" ">" 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. But where does it pick up "icl.se" as a synonym for LOCAL. Its not in sendmail.cf. My domain name in /etc/resolv.conf is "ki.icl.se". domainname(1M) returns "ki.icl.se" Any ideas ? Lars -- _______________________________________________________________________________ Lars Tunkrans Phone +46 (0)87642419 DRS Systems Services DOMAIN Address : ltu@icl.se UUCP: X400: I=L;S=Tunkrans;OU1=SWE2002;O=ICL Data;P=ICL;A=TEDE;C=SE
Technical Details
Message-ID:
<1993Jan4.160723.2551@icl.se>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!spool.mu.edu!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!seunet!news.icl.se!ltuShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!spool.mu.edu!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!seunet!news.icl.se!ltu From: ltu@ki.icl.se (Lars Tunkrans) Newsgroups: comp.mail.sendmail Subject: How does Sendmail determine Local domainname ? Summary: Sendmail and "LOCAL" Message-ID: <1993Jan4.160723.2551@icl.se> Date: 4 Jan 93 16:07:23 GMT Sender: root@icl.se (Root System) Organization: ICL Data AB Kista Sweden Lines: 58 Nntp-Posting-Host: sw2020