			SENDMAIL INSTALLATION NOTES
		V8.6.12 for SunOs 4.14 and SunOs 4.1.3_U1 systems.

I. INTRODUCTION:

This listing contains additional instructions for installing V8
sendmail on SunOs 4.1.4 and 4.1.3_U1 systems.  The source base V8
sendmail is taken from Solaris 2.6 FCS cut-off source and is ported to
SunOs 4.1.x.  Part of the porting work also involves isolating the
4.1.x specific features from Solaris specific features like remote
mounting (mnttab file differences), YP and DNS mode of sendmail and
adding them to the new code so that any user who is using the V5
sendmail.cf files do not have to migrate their config files to V8.  In
other words, the new sendmail works with the old V5 sendmail.cf or V8
sendmail.cf config files without any errors.  Part of the reason is to
keep intact the old v5 functionality and also provide the additional
benifits of the new V8 functionality in SunOs Sendmail.


II. BACKGROUND:

Historically, two sendmail binaries (sendmail, sendmail.mx) are
supplied with SunOs sendmail.  This is done because host name 
lookup calls, which are made via DNS lookup queries (using
BIND 4.x libraries), and naming service calls, which are made via NIS
(Yellow Pages), are accessed by two different libraries instead of a
single library.  Therefore, two different binaries are provided.
This is a limitation in SunOs 4.1.x for name service lookups.  Solaris
solves this issue by using name service switch functionality via the
/etc/nsswitch.conf file.  4.1.x supports DNS and YP (NIS) name
services but does not support NIS+.  The easiest way to distribute
the sendmail software on 4.1.x is to have two different sendmail
binaries :  sendmail for YP name service lookups and sendmail.mx for
DNS host lookups and MX record lookups.  Users should note these
differences while installing the V8 sendmail binaries.



III. DIFFERENCES BETWEEN V5 AND V8 SENDMAIL CONFIG FILES:

Users who want to continue using the V5 sendmail config files
should note the below two differences and add them to the config
file, so that their V5 config file works as usual with the new V8
sendmail:

1. In order to make MX aliasing work for the V8 sendmail.mx binary, add
   %x ruleset to V5 sendmail.cf. Depending upon whether the system is
   configured as a mail client or a mail gateway, the corrosponding 
   configuration files: subsidiary.cf or main.cf should be modified
   for future use.

Modify the sendmail.cf file as shown below.

When using subsidiary.cf config file as sendmail.cf
after the following line:
R$*<@$%l>$*             $1<@$2.LOCAL>$3                 user@etherhostS
add this line immediately below it
R$*<@$%x>$*             $1<@$2.LOCAL>$3                 user@etherhost

When using main.cf file as sendmail.cf, do the same step for %y rulesets.

Similarly do the following to the next occurance of %l in the config file:
optimize names of known ethernet hosts
R$*<@$%l.LOCAL>$*       $#ether $@$2 $:$1<@$2>$3        user@host.here
R$*<@$%x.LOCAL>$*       $#ether $@$2 $:$1<@$2>$3        user@host.here
 
 In short, for MX lookups to be activated, %l or %y  symbols should be 
 either replaced by %x or add a new line containing the %x rule.
 
 
2. To make the remote mounting feature work for the V5 sendmail.cf file add
   ruleset 33 to the configuration file.

Append the following to the /etc/sendmail.cf configuration file:
ruleset 33 is used in remote mode only
S33
R$+<@$=w.LOCAL>         $1
R$+<@$=w>               $1
R$*<@$+>$*              $#ether $@$k $:$1<@$2>$3        forward to $k
R$+                     $#local $:$1                    local names

Steps 1 and 2 above are needed to make sure that the previous V5 config 
file works without any problems with the new V8 sendmail binary.


IV. MIGRATING TO V8 SENDMAIL CONFIGURATION FILES

Traditionally, V5 config files are placed in the /etc directory 
(/etc/sendmail.cf, /etc/sendmail.pid).  Users migrating to V8
sendmail should place the V8 sendmail config files in the /etc/mail
directory.  To use the V8 functionality, the V5 /etc/sendmail.cf
file should be removed.  Only the V8 /etc/mail/sendmail.cf file should be
made accessible to the sendmail program.

Following are the steps needed to migrate from  V5 to V8 sendmail:

 i. Create the V8 configuration directory:

        a. Create a directory /etc/mail/ on the SunOs 4.1.x system.

        b. Copy the configuration files into /etc/mail/

ii. Copy all the sendmail related binaries into their respective 
    directories. 

 		/usr/lib/sendmail
		/usr/lib/sendmail.mx
		/usr/ucb/vacation
		/usr/etc/mconnect
		/usr/etc/mailstats
		
iii. Kill the sendmail process. Rename any old v5 sendmail.cf files.   

iv. Configure the /etc/mail/sendmail.cf file according to the v5 
    sendmail configuration you might be using previously.  The new V8
    sendmail.cf file is self-explanatory.

v. If gathering mail statistics is important to you, move /etc/sendmail.st 
   to /etc/mail/sendmail.st

vi. Restart the sendmail process.

#/usr/lib/sendmail -bd -q1h  (for YP mode)
		or
#/usr/lib/sendmail.mx -bd -q1h (for DNS and MX lookups)


V.NOTE

   Users should note that this V8 sendmail has most of the features that
   are currently available with Solaris 2.6 sendmail except for mail.local 
   local mailer support and NIS+ support. 

