

Stunnel operates as a daemon service by default, so to start it off with this When the local POP3 service responds, it will be encrypted by StunnelĪnd transmitted back through port 995. (POP3s) will be decrypted and forwarded to the local service (POP3) on portġ10. Using this configuration, any encrypted connection coming in on port 995 # Configure our secured POP3 and IMAP services # change the UID and GID of the process for security reasons
#CONFIGURING STUNNEL FULL#
# Provide the full path to your certificate-key pair fileĬert = /usr/local/etc/stunnel/stunnel.pem # Sample stunnel configuration file for POP3/IMAP A simple one that would encrypt POP3 and IMAP You are only a simple configuration file away from using Stunnel to encrypt

Once Stunnel is installed and you have generated a certificate-key pair, Most e-mail clientsĪre SSL-enabled for POP3, IMAP and SMTP, most internet clients (web SSL-enabled clients exist and are readily available. Using Stunnel to Encrypt POP3/IMAP This method can be used to encrypt any similar service where I have decided to put the specific details outside the scope of this article,īut if you are interested in the actual details then have a look at theĤ. Just issue the following additional commands in the source directory: The easiest way of generating a certificate-key pair is by using a script

Installation procedure and others may leave it up to the user to generate one. Include a certificate-key pair, some may generate one as part of the If youĬompiled from sources then such a pair will have been created for youĪutomatically ( stunnel.pem). In order to use Stunnel we must first have a certificate-key pair.
#CONFIGURING STUNNEL INSTALL#
To compile and install Stunnel, download the source code tarball from here and Version (which at time of going to press was 4.05) can be downloaded Such, is freely available for download and installation.
#CONFIGURING STUNNEL LICENSE#
The source code is released under the GNU General Public License and, as Locate the package on your distribution's installation CDs or download Stunnel is generally included as a precompiled package with most commonĭistributions and is possibly already installed on your system. Your server and gain elevated privileges much easier than a local exploit To encrypt this data, anyone intercepting the transmission could now log into Logging into the machine locally or remotely via SSH. In the majority ofĬases, these usernames and passwords are the same ones as they would use for To authenticate themselves with a username and a password. One of Stunnel's most common uses is encrypting communications between POP or In thisĪrticle I will be dealing exclusively with the new version. Went through some major changes and the current version (4.x) has aĬompletely different architecture than previous versions. Wrapper that allows what are normally plain text and insecureĬommunications to be encrypted during transmission. Introduction Stunnel is an SSL encryption
