- Install stunnel
# yum install stunnel -y
2. Go to config file
# vi /etc/stunnel/stunnel.conf
For example to gmail SMTP you must try this:
client = yes
sslVersion = All
output = /etc/stunnel/stunnel.log
[ssmtp]
accept = 12345
connect = smtp.gmail.com:587
protocol = smtp
3. Start stunnel
# stunnel