diff options
author | 2024-08-23 06:02:11 +0100 | |
---|---|---|
committer | 2024-08-23 16:52:21 +0100 | |
commit | 4745f628dabc621443a1dce1beac7226b62d3159 (patch) | |
tree | c789b217fda41fda1fbbbd036e15566e26128fc2 | |
parent | Copy welcome script in Dovecot tasks (diff) |
Enable welcome plugin on mailbox creation
-rw-r--r-- | ansible/roles/dovecot/templates/configs/10-mail.conf.j2 | 15 |
1 files changed, 14 insertions, 1 deletions
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 + } +} |