Installing Sendmail....


Sendmail is sponsored by the Internet Software Consortium.

Sendmail falls under the GNU freeware copyright, and can be found at at www.sendmail.org.

How to Install on Solaris


Pre Installation...

Assumptions:

  1. Your machine is connected to the internet, or you have access to the internet.
  2. You have Sun's c compiler installed.
  3. Otherwise your Solaris installation is near to vanilla.
  4. You know how to use the internet & vi.
  5. You have /usr/ccs/bin in your PATH.
  6. You have /opt/SUNspro/bin in your PATH.
  7. You're using h2n.pl to translate a hosts file to db's, all located in /var/named
  8. You have a perl 5 binary in your PATH.

What to do...
    Getting The Necessary Components...
    1. FTP the latest source from ftp://ftp.sendmail.org/pub/sendmail/
    2. FTP the Gzip Freeware package from http://smc.vnet.net/solaris_2.5_nof.html#gzip
    3. FTP the GNU Patch package from http://smc.vnet.net/solaris_2.5_nof.html#patch

    Installing the Components...
    1. Install the Gzip package.
      1. Translate the package so sun can understand it:
        • pkgtrans ./gzip-1.2.4 /tmp
      2. Install the package...
        • pkgadd -d /tmp
      3. Make the package useful...
        • ln -s /opt/FSFgzip/bin/gzip /usr/bin/gzip
    2. Install the Patch package.
      • Uncompress the patch package...
        • gzip -d patch-2.1.gz
        Translate the package so sun can understand it:
        • pkgtrans ./patch-2.1 /tmp
      • Install the package.
        • pkgadd -d /tmp
      • Backup the existing patch binary.
        • mv /usr/bin/patch /usr/bin/patch.old
      • Make the package useful...
        • ln -s /opt/FSFpatch/bin/patch /usr/bin/patch

    Extracting the source.
    1. Copy the source to the source directory.
      • cp sendmail.8.8.6.tar.gz /usr/src
    2. Uncompress the source.
      • gzip -d sendmail.8.8.6.tar.gz
    3. Un-Tar the source.
      • tar -xvf sendmail.8.8.6.tar

    Patching the files to make it compile for solaris.
    1. Download this Patch
    2. Change into the src directory.
      • cd /usr/src/
    3. Patch the source using the diff-bind file.
      • patch -R < sm-bind
      • If it asks questions about "Assume -R", choose [y].
      • If it asks "Patch which file", then you're in the wrong directory.

    Compiling the software.
    1. Change into the sendmail source directory
      • cd /usr/src/sendmail-8.8.6/src
    2. Make the binaries.
      • ./makesendmail
    3. Change into the directory where the new binaries are.
      • cd /usr/src/sendmail-8.8.6/src/obj.SunOS.5.5.1.sun4
    4. Make a backup directory, just in case...
      • mkdir /var/sendmail-backup
    5. Backup the main sendmail files
      • cp /usr/lib/sendmail /var/sendmail-backup
      • cp /etc/sendmail.cf /var/sendmail-backup
    6. Install the binaries into their correct places.
      • make install
    7. Change to the configuration directory
      • cd /usr/src/sendmail-8.8.6/cf/cf
    8. Make the configuration file.
      • ./m4 ../m4/cf.m4 generic-solaris2.mc > /etc/sendmail.cf

      Lastly - Reboot the machine

Written by Peter A. DeNitto,
denitto@llamas.net
Finished on July 30th, 1997