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