From 9ce0ae045f192c04d1a1bd711c4f3da23c05ffde Mon Sep 17 00:00:00 2001 From: Tunui Franken Date: Tue, 9 Jan 2024 16:28:39 +0100 Subject: [PATCH] Add sieve plugin to dovecot --- roles/mailserver_dovecot/tasks/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roles/mailserver_dovecot/tasks/main.yml b/roles/mailserver_dovecot/tasks/main.yml index 6ad9c60..df16fd3 100644 --- a/roles/mailserver_dovecot/tasks/main.yml +++ b/roles/mailserver_dovecot/tasks/main.yml @@ -117,3 +117,12 @@ owner: root group: root mode: "640" + +- name: Add sieve plugin + become: true + ansible.builtin.lineinfile: + path: /etc/dovecot/conf.d/20-lmtp.conf + regexp: '^(\s*)#?mail_plugins =.*' + backrefs: true + line: '\1mail_plugins = $mail_plugins sieve' + notify: Reload dovecot service