Securing Communication
Popular MUAs included with Community Enterprise Linux, such as Ximian Evolution and mutt
offer SSL-encrypted email sessions.
Like any other service that flows over a network unencrypted, important email information, such as usernames, passwords, and entire messages, may be intercepted and viewed by users on the network. Additionally, since the standard POP and IMAP protocols pass authentication information unencrypted, it is possible for an attacker to gain access to user accounts by collecting usernames and passwords as they are passed over the network.
Most Linux MUAs designed to check email on remote servers support SSL encryption. To use SSL when retrieving email, it must be enabled on both the email client and server.
SSL is easy to enable on the client-side, often done with the click of a button in the MUA's configuration window or via an option in the MUA's configuration file. Secure IMAP and POP have known port numbers (993 and 995, respectively) that the MUA uses to authenticate and download messages. Offering SSL encryption to IMAP and POP users on the email server is a simple matter.
First, create an SSL certificate. This can be done two ways: by applying to a Certificate Authority (CA) for an SSL certificate or by creating a self-signed certificate.
Self-signed certificates should be used for testing purposes only. Any server used in a production environment should use an SSL certificate granted by a CA.
To create a self-signed SSL certificate for IMAP, change to the Answer all of the questions to complete the process.
To create a self-signed SSL certificate for POP, change to the Again, answer all of the questions to complete the process.
Please be sure to remove the default Once finished, execute the Alternatively, the The To create a self-signed SSL certificate, change to the Again, answer all of the questions to complete the process.
Once the certificate is generated, it is possible to use the Once this command is issued, it is possible to open an IMAP email client and connect to the email server using SSL encryption.
To start the For more information about how to use Secure Email Clients
Securing Email Client Communications
/etc/pki/tls/certs/
directory and type the following commands as root:
rm -f cyrus-imapd.pem make cyrus-imapd.pem
/etc/pki/tls/certs/
directory, and type the following commands as root:
rm -f ipop3d.pem make ipop3d.pem
imapd.pem
and ipop3d.pem
files before issuing each make
command.
/sbin/service xinetd restart
command to restart the xinetd
daemon which controls imapd
and ipop3d
.
stunnel
command can be used as an SSL encryption wrapper around the standard, non-secure daemons, imapd
or pop3d
.
stunnel
program uses external OpenSSL libraries included with Community Enterprise Linux to provide strong cryptography and protect the connections. It is best to apply to a CA to obtain an SSL certificate, but it is also possible to create a self-signed certificate.
/etc/pki/tls/certs/
directory, and type the following command:
make stunnel.pem
stunnel
command to start the imapd
mail daemon using the following command:
/usr/sbin/stunnel -d 993 -l /usr/sbin/imapd imapd
pop3d
using the stunnel
command, type the following command:
/usr/sbin/stunnel -d 995 -l /usr/sbin/pop3d pop3d
stunnel
, read the stunnel
man page or refer to the documents in the /usr/share/doc/stunnel-
/ directory, where <version-number>
<version-number>
is the version number for stunnel
.