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>