mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-09-01 08:27:09 +00:00
Document both methods for extending mail_plugins
- Added documentation for using extra.conf with protocol blocks - Clarified the recommended approach (extra files) - Explained advantages and considerations of each method Co-authored-by: DerLinkman <62480600+DerLinkman@users.noreply.github.com>
This commit is contained in:
co-authored by
DerLinkman
parent
c7d020f9ff
commit
6633da54d4
@@ -1,12 +1,23 @@
|
|||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# Please create a file "extra.conf" for persistent overrides to dovecot.conf
|
# Please create a file "extra.conf" for persistent overrides to dovecot.conf
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# To extend mail_plugins, you can either:
|
# To extend mail_plugins, you have two options:
|
||||||
# 1. Create/edit /etc/dovecot/mail_plugins_extra (for global plugins)
|
#
|
||||||
# 2. Create/edit /etc/dovecot/mail_plugins_imap_extra (for IMAP-specific plugins)
|
# Option 1 (Recommended): Use the extra plugin files directly
|
||||||
# 3. Create/edit /etc/dovecot/mail_plugins_lmtp_extra (for LMTP-specific plugins)
|
# Create/edit data/conf/dovecot/mail_plugins_extra (for global plugins)
|
||||||
# For example, to add the virtual plugin globally:
|
# Create/edit data/conf/dovecot/mail_plugins_imap_extra (for IMAP-specific plugins)
|
||||||
# echo -n ' virtual' > data/conf/dovecot/mail_plugins_extra
|
# Create/edit data/conf/dovecot/mail_plugins_lmtp_extra (for LMTP-specific plugins)
|
||||||
|
# Example to add the virtual plugin globally:
|
||||||
|
# echo -n ' virtual' > data/conf/dovecot/mail_plugins_extra
|
||||||
|
# docker-compose restart dovecot-mailcow
|
||||||
|
#
|
||||||
|
# Option 2: Override protocol sections in extra.conf
|
||||||
|
# Create data/conf/dovecot/extra.conf with protocol-specific overrides:
|
||||||
|
# protocol imap {
|
||||||
|
# mail_plugins = $mail_plugins virtual
|
||||||
|
# }
|
||||||
|
# Note: This requires redefining the entire protocol block and may override
|
||||||
|
# other settings. Option 1 is simpler and less prone to conflicts.
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# LDAP example:
|
# LDAP example:
|
||||||
#passdb {
|
#passdb {
|
||||||
|
|||||||
Reference in New Issue
Block a user