One: Overview
The purpose of this article is to describe how to use open source software procmail and Qpopper to configure a POP3 server that can be used by a large number of users, with a focus on maintaining optimal server performance.
Two: Steps
Software Environment for Redhat Linux 7.1
1. Download the latest version of Procmail and Qpopper
Procmail The latest version is now 3.21 available from
http://www.procmail.org/procmail-3.21.tar.gz download.
Qpopper The latest version is now 4.0 available from
http://www.eudora.com/qpopper_general/Download
2. Compile Qpopper
Suppose the downloaded file is placed in the/root
#cd /root
#tar xvfz qpopper4.0.3.tar.gz
#cd qpopper4.0.3
#./configure --enable-hash-spool=2
--enable-log-login
--enable-server-mode
--enable-fast-update
--enable-shy
--enable-spool-dir=/usr/mail
--enable-specialauth
Comments:
--enable-specialauth Use/etc/shadow password Authentication
--enable-hash-spool=2 uses level two hash structure
--enable-spool-dir=/usr/mail The user mailbox file is/usr/mail/j/e/jephe
--enable-log-login Record of successful POP3 login into syslog
--enable-server-mode and--enable-fast-update
Do not allow Qpopper to copy mailbox files to temporary files when the user accesses the mailbox
Reduces disk I/O and enhances performance
--enable-shy do not display version information when responding to a server, enhancing security
#make
#make install
Edit File/etc/inetd.conf
Create the file POP3 under/ETC/XINETD.D and include the following:
service pop3
{
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/local/lib/popper
server_args = qpopper -F -S -s -c -R -T120
port = 110
}
Comments: