From 58eaa0043c512b17b509d1bf04ae56fb43c608a4 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 6 Jul 2022 13:41:36 +0200 Subject: ch-imap-proxy: add stunnel config for getmail --- chaos-at-home/ch-imap-proxy.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'chaos-at-home') 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 -- cgit v1.2.3