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 =