SUMMARY: sendmail config problem

Date: Wed Jul 27 1994 - 06:59:51 CDT

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

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