18.6 Install sendmailThere are two approaches to installing a new sendmail :
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 (see Chapter 4, How to Run sendmail ). To install sendmail , first type
#
You use
install -o root -g kmem -m 6555 sendmail /usr/lib for i in /usr/ucb/newaliases /usr/ucb/mailq; do rm -f $i; \ ln -s /usr/lib/sendmail $i; done install -c -o root -g kmem -m 644 /dev/null \ /etc/sendmail.st install -c -o root -g kmem -m 444 sendmail.hf /usr/lib Notice that Makefile will not create the queue directory even if it does not exist. If you have never run sendmail on your machine before, you will need to create that queue directory:
#
See
Section 34.8.48, QueueDirectory (Q)
for a description of the
If all looks good, you can install sendmail with this command:
# But be aware that the new sendmail may not work properly with your old configuration file. See Chapter 19 for guidance in creating configuration files. |
|