SUMMARY: Return (reply) header missing hostname, SUNOS 4.1.3, SS1

From: Joel L. Seber ... CH210 (
Date: Sat Oct 29 1994 - 04:01:00 CDT

Well, that was fast! I have received one reply, and it was on the money! I
include my original question as well as the complete text of the reply!

Thanks to (derrick hongerholt) for the quick response!



My original question:

This is probably a stupid question, but it is really eluding me and I would
appreciate some quick help.

I have a standalone Sun Sparcstation 1 running SUNOS 4.1.3_U1 with the supplied
'' and DNS running correctly. I can send and receive mail, no
problem, but the return header for outgoing mail is always wrong.
Receipients (sp?) get something like this:

when I need for them to get
         ^----------------------hostname added

What am I missing? Any help would be appreciated.

(BTW, I set up my network mail fine some years ago. Haven't dealt with a
standalone before in this context...)

I will summarize.

Thanks in advance,

Joel L. Seber | Dry humor is wasted around here.
SUN Workstation Laboratory Manager | -Joel L. Seber
Center for Manufacturing Research |
      and Technology Utilization | recursive, adj.
Tennessee Technological University | See 'recursive'
Cookeville, TN 38505 |
                                        | What if there were no hypothetical | situations? -Steven Wright


And the answer is...

This is a summary I received from some guy named Mike. I worked perfect for
me and I have the same configuration as you. Hope it helps.

This is a remailing of this summary. Sorry for the waste of bandwidth but
I forgot to include a subject line in my first mailing.


I would like to thank those that responded to my sendmail configuration
Yves Lepage <yves@CC.McGill.CA> (Donn MacCara)

Here is the original posting:


>I need the help of the sun-managers mailing list. I don't have access
>to any manuals (I'm at a remote site). I have been asked to setup
>sendmail on a sparcstation 4/75 running 4.1.3 without any patches.
>I have installed the fix for using DNS without running yp. I want
>to configure the sendmail system as a standalone mail server.

>I get the following error message when I try to send outbound mail:

> ----- Transcript of session follows -----
>Connected to row:
>>>> HELO
><<< 553 host name configuration error
>554 Service unavailable

>I tried various things like ensuring that the hostname command returns the
>same thing that is returned in the above sendmail error message. Also tried
>fully qualifying the hostname with the hostname command. Am I looking in
>the correct area? The only thing I changed in the file
>is the DR and CR mailhost settings.

>I will summarize.


Correct solutions were received by all in part or in whole. The real
downfall for me was accidentally copying the /usr/lib/
to /etc/ instead of /usr/lib/ I realized I had
copied the wrong config file when the solutions submitted were referencing
parts of the file that I didn't have in mine. Here is a brief
summary of the solution as supplied by Dave Weitzel:

1. If DNS is setup(at least system is running as resolver ) and -b option is
  used in /var/yp/Makefile(or resolver library is installed) on the system
  you need to do:

  #cp /usr/lib/ /etc/
  #mv /usr/lib/sendmail /usr/lib/sendmail.orig
  #cp /usr/lib/ /usr/lib/sendmail

i. You only need to run on one machine. Usually a good
   choice is the gateway to the internet. On the selected machine you
   have to use

ii. If you have more than one ethernet interface choose the first interface
  name as the hostname, otherwise, you need to define the "w" macro in file.


2. Modify /etc/

i. Use Dj$w instead of Dj$w.$m in file.

ii. Do as you are told in file. Compare with the generic you'll know what I mean. Search for keyword "DDN".

# Pass other valid names up the ladder to our forwarder
#R$*<@$*.$=T>$* $#$M $@$R $:$1<@$2.$3>$4 user@domain.known

# Replace following with above to only forward "known" top-level domains
#R$*<@$*.$+>$* $#$M $@$R $:$1<@$2.$3>$4 user@any.domain

# if you are on the DDN, then comment-out both of the the lines above
# and use the following instead:
R$*<@$*.$+>$* $#ddn $@ $2.$3 $:$1<@$2.$3>$4 user@any.domain

iii. Define the mail domainname:

Add two lines to


iv. If you want the From line to look like user@hostname.domainname instead
   of just user@domainname you can do one more thing to ruleset 22:

R$*<@LOCAL>$* $:$1
R$-<@$-> $:$>3${Z$1@$2$} invert aliases
R$*<@$+.$*>$* $@$1<@$2.$3>$4 already ok
R$+<@$+>$* $@$1<@$2.$m>$3 tack on our domain
# Change from $m to $w in the following rule
#R$+ $@$1<@$m> tack on our domain
R$+ $@$1<@$w> tack on our domain

From: IN%"" 28-OCT-1994 08:21:05.93
Received: from by (PMDF V4.3-10 #7186)
 id <>; Fri, 28 Oct 1994 08:20:54 -0500 (CDT)
Received: by (4.1/SMI-4.1) id AA07567; Fri,
 28 Oct 94 09:24:09 PDT
Date: Fri, 28 Oct 1994 09:24:09 -0700 (PDT)
From: (derrick hongerholt)
Subject: Help on mail!
Message-id: <>
Content-transfer-encoding: 7BIT

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:09:13 CDT