[comp.sys.sun] Help with sendmail.cf

mark@deltam.com (mark galbraith) (10/10/89)

I am afraid I am joining the large club of sysadmins that have trouble
with changes to the sendmail.cf file.  It seems that even the smallest
attempt at customizing sendmail causes MAJOR problems.

We have a small network, connected to uunet by high-speed uucp link.  One
host on the network is designated the mailhost, and all others are
subsidiary machines.

The change I am trying to make (right now at least) is to cause sendmail
not to include the hostname of the subsidiary machines in the Reply-To
line.  In other words, I am trying to hide the internal machine names of
our network.  I have mail aliases to handle getting mail to the right
place, so that is not a problem.  I have tried several times to get this
working, each more disasterous than the one before.  Any help from the
wizards out there would be appreciated.

On a related note, is there a way to cause the return addresses referenced
in the previous paragraph to be formatted in internet format (i.e.,
user@host) rather than uucp format (i.e., host!user).  This would make
things a little easier as our domain is registered with the nic-server.

I'm sure this has been covered before, but I don't know where, and I am
getting nowhere fast trying to use the information in the Sun Manuals.

Thanks in advance for your help.

Mark Galbraith				Voice:  415-449-6881
Tech Writer/Programmer/Postmaster	UUCP:   uunet!deltam!mark

The opinions expressed are mine.  My employer's opinions may be different!

nancy@cs.utexas.edu (10/17/89)

You might try using the test mode (/usr/lib/sendmail -bt).  It is a
requirement for all those who change the sendmail.cf file (except for
perhaps the most exalted of wizards).

Try adding the following to your sendmail.cf file and check it in test
mode:

# gateway to Arpanet
DAdeltam.com
CAdeltam.com

# If your host name is already fully qualified (as shown by -d0.4 option) ...
Dj$w
# ...else
#Dj$w.$m

<etc, etc, etc>

# to the S= ruleset of the Mlocal mailer add:
R$+<@$j>$*		$: $1<@$A>$3			hide behind our gateway

Hope this helps...

Nancy Buehmann 			UUCP: ...!uunet!ingr!b11!nancy
Intergraph Corporation		ARPANET: ingr!b11!nancy@uunet.uu.net
Huntsville, Alabama

eggert@uunet.uu.net (Paul Eggert) (10/19/89)

In Sun-Spots v8i161m9 mark@deltam.com (Mark Galbraith) writes that he's
trying to set up sendmail.cf for his machine connected to uunet.  He asks:

	1.  How do I hide the internal machine names on our network?

	2.  How can the returned addresses be kept in internet format?

Both (1) and (2) are the _default_ under SunOS 4.0.*.  If you're not
running 4.0.*, you might upgrade; or you might try upgrading your
/usr/lib/sendmail.main.cf file to the "main.mc 1.15 88/02/08 SMI" version,
which comes with 4.0.*.

Here's all we had to do on our machine connected to the modem.  We
installed a copy of /usr/lib/sendmail.main.cf into /etc/sendmail.cf, with
the following changes:

34,35c34,35
< DR ddn-gateway
< CR ddn-gateway
---
> DR uunet
> CR uunet
66c66,67
< # DmPodunk.EDU
---
> Cmtwinsun.com
> Dmtwinsun.com

Sun's Podunk comment is misleading; it should also contain a Cm line.

If you haven't arranged for uunet to forward your domain's mail to you
(that is, if you are asking only question [1] and not question [2] above),
you must also change the sendmail.cf line "DMsmartuucp" to "DMuucp".

We also add the h flag to our uucp mailer spec by globally substituting
"msDFMuU" for "msDFMhuU" in sendmail.cf.  This lets addresses like
"UUNET!user" work; occasionally some (non-Sun) mailers uppercase parts of
return addresses.