HostedDB - Dedicated UNIX Servers

Securing-Optimizing-RH-Linux-1_2_251
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca © Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ® 251 Those lines macro define the variables like the location of the log, lib, man directories, the group name and mode of Sendmail binary program under sbin directory. Step 5 Edit the daemon.c file (vi +1452 src/daemon.c) and change the line: nleft = sizeof ibuf - 1; To read: nleft = sizeof(ibuf) - 1; Step 6 Edit the smrsh.c file (vi +61 smrsh/smrsh.c) and change the line: # define CMDDIR         "/usr/adm/sm.bin" To read: # define CMDDIR                "/etc/smrsh" This modification specifies the directory in which all “smrsh” program commands must reside. Step 7 Edit the smrsh.c file (vi +69 smrsh/smrsh.c) and change the line: # define PATH           "/bin:/usr/bin:/usr/ucb" To read: # define PATH          "/bin:/usr/bin" This modification specifies the default search path for commands runs by “smrsh” program. It allows us to limit the location where these programs may reside. Compile and optimize The Build script of Sendmail allows you to specify a site configuration file. A site configuration file contains definitions for system installation. We’ll build this site configuration files to suit our system installation and put it in the default “BuildTools/Site” sub-directory of Sendmail source distribution since the Build script will look for the default site configuration files in this directory. Cd into the new Sendmail directory then creates the  site.config.m4 file (touch BuildTools/Site/site.config.m4) and adds the following lines inside this file: define(`confMAPDEF', `-DNEWDB') (Require only for Mail Hub configuration) define(`confENVDEF', `-DPICKY_QF_NAME_CHECK -DXDEBUG=0') define(`confCC', `egcs') define(`confOPTIMIZE', `-O9 -funroll-loops -ffast-math -malign-double -mcpu=pent iumpro -march=pentiumpro -fomit-frame-pointer -fno-exceptions') define(`confLIBS', `-lnsl') define(`confLDOPTS', `-s') define(`confMANOWN', `root') define(`confMANGRP', `root') define(`confMANMODE', `644') define(`confMAN1SRC', `1') define(`confMAN5SRC', `5') define(`confMAN8SRC', `8') This tells site.config.m4 file to set itself up for this particular configuration setup with: