install_update_dovecot-2.4.sh: make provided mail services selectable
- New config parameter 'mail_protocols' (blank separated list of
imap, pop3, sieve; defaults to "imap pop3 sieve"). lmtp is always
enabled.
- New selection menu at install/update time:
[1] all common mail services (imap pop3 sieve)
[2] all common except pop3 (imap sieve)
[3] other (follow-up input, preset with an individual list
from the configuration file)
The line matching the configuration file is highlighted.
- 'protocols' block is built from the selection; not selected
protocols and dovecot's submission service are set to 'no'.
- Dovecot's submission service is no longer configured: submission
(587/465) is provided by postfix. 'service submission-login' and
'service submission' blocks are removed from 10-master.conf.
- 'service pop3-login' / 'service pop3' are only written if pop3 is
selected, otherwise removed.
- Summary lists each protocol with its state; listener addresses are
only shown for enabled protocols. 'mail_protocols' is written to the
environment file.
- Helper functions call 'gawk' explicitly (they need GNU awk
extensions like '\s'; mawk silently fails). gawk is installed for
update and new installation, abort if that fails.
- Fix apt-get calls: '2&>1' -> '2>&1', add '-y', append to log.
- conf/install_update_dovecot.conf.sample: document 'mail_protocols'.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1278bfcfd0
commit
38c7ce8f6a
2 files changed
+570
-86
No files matched your search
@@ -69,6 +69,42 @@ ipv6=""
|
||||
#postfix_main_cf="/etc/postfix/main.cf"
|
||||
|
||||
|
||||
# ---
|
||||
# - Mail services (dovecot protocols)
|
||||
# ---
|
||||
|
||||
# - mail_protocols
|
||||
# -
|
||||
# - Blank separated list of the mail services (dovecot protocols) to provide.
|
||||
# -
|
||||
# - Possible values:
|
||||
# -
|
||||
# - imap - IMAP (port 143) and IMAPS (port 993)
|
||||
# - pop3 - POP3 (port 110) and POP3S (port 995)
|
||||
# - sieve - ManageSieve (port 4190), e.g. used by the roundcube
|
||||
# - 'managesieve' plugin (filter rules, vacation, ..)
|
||||
# -
|
||||
# - Note:
|
||||
# - 'lmtp' is not part of this list. LMTP is required for delivering mail
|
||||
# - from postfix into the mailboxes and is therefore always enabled.
|
||||
# -
|
||||
# - 'submission' is not part of this list either. In this mailsystem
|
||||
# - submission (587) and submissions (465) are provided by postfix, so
|
||||
# - dovecot's submission service is always disabled.
|
||||
# -
|
||||
# - The value given here determines which line is highlighted (and taken by
|
||||
# - pressing <RETURN>) in the selection menu of the install script:
|
||||
# -
|
||||
# - "imap pop3 sieve" --> [1] all common mail services
|
||||
# - "imap sieve" --> [2] all common mail services except pop3
|
||||
# - anything else --> [3] other (the value is offered as default for
|
||||
# - the following input)
|
||||
# -
|
||||
# - Defaults to "imap pop3 sieve"
|
||||
# -
|
||||
#mail_protocols="imap pop3 sieve"
|
||||
|
||||
|
||||
# ---
|
||||
# - Listener configuration
|
||||
# ---
|
||||
|
||||
Reference in new issue
Block a user