Securing-Optimizing-RH-Linux-1_2_275
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca
© Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ®
275
from your mail server. If you are intended to use imapd and ipopd services then keep the both
binaries.
Cleanup after work
[root@deep /]# cd /var/tmp
[root@deep tmp]# rm -rf imap-version/ imap-version.tar.Z
The rm command will remove all the source files we have used to compile and install
IMAP/POP. It will also remove the IMAP/POP compressed archive from the /var/tmp directory.
Configurations
All software we describe in this book has a specific directory and subdirectory in a tar
compressed archive named floppy.tgz containing file configurations for the specific program. If
you get this archive file, you wouldnt be obliged to reproduce the different configuration files
bellow manually or cut and past them to create your configuration files. Whatever your decide to
copy manually or get the files made to your convenience from the archive compressed files, it will
be to your responsibility to modify, adjust for your needs and place the files related to IMAP/POP
software to their appropriated places on your server machine, like show bellow. The server
configuration files archive to download is located at the following Internet address:
http://pages.infinit.net/lotus1/opendocs/floppy.tgz
·
To run IMAP/POP server, the following files are require and must be create or copied to
their appropriated directories on your server.
Copy the imap file to the /etc/pam.d/ directory if youre intended to use imapd service.
Copy the pop file to the /etc/pam.d/ directory if youre intended to use popd service.
You can obtain configuration files listed bellow on our floppy.tgz archive. Copy the following files
from the decompressed floppy.tgz archive to their appropriated places or copy and paste them
directly from this book to the concerned file.
Configuration of the /etc/pam.d/imap file
Configure your /etc/pam.d/imap file to use pam authentication.
Create the imap file (touch /etc/pam.d/imap) and add:
#%PAM-1.0
auth
required /lib/security/pam_pwdb.so shadow nullok
account
required /lib/security/pam_pwdb.so
NOTE: This file is only require if youre intended to use IMAP service.
Configuration of the /etc/pam.d/pop file
Configure your /etc/pam.d/pop file to use pam authentication.
Create the pop file (touch /etc/pam.d/pop) and add:
#%PAM-1.0
auth
required /lib/security/pam_pwdb.so shadow nullok
account required /lib/security/pam_pwdb.so
NOTE: This file is only require if youre intended to use POP service.