Add commented sections to enable incoming TLS
authorJay Pfaffman <pfaffman@gmail.com>
Fri, 12 Apr 2019 16:04:24 +0000 (09:04 -0700)
committerRafael dos Santos Silva <xfalcox@gmail.com>
Thu, 22 Aug 2019 23:07:40 +0000 (20:07 -0300)
Use Let's Encrypt certs from app to enable incoming TLS for mail-receiver.

samples/mail-receiver.yml

index 52069b415732e9229f89dcd4007dd8b59da2cf52..f18c26c2b39c4408a467fe14eb261231ad51dd79 100644 (file)
@@ -19,6 +19,11 @@ env:
   ## Where e-mail to your forum should be sent.  In general, it's perfectly fine
   ## to use the same domain as the forum itself here.
   MAIL_DOMAIN: discourse.example.com
+# uncomment these (and the volume below!) to support TLS 
+#  POSTCONF_smtpd_tls_key_file:  /letsencrypt/discourse.example.com/prop.ltcmp.net.key
+#  POSTCONF_smtpd_tls_cert_file:  /letsencrypt/discourse.example.com/fullchain.cer
+#  POSTCONF_smtpd_tls_security_level: may
+
 
   ## The URL of the mail processing endpoint of your Discourse forum.
   ## This is simply your forum's base URL, with `/admin/email/handle_mail`
@@ -38,3 +43,9 @@ volumes:
   - volume:
       host: /var/discourse/shared/mail-receiver/postfix-spool
       guest: /var/spool/postfix
+# uncomment to support TLS
+#  - volume:
+#      host: /var/discourse/shared/standalone/letsencrypt
+#      guest: /letsencrypt
+