From 259c4aa83f97ca0ce49f63e67daa12860135b7d1 Mon Sep 17 00:00:00 2001 From: Eric Meehan Date: Sun, 25 Jan 2026 11:30:35 -0500 Subject: [PATCH] Closes #44 --- tasks/mail.yaml | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/tasks/mail.yaml b/tasks/mail.yaml index 2402eef..2f7c9d1 100644 --- a/tasks/mail.yaml +++ b/tasks/mail.yaml @@ -90,6 +90,38 @@ requests: storage: 2Ti +- name: Create a ConfigMap for encryption + k8s: + state: present + definition: + apiVersion: v1 + kind: ConfigMap + metadata: + name: certs + namespace: mail + data: + privkey.pem: "{{ mail_encryption_privkey }}" + pubkey.pem: "{{ mail_encryption_pubkey }}" + +- name: Create a ConfigMap for Dovecot + k8s: + state: present + definition: + apiVersion: v1 + kind: ConfigMap + metadata: + name: dovecot + namespace: mail + data: + 10-encryption.conf: | + # Enables mail_crypt for all services (pop3, pop3, etc) + mail_plugins = $mail_plugins mail_crypt + plugin { + mail_crypt_global_private_key =