From 7b58e235306439748ecbbbd7192d069cb6a6155c Mon Sep 17 00:00:00 2001
From: Janne Mareike Koschinski <janne@kuschku.de>
Date: Sun, 1 May 2022 02:36:02 +0200
Subject: [PATCH] feat: add mta-sts to autodiscover ingress

---
 templates/ingress-autodiscover.yaml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/templates/ingress-autodiscover.yaml b/templates/ingress-autodiscover.yaml
index a808aa4..a5df63c 100644
--- a/templates/ingress-autodiscover.yaml
+++ b/templates/ingress-autodiscover.yaml
@@ -42,6 +42,16 @@ spec:
                   name: http
             pathType: Prefix
     {{ end }}
+    - host: mta-sts.{{ .Values.config.domain }}
+      http:
+        paths:
+          - path: "/.well-known/mta-sts.txt"
+            backend:
+              service:
+                name: {{ include "mailu-helm.fullname" $ }}-autodiscover
+                port:
+                  name: http
+            pathType: Prefix
     - host: "autodiscover.{{ .Values.config.domain }}"
       http:
         paths:
-- 
GitLab