From 5486148d84d216b2c52d2a41102e394a9f7bb448 Mon Sep 17 00:00:00 2001 From: Hinrikus Wolf <mail@hinrikus-wolf.de> Date: Thu, 25 Jan 2018 21:07:14 +0100 Subject: [PATCH] dovecot: activate sieve plugin --- dovecot/tasks/main.yml | 3 ++- dovecot/templates/conf.d/20-lmtp.conf.j2 | 26 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 dovecot/templates/conf.d/20-lmtp.conf.j2 diff --git a/dovecot/tasks/main.yml b/dovecot/tasks/main.yml index d4f3602..8941ca9 100644 --- a/dovecot/tasks/main.yml +++ b/dovecot/tasks/main.yml @@ -20,7 +20,8 @@ - { src: 'templates/conf.d/10-mail.conf.j2', dest: '/etc/dovecot/conf.d/10-mail.conf' } - { src: 'templates/conf.d/10-master.conf.j2', dest: '/etc/dovecot/conf.d/10-master.conf' } - { src: 'templates/conf.d/10-ssl.conf.j2', dest: '/etc/dovecot/conf.d/10-ssl.conf' } - - { src: 'templates/conf.d/20-managesieve.conf.j2', dest: '/etc/dovecot/conf.d/10-managesieve.conf' } + - { src: 'templates/conf.d/20-managesieve.conf.j2', dest: '/etc/dovecot/conf.d/20-managesieve.conf' } + - { src: 'templates/conf.d/20-lmtp.conf.j2', dest: '/etc/dovecot/conf.d/20-lmtp.conf' } - { src: 'templates/conf.d/90-sieve.conf.j2', dest: '/etc/dovecot/conf.d/90-sieve.conf' } - { src: 'templates/conf.d/auth-passwdfile.conf.ext.j2', dest: '/etc/dovecot/conf.d/auth-passwdfile.conf.ext' } notify: diff --git a/dovecot/templates/conf.d/20-lmtp.conf.j2 b/dovecot/templates/conf.d/20-lmtp.conf.j2 new file mode 100644 index 0000000..6a691ec --- /dev/null +++ b/dovecot/templates/conf.d/20-lmtp.conf.j2 @@ -0,0 +1,26 @@ +## +## LMTP specific settings +## + +# Support proxying to other LMTP/SMTP servers by performing passdb lookups. +#lmtp_proxy = no + +# When recipient address includes the detail (e.g. user+detail), try to save +# the mail to the detail mailbox. See also recipient_delimiter and +# lda_mailbox_autocreate settings. +#lmtp_save_to_detail_mailbox = no + +# Verify quota before replying to RCPT TO. This adds a small overhead. +#lmtp_rcpt_check_quota = no + +# Which recipient address to use for Delivered-To: header and Received: +# header. The default is "final", which is the same as the one given to +# RCPT TO command. "original" uses the address given in RCPT TO's ORCPT +# parameter, "none" uses nothing. Note that "none" is currently always used +# when a mail has multiple recipients. +#lmtp_hdr_delivery_address = final + +protocol lmtp { + # Space separated list of plugins to load (default is global mail_plugins). + mail_plugins = $mail_plugins sieve +} -- GitLab