Commit Graph
551 Commits
Author SHA1 Message Date
chrisandClaude Opus 5.5 38c7ce8f6a 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>
2026-11-24 15:12:45 +01:00
chrisandClaude Opus 5.5 1278bfcfd0 install_amavis.sh: disable clamav-freshclam-once timer/service.
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>
2026-11-22 01:47:20 +01:00
chris f0e6ff2506 fix: update systemd support check to use logical OR 2026-11-19 11:17:03 +01:00
chrisandClaude Opus 5.5 5429768e28 install_amavis.sh: open amavis port 10026 whenever submission/smtps use it
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>
2026-11-13 00:45:13 +01:00
chris 787749f4d6 update delivery-main.cf.in: adjust size limits and alias maps for consistency with Postfix instance 2026-11-11 16:34:13 +01:00
chrisandClaude Opus 5.5 fa96599077 install_update_dovecot-2.4: enable mail_log only for imap, pop3 and lmtp
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>
2026-11-11 11:01:51 +01:00
chris 686f291b68 install_update_dovecot: add mail_log plugin configuration and logging options 2026-11-11 01:19:34 +01:00
chrisandClaude Opus 5.5 564a5254ad srs delivery template: do not set config_directory in main.cf
The instance gets MAIL_CONFIG=/etc/postfix-srs/delivery from
postfix@srs-delivery.service; setting it again makes postconf warn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 15:35:48 +01:00
chris 877e8996b0 install_roundcube.sh: add support for roundcubemail 1.7.x 2026-11-09 18:07:05 +01:00
chris 4b1af1419e Merge branch 'master' of https://git.oopen.de/install/mailsystem 2026-11-09 15:14:08 +01:00
chris 3bd732b5b2 install_roundcube.sh: fix errors in installimg aspell pakcages. 2026-11-09 15:13:38 +01:00
chrisandClaude Opus 5.5 15aca2f34b install_update_dovecot: do not log attempted passwords
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>
2026-11-08 14:55:13 +01:00
chrisandClaude Opus 5.5 4f33f3d426 install_postfix_advanced.sh: fix return code range of zen.spamhaus.org
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>
2026-11-08 13:41:45 +01:00
chrisandClaude Opus 5.5 ad4018eca3 install_opendmarc.sh: set PublicSuffixList/UserID, drop HistoryFile, SPFIgnoreResults true
- 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>
2026-11-08 12:26:44 +01:00
chrisandClaude Opus 5.5 95c8ebbe0e postfwd defaults: keep lines with the wanted value, no reload if unchanged
- 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>
2026-11-08 11:10:49 +01:00
chrisandClaude Opus 5.5 39909a5b30 postfwd: install config from files/postfwd, idempotent /etc/default/postfwd handling
- 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>
2026-11-08 10:53:21 +01:00
Christoph 450b04134d install_postfix_advanced.sh: set 'LISTEN_ON_ADDITIONAL_RELAY_PORT' to false if not installed as REALY_ONLY system. 2026-11-05 15:32:18 +01:00
chris ff7ebb59f5 install_postfix_base.sh: change value of 'inet_interfaces' to 'loopback-only'. 2026-10-28 11:40:57 +01:00
chris 4538071f28 Improve SRS installer preflight output and readiness summary 2026-10-25 23:48:58 +01:00
chris efaa58fcf9 Add selective Postfix SRS installation and management 2026-10-25 22:20:12 +01:00
chris e732e6d9d8 Archive remaining SRS development drafts from a.mx 2026-10-20 14:52:48 +02:00
chris 39b933b798 Archive discontinued selective SRS implementation 2026-10-20 14:41:48 +02:00
chris 3af1c29a16 Add offline SPF regression tests for SRS DNS preflight 2026-10-20 12:36:45 +02:00
chris 2b97fcd797 Improve SRS DNS preflight output and SPF status reporting 2026-10-20 12:29:17 +02:00
chris b9adecf3d6 Suggest hostname-based SRS domain for first installation 2026-10-20 12:03:11 +02:00
chris 53b92f7867 Extend selective SRS management and add installer tests 2026-10-20 11:20:38 +02:00
chris 3a7248191c Add SRS implementation - scripts and configuration files. 2026-10-18 13:13:20 +02:00
chris 52d9813229 Add SRS activation/deactivation scripts and shared config/helper 2026-10-17 18:11:57 +02:00
chris c10529685a Add SRS activation/deactivation scripts and shared config/helper 2026-10-17 18:09:00 +02:00
chris ade941486d README-SRS.md: Explanation of what the abbreviation SRS stands for. 2026-10-17 13:23:07 +02:00
chris 3e525c4bde Add Readme files for Sender Rewriting Scheme (SRS). 2026-10-17 13:20:39 +02:00
chris 26aded391c update_clamav-unofficial-sigs.sh: change default SI signatur. 2026-09-20 16:12:45 +02:00
chris b9aaeea84e install_amavis.conf.sample: change _SI_AUTHORISATION_SIGNATURE .. 2026-09-20 16:00:53 +02:00
chris 6e6ebc07a4 Amavis install / ClamAV unofficial update: adjust '_SI_AUTHORISATION_SIGNATURE'. 2026-09-04 16:14:53 +02:00
chris 3fbb5da5de update_clamav-unofficial-sigs.sh: Set up the script so that it can resume if cloning the Git repository fails. 2026-09-04 09:45:30 +02:00
chris b73fa92d43 install_postfix_base.sh,install_postfix_advanced.sh: add libsasl2-modules-db to the reqired debian packages. 2026-07-17 14:58:44 +02:00
chris bb8cd0c2cc install_roundcube.sh: change cronjob for cleaning up db. 2026-07-11 02:00:24 +02:00
chris 2d288c6705 Merge branch 'master' of https://git.oopen.de/install/mailsystem 2026-07-04 00:34:59 +02:00
chris a96c92524e upgrade_roundcube.sh: the script is no longer paused as usual (for example, to disable plugins). 2026-07-04 00:34:31 +02:00
chris dd105ad5d9 Add rebuild_roundcube_config.php for regenerating Roundcube config 2026-07-03 23:12:53 +02:00
chris 7fb1ac4511 Rename ol dovecot install/upgrade script. 2026-07-03 18:45:14 +02:00
chris cb3079a7ae migrate_markasjunk2_to_markasjunk.sh: migrate from extern deprecated markasjunk plugin to the core one. 2026-07-03 17:44:08 +02:00
chris 5a7e79d8c4 upgrade_roundcube.sh: Allow upgrading to the even installed version. 2026-07-03 17:42:59 +02:00
chris d60cb62d8f upgrade_roundcube.sh: some fixes.. 2026-07-03 17:08:56 +02:00
chris 5b9e632fe4 upgrade_roundcube.sh: make upügrade script ready for newer composer and newer roundcube installation. 2026-07-03 12:26:59 +02:00
chris 7be12b675c Add skript 'update_quota2_mariadb.sh'. 2026-07-02 03:19:09 +02:00
chris d385627251 Merge branch 'master' of https://git.oopen.de/install/mailsystem 2026-07-02 02:23:59 +02:00
chris 17e858d51b install_update_dovecot-2.4.sh: enhance quota_clone plugin support for MySQL and update documentation 2026-07-02 02:11:55 +02:00
chris 8df8b715c7 Add script 'update_quota2_psql.sh'. 2026-07-02 01:20:25 +02:00
chris b90c692af1 install_postfixadmin.sh: create composer.lock bevor installing/updating postfixadmin. 2026-07-02 01:19:38 +02:00