summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chaos-at-home/ch-imap-proxy.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/chaos-at-home/ch-imap-proxy.yml b/chaos-at-home/ch-imap-proxy.yml
index fd503a70..fa23e9bb 100644
--- a/chaos-at-home/ch-imap-proxy.yml
+++ b/chaos-at-home/ch-imap-proxy.yml
@@ -24,6 +24,7 @@
copy:
dest: /etc/stunnel/imap.conf
content: |
+ pid = /var/run/stunnel-imap.pid
cert = /var/lib/acme/live/imap.chaos-at-home.org/fullchain
key = /var/lib/acme/live/imap.chaos-at-home.org/privkey
@@ -45,6 +46,37 @@
connect = 127.0.0.1:143
notify: restart stunnel4
+ - name: generate stunnel config for getmail
+ copy:
+ dest: /etc/stunnel/getmail.conf
+ content: |
+ pid = /var/run/stunnel-getmail.pid
+
+ [gmail-pop3]
+ client = yes
+ accept = 192.168.32.9:110
+ connect = pop.gmail.com:995
+ verifyChain = yes
+ CApath = /etc/ssl/certs
+ checkHost = pop.gmail.com
+
+ [gmx-pop3]
+ client = yes
+ accept = 192.168.32.9:111
+ connect = pop.gmx.at:995
+ verifyChain = yes
+ CApath = /etc/ssl/certs
+ checkHost = mail.gmx.net
+
+ [elevate-pop3]
+ client = yes
+ accept = 192.168.32.9:112
+ connect = mail.elevate.at:995
+ verifyChain = yes
+ CApath = /etc/ssl/certs
+ checkHost = mail.elevate.at
+ notify: restart stunnel4
+
- name: install systemd service unit for service-ip
copy:
dest: /etc/systemd/system/imap-service-ip.service