aboutsummaryrefslogtreecommitdiff
path: root/stunnel.conf
diff options
context:
space:
mode:
Diffstat (limited to 'stunnel.conf')
-rw-r--r--stunnel.conf38
1 files changed, 38 insertions, 0 deletions
diff --git a/stunnel.conf b/stunnel.conf
new file mode 100644
index 0000000..306f27f
--- /dev/null
+++ b/stunnel.conf
@@ -0,0 +1,38 @@
+# Certificate/key is needed in server mode and optional in client mode
+cert = /etc/stunnel/stunnel.pem
+key = /etc/stunnel/stunnel.pem
+
+# Some security enhancements for UNIX systems - comment them out on Win32
+# chroot = /chroot/stunnel/
+setuid = stunnel
+setgid = stunnel
+# PID is created inside chroot jail
+pid = /run/stunnel/stunnel.pid
+
+# Some performance tunings
+socket = l:TCP_NODELAY=1
+socket = r:TCP_NODELAY=1
+#compression = rle
+
+# Workaround for Eudora bug
+options = DONT_INSERT_EMPTY_FRAGMENTS
+
+# Some debugging stuff useful for troubleshooting
+#debug = 7
+#output = stunnel.log
+
+# Use it for client mode
+client = yes
+
+# Service-level configuration
+
+[imap]
+accept = 143
+connect = IMAP.EXAMPLE.ORG:IMAP_PORT
+
+[smtp]
+accept = 25
+connect = SMTP.EXAMPLE.ORG:SMTP_PORT
+protocol = smtp
+protocolUsername = SMTP_USERNAME
+protocolPassword = SMTP_PASSWORD