Exim with SSL POP/SMTP/IMAP by using stunnel…
# cd /etc/stunnel [replace 'domain' with your domain] # openssl req -newkey rsa:1024 -keyout # cat mail.domain.com.tmp.pem > mail.domain.com.pem && echo “” >> vi /etc/stunnel/stunnel.conf # stunnel configuration file cert = /etc/stunnel/mail.domain.com.pem # Workaround for Eudora bug # Some debugging stuff # Some performance tunings # Service-level configuration [pop3s] [imaps] [smtps] # mkdir /var/run/stunnel # stunnel /etc/stunnel/stunnel.conf # vi /etc/rc.d/rc.local add this line stunnel /etc/stunnel/stunnel.conf
mail.domain.com.tmp.pem -nodes -x509 -days 9999 -out mail.domain.com.tmp2.pem
mail.domain.com.pem && cat mail.domain.com.tmp2.pem >> mail.domain.com.pem
# Copyright by Martin Vernooij – 2005
chroot = /var/run/stunnel
pid = /stunnel.pid
setuid = nobody
setgid = nobody
options = DONT_INSERT_EMPTY_FRAGMENTS
debug = 3
output = /var/log/stunnel.log
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
accept = 38.99.248.82:995
connect = 110
accept = 38.99.248.82:993
connect = 143
accept = 38.99.248.82:465
connect = 25
# chown nobody:nobody /var/run/stunnel








