aboutsummaryrefslogtreecommitdiff
path: root/stunnel.conf
blob: 306f27fd9b6652de1481b7a2b7ff192e64828823 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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