From 4745f628dabc621443a1dce1beac7226b62d3159 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Fri, 23 Aug 2024 06:02:11 +0100 Subject: Enable welcome plugin on mailbox creation --- ansible/roles/dovecot/templates/configs/10-mail.conf.j2 | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'ansible') diff --git a/ansible/roles/dovecot/templates/configs/10-mail.conf.j2 b/ansible/roles/dovecot/templates/configs/10-mail.conf.j2 index 8b25e8d..8002e17 100644 --- a/ansible/roles/dovecot/templates/configs/10-mail.conf.j2 +++ b/ansible/roles/dovecot/templates/configs/10-mail.conf.j2 @@ -219,7 +219,7 @@ mail_privileged_group = mail # Space separated list of plugins to load for all services. Plugins specific to # IMAP, LDA, etc. are added to this list in their own .conf files. -#mail_plugins = +mail_plugins = welcome ## ## Mailbox handling optimizations @@ -423,3 +423,16 @@ protocol !indexer-worker { # negate an exclusion (e.g. content-type=!foo/* content-type=foo/bar). # exclude-inlined - Exclude any Content-Disposition=inline MIME part. #mail_attachment_detection_options = + +plugin { + welcome_script = welcome %u + welcome_wait = no +} + +service welcome { + executable = script /etc/dovecot/welcome.sh + user = dovecot + unix_listener welcome { + user = vmail + } +} -- cgit v1.2.3