diff --git a/stalwart/templates/configmap.yaml b/stalwart/templates/configmap.yaml index 50149f7..b46b191 100644 --- a/stalwart/templates/configmap.yaml +++ b/stalwart/templates/configmap.yaml @@ -84,6 +84,18 @@ data: user = "%{env:STALWART_ADMIN_USER}%" secret = "%{env:STALWART_ADMIN_PASSWORD}%" + [remote."smtp2go"] + address = "mail-eu.smtp2go.com" + port = 2525 + protocol = "smtp" + auth.username = "%{env:SMTP2GO_USER}%" + auth.secret = "%{env:SMTP2GO_PASSWORD}%" + tls.enable = true + tls.allow-invalid-certs = false + + [queue.outbound] + next-hop = ["smtp2go"] + [certificate."default"] cert = "%{file:/opt/stalwart/certs/tls.crt}%" private-key = "%{file:/opt/stalwart/certs/tls.key}%" diff --git a/stalwart/templates/deployment.yaml b/stalwart/templates/deployment.yaml index 22d4985..de9d0e5 100644 --- a/stalwart/templates/deployment.yaml +++ b/stalwart/templates/deployment.yaml @@ -33,6 +33,16 @@ spec: secretKeyRef: name: {{ include "stalwart.fullname" . }}-admin key: pw + - name: SMTP2GO_USER + valueFrom: + secretKeyRef: + name: {{ include "stalwart.fullname" . }}-smtp2go + key: user + - name: SMTP2GO_PASSWORD + valueFrom: + secretKeyRef: + name: {{ include "stalwart.fullname" . }}-smtp2go + key: pw livenessProbe: httpGet: path: /healthz/live