mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-01-22 18:04:44 +00:00
Address code review feedback
- Clarify host vs container paths in documentation - Use loop for creating extra plugin files to reduce duplication - Update example to show IMAP-specific plugin addition Co-authored-by: DerLinkman <62480600+DerLinkman@users.noreply.github.com>
This commit is contained in:
parent
6633da54d4
commit
0ae8e02ac0
2 changed files with 6 additions and 5 deletions
|
|
@ -123,9 +123,9 @@ echo -n 'quota sieve acl zlib mail_crypt mail_crypt_acl fts fts_flatcurve notify
|
|||
fi
|
||||
|
||||
# Create empty extra plugin files if they don't exist (can be populated via extra.conf or direct file)
|
||||
[[ ! -f /etc/dovecot/mail_plugins_extra ]] && touch /etc/dovecot/mail_plugins_extra
|
||||
[[ ! -f /etc/dovecot/mail_plugins_imap_extra ]] && touch /etc/dovecot/mail_plugins_imap_extra
|
||||
[[ ! -f /etc/dovecot/mail_plugins_lmtp_extra ]] && touch /etc/dovecot/mail_plugins_lmtp_extra
|
||||
for plugin_file in mail_plugins_extra mail_plugins_imap_extra mail_plugins_lmtp_extra; do
|
||||
[[ ! -f /etc/dovecot/${plugin_file} ]] && touch /etc/dovecot/${plugin_file}
|
||||
done
|
||||
|
||||
chmod 644 /etc/dovecot/mail_plugins /etc/dovecot/mail_plugins_imap /etc/dovecot/mail_plugins_lmtp /etc/dovecot/mail_plugins_extra /etc/dovecot/mail_plugins_imap_extra /etc/dovecot/mail_plugins_lmtp_extra /templates/quarantine.tpl
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,9 @@
|
|||
# Create/edit data/conf/dovecot/mail_plugins_extra (for global plugins)
|
||||
# Create/edit data/conf/dovecot/mail_plugins_imap_extra (for IMAP-specific plugins)
|
||||
# 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
|
||||
# Note: These paths are on the host. Inside the container they are /etc/dovecot/mail_plugins_*
|
||||
# Example to add the virtual plugin for IMAP:
|
||||
# echo -n ' virtual' > data/conf/dovecot/mail_plugins_imap_extra
|
||||
# docker-compose restart dovecot-mailcow
|
||||
#
|
||||
# Option 2: Override protocol sections in extra.conf
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue