home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / sgi / 16798 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  4.2 KB

  1. Path: sparky!uunet!math.fu-berlin.de!uni-paderborn.de!joost
  2. From: joost@cadlab.de (Michael Joosten)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Re: sendmail on Indigo
  5. Date: 23 Nov 92 22:42:54
  6. Organization: CADLAB, Paderborn, FRG
  7. Lines: 79
  8. Message-ID: <JOOST.92Nov23224254@ori.cadlab.de>
  9. References: <shcmfp4@sgi.sgi.com>
  10. Reply-To: joost@cadlab.de
  11. NNTP-Posting-Host: ori.cadlab.uni-paderborn.de
  12. In-reply-to: roberts@nimrod.wpd.sgi.com's message of Wed, 18 Nov 1992 19:53:01 GMT
  13.  
  14. Ah, just the right thread at the right time. We are running 4.0.2.
  15.  
  16. In article <shcmfp4@sgi.sgi.com> roberts@nimrod.wpd.sgi.com (Robert Stephens) writes:
  17.  
  18.  
  19.    >                                                           Also, when
  20.    > receiving mail my machine always greets the sending machine with
  21.    > something like "HELO machinename.D, why do you call yourself
  22.    > machinename.domainname".
  23.  
  24.    The message implies that your host knows the connecting host by a
  25.    different name than the connecting host knows itself.  If you do a
  26.    "/usr/sbin/canonhost machinename" what do you get?
  27.  
  28. "canonhost" - How does it retrieve the canonical hostname? On our SGIs (in a
  29. Sun NIS) "canonhost ingold" returns "ingold", or must the full name be first
  30. in /etc/hosts etc.?
  31.  
  32. our /etc/hosts: 131.234.80.57   ingold  ingold.cadlab.de
  33.  
  34. Apparently Irix insists that the first name-column has to contain the full
  35. name. I'm not sure what happens if we change our whole NIS host map in this
  36. way..... 
  37.  
  38.    I don't understand the .D
  39.  
  40. Ha! I bite. This day I just tracked this problem down. Apparently this occurs
  41. if your gethostbyaddress() doesn't return the fully qualified hostname of the
  42. client, as it is in our NIS system (w're mainly Sun-equipped). In this case,
  43. sendmail tries to build the full name by means of the option 'N', this is in
  44. daemon.c, function getrequests() (this is at least true for the BSD4.3
  45. sendmail sources). There the full name is built by appending the value of the
  46. variable 'NetName' to the hostname as returned by gethostbyaddr(). 'NetName'
  47. in turn comes from the sendmail option 'N', which is set in the default config
  48. file to 'ON$D'. But here is a bug: option statements do *not* evaluate macros,
  49. so when you change it to 'ON<domainname>' this will be (more) correct. After
  50. having done this, 4.0.2's sendmail now greets me with:
  51.  
  52. 220 ingold Sendmail 920110.SGI/911001.SGI ready at Mon, 23 Nov 92 21:37:44 +0100
  53. helo ori.cadlab.de
  54. 250 Hello ori.cadlab.de, why do you call yourself ori.cadlab.de?
  55.           ^^^^^^^^^^^^                            ^^^^^^^^^^^^^ Huh?
  56.   
  57. This message comes from srvrsmtp.c, somewhere after a 'case CMDHELO'. This
  58. sort of message doesn't in occur in 4.3 sendmail, only in IDA and 4.2, and
  59. looking now in IDA I can't see what's wrong there:
  60.  
  61.                         if (RealHostName != NULL && strcasecmp(ptr, RealHostName
  62. ))
  63.                         {
  64.                                 char hostbuf[MAXNAME];
  65.  
  66.                                 (void) sprintf(hostbuf, "%s (%s)", ptr, RealHost
  67. Name);
  68.                                 DeclHostName = newstr(hostbuf);
  69.                                 message("250", "Hello %s, why do you call yourse
  70. lf %s?",
  71.                                         RealHostName, ptr);
  72.                         }
  73.  
  74. Is this in 4.0.2 sendmail different? On the other hand, IDA does not try to
  75. append the 'N' option to the client's hostname, so I had to look in two
  76. different sources (and BSD Net2's sendmail also omits the appending of NetName..)
  77.  
  78. Well, Robert, do you have access to the sources ? Maybe you could explain this
  79. a bit... 8-)
  80.  
  81.  
  82. Michael
  83. --
  84.  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  85. | Michael Joosten   |       Tel.  : (+49) (+) 5251-284 120                 |
  86. | CADLAB            |       Fax   : (+49) (+) 5251-284 140                 |
  87. | Bahnhofstr. 32    |       E-Mail: joost@cadlab.de                        |
  88. | D-4790 Paderborn  |                ...!uunet!unido!cadlab!joost           | 
  89. | FRG               | Mass mail to: joost@pbinfo.uni-paderborn.de          |
  90. |--------------------------------------------------------------------------|
  91. | CADLAB is a cooperation between Uni-GH Paderborn & SNI AG                |
  92.  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  93.