'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>
Since Debian 13 the package clamav-freshclam also ships and enables
clamav-freshclam-once.timer and clamav-freshclam-once.service. Together
with the freshclam daemon (clamav-freshclam.service) both try to lock
/var/log/clamav/freshclam.log at boot and one of them fails.
Disable the 'once' units right after stopping the daemon and before the
initial freshclam run, so only the daemon keeps the databases current.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
master.cf submission/smtps are always rewritten to
content_filter=amavisfeed:[127.0.0.1]:10026, but amavis only listened on
10026 if Cyrus SASL was enabled. Hosts authenticating via Dovecot SASL
(answer 'no') got [10024, 10029], so submitted mail was deferred with
"connect to 127.0.0.1:10026: Connection refused".
Now 10026 (ORIGINATING) is opened if SASL is enabled or master.cf contains
submission/smtps; 10029 (VIRUSONLY) is opened as before if 10026 is not
needed, or if main.cf content_filter points to 10029 (relay/sympa hosts).
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>
ZEN answers with 127.0.0.x, so the previous range 127.0.1.[2..99] (used by
DBL) never matched and the filter was without effect. Use 127.0.0.[2..11].
A range is still required: if Spamhaus blocks our queries, it answers with
error codes like 127.255.255.254, which must not reject mail.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Set PublicSuffixList and UserID explicitly instead of relying on the package config.
- Do not use HistoryFile (no aggregate reports); comment out an active setting.
- Set SPFIgnoreResults to true.
- Update comment in ignore.hosts to reflect the current milter setup.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Never comment out a line that already has the wanted value, even if a
differing setting of the same variable precedes it.
- update_postfwd_defaults.sh: leave postfwd alone if nothing changed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Ship postfwd.cf and list files in files/postfwd; used by install_postfwd.sh
and install_postfix_advanced.sh (lists only if missing, cf with backup).
- Add update_postfwd_defaults.sh.
- install_amavis.sh: disable smtpd_end_of_data_restrictions on localhost:10025.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>