[comp.mail.sendmail] Sendmail config help needed

smm@acd4.UUCP ( Steve McCoole ) (07/02/90)

Help!!  Our site has lately registered into a domain and I need to
configure sendmail to handle the new domain properly.  This is 
somewhat confusing as we only connect via UUCP to our forwarder
which is UUNET.  I have RTFM, ( what little I could find ) and 
am really stuck.  Any help would be greatly appreciated.

The background information is: we are running a local 
network connected by ethernet, running Ultrix 2.3 and 3.1.
I am using the sendmail that comes with these distributions.
One machine on the network is the gate for all outside mail, 
done with UUCP. Its name is acd4.  One other machine name on the 
network is dev1, as an example.  Our domain name is acd.com.

As far as I can determine, ( please correct me if I'm wrong ),
I have two things to change.  First, outgoing mail needs to be
changed to a "From: user@host.acd.com" type of style.  Second, the
incoming mail needs to recognize several forms of addresses.

   1.  user@host.acd.com - where host is acd4 or some other local
       host on our network.
   2.  user@acd.com - should default to acd4, the gate machine??
   3.  uunet!acd4!user - normal uucp style address.
   4.  uunet!acd.com!user - uucp style, default to acd4?
   5.  uunet!host.acd.com!user - uucp style, forwarded to appropriate
       local host.

I've tried to modify the sendmail.cf file and so far I can only get
the incoming mail to recognize examples 2, 3, and 4 above.  Outgoing
mail still sends our address as "user@acd4.UUCP".  Thanks in advance
to any who might be able to lend some sendmail.cf guru experience.

Steve McCoole |  Applied Computing Devices | uunet!acd.com!smm / smm@acd.com

karl_kleinpaste@cis.ohio-state.edu (07/04/90)

smm@acd4.uucp writes:
   Help!!  Our site has lately registered into a domain

Thank you!

   and I need to
   configure sendmail to handle the new domain properly.  This is 
   somewhat confusing as we only connect via UUCP to our forwarder
   which is UUNET.  I have RTFM, ( what little I could find ) and 
   am really stuck.  Any help would be greatly appreciated.

Well, I'll give it a shot...

   ...outgoing mail needs to be
   changed to a "From: user@host.acd.com" type of style.

Start by defining a macro for your domain:

DDads.com

Then try (from my sendmail.cf):

## CONFIG HERE
## Pick one of the next 3 lines, based on your syntactic preference.
## 1: "From: joe@host.domain (Joe Random)"
## 2: "From: Joe Random <joe@host.domain>"
## 3: "From: joe@host.domain" (appropriate with full names: joe_random@...)
#Dq$g$?x ($x)$.
Dq$?x$x $.<$g>
#Dq$g

$g is defined as "sender address relative to the recipient" in the
Sendmail Ops Guide.  My Dq's assume that your $j is set up right.  $j
is the proper FQDN of your host, e.g.:

## CONFIG HERE
## Pick one of the next 2 lines, based on whether your
## hostname canonicalizes to a long, domainified name or not.
Dj$w
#Dj$w.$D

Your address forms to be recognized can be dealt with in S0 without
much difficulty.

      1.  user@host.acd.com - where host is acd4 or some other local
	  host on our network.
R$-<@$j>		$#local$:$1		acd4.acd.com -- local user
R$-<@$+.$D>		$#tcp$@$2$:$1@$2.$D	Local network delivery
      2.  user@acd.com - should default to acd4, the gate machine??
R$-<@$D>		$#local$:$1		Local user in top domain
      3.  uunet!acd4!user - normal uucp style address.
(I dislike hardcoding machine names into .cf, but...)
Ruunet!acd4!$-		$#local$:$1		Local user via UUCP name
      4.  uunet!acd.com!user - uucp style, default to acd4?
Ruunet!$D!$-		$#local$:$1		Local user via UUCP & domain
      5.  uunet!host.acd.com!user - uucp style, forwarded to appropriate
	  local host.
Ruunet!$+.$D!$-		$#tcp$@$1$:$2@$1.$D	UUCP format to local network

--karl
--
"Reading news with GNUS gives the phrase `garbage collecting'
 a whole new meaning."  --jgreely@cis.ohio-state.edu