O'Reilly logo

Sendmail, 3rd Edition by Bryan Costales

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Install sendmail

There are two approaches to installing a new sendmail:

  • If you choose to run the new sendmail in place of the original, you first need to create and install a new configuration file. The m4(1) program is used to automate the process of configuration file creation. See Chapter 4 for a full description of this process.

  • If you choose to keep the original and install the new sendmail in parallel (until you can test it), you can proceed with the installation and defer configuration files until later. Note that this choice presumes you customized the file locations.

After you have compiled sendmail (and if the configuration file is ready and tested), you can install it as your production version. If you are already running a sendmail and will be overwriting that binary, you will need to kill that version first (Section 1.7.1.2).

Pre-V8.12 Installation

For versions prior to V8.12, installing sendmail looks like this:

# ./Build -n install

You use -n to be sure that the installation caused is, in fact, correct for your site. A typical such run, for example, might look like this:

Configuration: pfx=, os=SunOS, rel=4.1.4, rbase=4, rroot=4.1, arch=sun4, sfx= Making in ../obj.SunOS.4.1.4.sun4/sendmail if [ ! -d /etc/mail ]; then mkdir -p /etc/mail; fi install -c -o bin -g bin -m 444 helpfile /etc/mail/helpfile if [ ! -d /etc/mail ]; then mkdir -p /etc/mail; fi install -c -o root -g bin -m 644 statistics /etc/mail/statistics install -c -o root -g bin -m 4555 sendmail /usr/lib for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required