HostedDB - Dedicated UNIX Servers

Securing-Optimizing-RH-Linux-1_2_273
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca © Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ® 273 Compilation Decompress the tarball (tar.Z). [root@deep /]# cp imap-version.tar.Z /var/tmp [root@deep /]# cd /var/tmp [root@deep tmp]# tar xzpf imap-version.tar.Z Compile and Optimize Move into the new IMAP directory and type the following commands on your terminal: Step 1 Edit the Makefile file (vi +698 src/osdep/unix/Makefile) and change the line: sh -c '(test -f /usr/include/sys/statvfs.h -a $(OS) != sc5 -a $(OS) != sco) && $(LN) flocksun.c flockbsd.c || $(LN) flocksv4.c flockbsd.c' To read: sh -c '(test -f /usr/include/sys/statvfs.h -a $(OS) != sc5 -a $(OS) != sco -a $(OS) != lnx) && $(LN) flocksun.c flockbsd.c || $(LN) flocksv4.c flockbsd.c' This modification will change the “sys/stavfs” file. This file with the new glibc 2.1 of Linux is different from what is available on the Sun. Edit the Makefile file (vi +355 src/osdep/unix/Makefile) and change the line: BASECFLAGS="-g -fno-omit-frame-pointer -O6 -DNFSKLUDGE" \ To read: BASECFLAGS="-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro - march=pentiumpro -fomit-frame-pointer -fno-exceptions -DNFSKLUDGE" \ This is our optimization flag for the compilation of IMAP/POP software on the server. Edit the Makefile file (vi +112 src/osdep/unix/Makefile) and change the line: BUILDOPTIONS= EXTRACFLAGS="$(EXTRACFLAGS)"\ To read: BUILDOPTIONS= EXTRACFLAGS=  -DDISABLE_POP_PROXY=1  - DIGNORE_LOCK_EACCES_ERRORS=1"$(EXTRACFLAGS)"\ By default, the ipopd [23] servers offer POP to IMAP proxy access, which allow a POP client to access mail on an IMAP server by using the POP server as a go-between. Setting the “- DDISABLE_POP_PROXY=1” option disables this facility. The “-DIGNORE_LOCK_EACCES_ERRORS=1” option disable the warning which occurs if an attempt to create a mailbox lock file fails due to an EACCES error. Edit the Makefile file (vi +58 src/osdep/unix/Makefile) and change the lines: ACTIVEFILE=/usr/lib/news/active To read: ACTIVEFILE=/var/lib/news/active SPOOLDIR=/usr/spool