SUMMARY: sendmail config problem

From: scott@pccrisc.fda.gov
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
posting:

jairo@Pantaleon.cesma.usb.ve
Dave Weitzelweitzel@burke.com
Yves Lepage <yves@CC.McGill.CA>
dmaccara@bank-banque-canada.ca (Donn MacCara)

Here is the original posting:

>Hello,

>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 row.row.com.
><<< 553 row.row.com. host name configuration error
>554 scott@pccrisc.fda.gov... 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 sendmail.cf file
>is the DR and CR mailhost settings.

>I will summarize.

>Mike

Correct solutions were received by all in part or in whole. The real
downfall for me was accidentally copying the /usr/lib/sendmail.subsidiary.cf
to /etc/sendmail.cf instead of /usr/lib/sendmail.main.cf. I realized I had
copied the wrong config file when the solutions submitted were referencing
parts of the sendmail.cf 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/sendmail.main.cf /etc/sendmail.cf
  #mv /usr/lib/sendmail /usr/lib/sendmail.orig
  #cp /usr/lib/sendmail.mx /usr/lib/sendmail

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

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
  sendmail.cf file.

Dwname-you-want-it-to-be

2. Modify /etc/sendmail.cf:

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

ii. Do as you are told in sendmail.main.cf file. Compare with the generic
   sendmail.main.cf 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 sendmail.cf:

Dmyour-mail-domainname
Cmyour-mail-domainname

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:

S22
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