Write 'service pop3-login' and 'service pop3' (also post-login) again
regardless of the selected mail services - like for imap and sieve.
Dovecot only starts services of enabled protocols, so a protocol can
be switched on/off simply via 'yes'/'no' in the 'protocols' block of
dovecot.conf followed by a restart.
Only dovecot's submission service blocks are still removed
(submission is provided by postfix).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
'2<&1' duplicates fd 1 as an input descriptor. In bash it happens to
behave like '2>&1', but it is unusual and misleading. Use the common
form '2>&1' (cp, grep, pigeonhole configure/make/make install).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>
With mail_log loaded globally, doveadm also logs every action to stderr,
so cron jobs like "doveadm expunge -A mailbox Spam* savedbefore 30d"
produced one output line (and thus cron mail) per expunged message.
Scope the plugin to protocol imap/pop3/lmtp blocks in 95-mail-log.conf;
client actions and sieve filing are still logged, doveadm stays quiet
and only reports real errors.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Set auth_verbose_passwords to 'no'. 'plain' and 'yes' write attempted
passwords in cleartext to the log, including the real passwords of users
who only made a typo.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>