If you mean mail_plugins = $mail_plugins welcome – mail_plugins is set in dovecot.conf: mail_plugins = </etc/dovecot/mail_plugins
If I try to add the welcome plugin in the extra.conf I get the warning:
dovecot-mailcow-1 | doveconf: Warning: /etc/dovecot/extra.conf line 1: Global setting mail_plugins won't change the setting inside an earlier filter at /etc/dovecot/dovecot.conf line 183 (if this is intentional, avoid this warning by moving the global setting before /etc/dovecot/dovecot.conf line 183)
that’s why I use a hook script to add “welcome” to /etc/dovecot/mail_plugins.
data/hooks/dovecot/enable_welcome:
#!/bin/bash
echo -n ' welcome' >> /etc/dovecot/mail_plugins
Now, after I tested it again, I saw that I have to add “welcome” to /etc/dovecot/mail_plugins_imap (set in line 183…)
and tadaa, welcome plugin tries to start my script, which I have to fix, but that is another problem…
dovecot-mailcow-1 | Mar 5 20:59:34 caa3c659b899 dovecot: welcome: Error: /usr/local/bin/welcome.sh: line 26: echo: write error: Broken pipe
dovecot-mailcow-1 | Mar 5 20:59:34 caa3c659b899 dovecot: welcome: Fatal: master: service(welcome): child 193 returned error 1
I think the problem solved, thank you 🙂