HostedDB - Dedicated UNIX Servers

Securing-Optimizing-RH-Linux-1_2_253
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca © Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ® 253 [root@deep makemap]#  sh Build (Require only for Mail Hub configuration) [root@deep makemap]#  cd .. [root@deep sendmail-8.9.3]# cd praliases (Require only for Mail Hub configuration) [root@deep praliases]#  sh Build (Require only for Mail Hub configuration) [root@deep praliases]#  cd .. [root@deep sendmail-8.9.3]# cd smrsh [root@deep smrsh]#  sh Build [root@deep smrsh]#  cd .. NOTE: The “sh Build” sendmail script will create a new directories named “obj.Linux. kernelversion.cpuarchitecture” for example “obj.Linux.2.2.14.i686” under each subdirectories program you may install and then creates links inside those directories to all the necessary source files and Makefiles. [root@deep sendmail-8.9.3]# make install -C src/obj.Linux.kernelversion.cpuarchitecture [root@deep sendmail-8.9.3]# make install -C mailstats/obj.Linux.kernelversion.cpuarchitecture [root@deep sendmail-8.9.3]# make install -C makemap/obj.Linux.kernelversion.cpuarchitecture (Only for Mail Hub configuration) [root@deep sendmail-8.9.3]# make install -C praliases/obj.Linux.kernelversion.cpuarchitecture (Only for Mail Hub configuration) [root@deep sendmail-8.9.3]# make install -C smrsh/obj.Linux.kernelversion.cpuarchitecture [root@deep sendmail-8.9.3]# ln -fs /usr/sbin/sendmail /usr/lib/sendmail [root@deep sendmail-8.9.3]# strip /usr/sbin/mailstats [root@deep sendmail-8.9.3]# strip /usr/sbin/makemap (Only for Mail Hub configuration) [root@deep sendmail-8.9.3]# strip /usr/sbin/praliases (Only for Mail Hub configuration) [root@deep sendmail-8.9.3]# strip /usr/sbin/smrsh [root@deep sendmail-8.9.3]# strip /usr/sbin/sendmail [root@deep sendmail-8.9.3]# chown 0.0 /usr/sbin/mailstats [root@deep sendmail-8.9.3]# chown 0.0 /usr/sbin/makemap (Only for Mail Hub configuration) [root@deep sendmail-8.9.3]# chown 0.0 /usr/sbin/praliases (Only for Mail Hub configuration) [root@deep sendmail-8.9.3]# chown 0.0 /usr/sbin/smrsh [root@deep sendmail-8.9.3]# chmod 511 /usr/sbin/smrsh [root@deep sendmail-8.9.3]# install -d -m755 /var/spool/mqueue [root@deep sendmail-8.9.3]# chown root.mail /var/spool/mqueue [root@deep sendmail-8.9.3]# mkdir /etc/smrsh [root@deep sendmail-8.9.3]# mkdir /etc/mail (Only for Mail Hub configuration) The “sh Build” command would build and make the necessary dependencies in “obj.Linux.kernelversion.cpuarchitecture” of the different files require by Sendmail before installation on your system. The “make install -C” command would install sendmail, mailstats, makemap, praliases, smrsh binaries and links as well as the corresponding man pages on your system. The “ls -fs” command would make a symbolic link of sendmail binary to “/usr/lib” directory. This is requiring since some programs hopes to find sendmail binary in this directory (/usr/lib). The “strip” command would reduce the size of mailstats, praliases, sendmail, smrsh, and makemap binaries for optimum performance. The “install” command would create the directory “mqueue” with permission 755 under “/var/spool”. A mail message can be temporarily undeliverable for a wide variety of reasons. To ensure that such messages are eventually delivered, Sendmail stores them in its queue directory until they can be delivered successfully. The “chown” command would make UID and GID to “root” for files: mailstats, makemap, praliases, smrsh, and UID “root” GID “mail” for mqueue directory. The “mkdir” command would create a “/etc/mail” and “/etc/smrsh” directories on your system.