From: bjarne@hsr.no (Bjarne Steinsbo)
Subject: Re: HELP: Problems integrating HP700-Cluster in SUN-Environment
Organization: Rogaland University Centre
Date: Fri, 24 Jul 1992 11:10:45 GMT

In article <1992Jul23.222817.14901@gdwest.gd.com>, good@gdwest.gd.com (David L. Good) writes:
> Hmmm.  We're running sendmail on all of our machines.  Maybe that's the
> problem.  What are the advantages/disadvantages of not running sendmail?

The advantages/disadvantages are really the usual ones when having to
choose from a centralized or distributed setup.  A centralized setup is
easier to change and update; a distributed one is somewhat more robust.

Advantages:
   - Only one machine actually delivering mail, smaller chance for locking
     bugs to mess things up.
   - Only one machine sends/receives mail to/from external sites, if the
     configuration is correct on this gateway machine, everything is swell.
     If routing og special measuares are needed, only one configuration
     file needs to be changed.
   - One less deamon running on the clients.
Disadvantages:
   - If the mail server is down, mail won't be delivered until after the
     server is up again.
   - If you sc**w up the server configuration, you're really sc**wd!  (Excuse
     my English, if you please.  I'm influenced by American movies. -:)

Did I forget something?  Probably, I usually do....

Our own setup is something like this:
   1) Headers are rewritten by sendmail in a way that hides the local
      machine names.  The name we let out is "hsr.no", which is just
      an MX record in the nameserver pointing to the mailserver.
   2) All machines have MX records pointing to the nameserver in case
      a machine name do slip out, or in case a user gives a friend his
      mail address which includes the local machine name.
   3) All clients run sendmail to send mail (as usual), but the mail is
      always sent directly to the mailserver.  At least this is the way
      our HPs are set up.
   4) If the mailserver is down when the client tries to send a message,
      the message gets spooled up.  Therefore sendmail needs to be run
      regularly by cron to clear out a possible queue.

There is a small hack needed in the sendmail.cf file on the HPs to route
even local mail to the mailserver.  It involves adding a domain-name to
local addresses.  Also /etc/netbsdrc needs to be changed so that sendmail
won't be started as a daemon, even if it *is* executable.

I have included our changes to sendmail.cf for a client machine named
gorina3.hsr.no.  The mailserver is called broremann.hsr.no.  The
sendmail.cf could have been much simpler, I have only hacked a little
in the one that HP deliver, not written or installed a completely new
one.

Bjarne

                       --------------------
Bjarne Steinsbo (bjarne@hsr.no) | There wasn't a red button, instead there
Rogaland University Center      | was a blue button marked "Red". - D. Adams

---------  cut here, and run through patch  ------------
*** /etc/newconfig/sendmail.cf	Sat Dec 21 15:03:29 1991
--- /usr/lib/sendmail.cf	Wed Jun 24 11:01:56 1992
***************
*** 836,843 ****
  
  # site hiding: local sender identified as user@my_site instead of user@my_host
! # DY
  
  # class w defines aliases for the local host
! # Cw
  
  # macro L defines the "local domain" to which you connect directly for SMTP mail
--- 836,843 ----
  
  # site hiding: local sender identified as user@my_site instead of user@my_host
! DYhsr.no
  
  # class w defines aliases for the local host
! Cwgorina3 go3 gorina3.hsr.no go3.hsr.no gorina3.hsr.no. go3.hsr.no.
  
  # macro L defines the "local domain" to which you connect directly for SMTP mail
***************
*** 848,852 ****
  
  # class U defines known direct UUCP connections
! FU|/usr/bin/uuname %s
  
  # UUCP relay for unresolved ! addresses (via UUCP)
--- 848,852 ----
  
  # class U defines known direct UUCP connections
! #FU|/usr/bin/uuname %s
  
  # UUCP relay for unresolved ! addresses (via UUCP)
***************
*** 854,861 ****
  
  # UUCP relay for unresolved ! addresses (via SMTP)
! DW
  
  # SMTP relay for unresolved @ addresses
! DS
  
  # X.400 relay if X.400 delivery agent is not local
--- 854,861 ----
  
  # UUCP relay for unresolved ! addresses (via SMTP)
! DWbroremann.hsr.no
  
  # SMTP relay for unresolved @ addresses
! DSbroremann.hsr.no
  
  # X.400 relay if X.400 delivery agent is not local
***************
*** 981,984 ****
--- 981,988 ----
  R$+ at $+		$1@$2			RFC 733 at => RFC 822 @
  
+ # HSR HACK. add domain to local addresses
+ R$-			$1@$Y
+ R$+@$=w			$1@$Y
+ 
  # source route <@a,@b,@c:user@d> syntax to internal form <@a>:@b:@c:user@d
  R@$+,$+			@$1:$2			change all , to :
***************
*** 1063,1067 ****
  
  # pass unresolved UUCP addresses to the UUCP relay (via SMTP)
! # R$+<@$+.UUX>		$#tcp$@$W$:$1<@$2.UUX>	to UUCP relay via SMTP
  
  # pass unresolved UUCP addresses to the UUCP relay (via UUCP)
--- 1067,1071 ----
  
  # pass unresolved UUCP addresses to the UUCP relay (via SMTP)
! R$+<@$+.UUX>		$#tcp$@$W$:$1<@$2.UUX>	to UUCP relay via SMTP
  
  # pass unresolved UUCP addresses to the UUCP relay (via UUCP)
***************
*** 1082,1086 ****
  
  # try to connect to any host for user@domain
! R$+<@$+>		$#tcp$@$2$:$1<@$2>	user@domain
  
  # try to connect to any host for source route
--- 1086,1090 ----
  
  # try to connect to any host for user@domain
! # R$+<@$+>		$#tcp$@$2$:$1<@$2>	user@domain
  
  # try to connect to any host for source route
***************
*** 1088,1092 ****
  
  # pass unresolved SMTP addresses to the SMTP relay (don't relay source routes)
! # R$+<@$+>		$#tcp$@$S$:$1<@$2>	user@domain to SMTP relay
  
  # other SMTP addresses are in error
--- 1092,1096 ----
  
  # pass unresolved SMTP addresses to the SMTP relay (don't relay source routes)
! R$+<@$+>		$#tcp$@$S$:$1<@$2>	user@domain to SMTP relay
  
  # other SMTP addresses are in error
--------- cut here ------------
From: rjn@hpfcso.FC.HP.COM (Bob Niland)
Date: Tue, 28 Jul 1992 23:37:31 GMT
Subject: Re: HP e-mail address
Organization: Hewlett-Packard/WSY Ft.Collins,CO,USA