Browse Source

Add files via upload

MoeClub 3 years ago
parent
commit
b24c960c5d
1 changed files with 39 additions and 0 deletions
  1. 39 0
      stunnel/yandex-mail.conf

+ 39 - 0
stunnel/yandex-mail.conf

@@ -0,0 +1,39 @@
+; /etc/stunnel/mail-yandex.conf
+
+
+;foreground = yes
+;debug = debug
+output = /dev/null
+pid =
+
+setuid = stunnel4
+setgid = stunnel4
+
+
+; Some performance tunings
+socket = l:TCP_NODELAY=1
+socket = r:TCP_NODELAY=1
+
+[mail_in_imap]
+cert = /etc/stunnel/server.cert.pem
+key = /etc/stunnel/server.key.pem
+accept  = 0.0.0.0:993
+connect = 127.0.0.1:10993
+
+[mail_in_smtp]
+cert = /etc/stunnel/server.cert.pem
+key = /etc/stunnel/server.key.pem
+accept  = 0.0.0.0:465
+connect = 127.0.0.1:10465
+
+[mail_out_imap]
+client = yes
+verify = 0
+accept  = 127.0.0.1:10993
+connect = imap.yandex.com:993
+
+[mail_out_smtp]
+client = yes
+verify = 0
+accept  = 127.0.0.1:10465
+connect = smtp.yandex.com:465