842 Commits

Author SHA1 Message Date
Georg Lauterbach
f3a46e51a6
chore: revert change not specific to the migration
Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
2026-02-08 18:37:36 +01:00
Georg Lauterbach
681ea11f07
chore: apply feedback from @polarathene
ref: https://github.com/docker-mailserver/docker-mailserver/pull/4536#discussion_r2259280851

Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
2026-02-08 18:30:29 +01:00
Brennan Kinney
c9947973f8
Apply suggestions from code review 2026-02-08 18:26:53 +01:00
Georg Lauterbach
0911547306
chore: Dovecot: adjust main auth-passwd.inc file
Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
2026-02-08 18:26:53 +01:00
Georg Lauterbach
11adc60eb0
fix: Dovecot: remove verbose_ssl
Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
2026-02-08 18:26:53 +01:00
Georg Lauterbach
944d4d0758
fix: Dovecot: split mail_location
Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
2026-02-08 18:26:53 +01:00
Georg Lauterbach
5c7a40e385
fix: Dovecot: adjust mail_plugins
Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
2026-02-08 18:26:53 +01:00
Georg Lauterbach
dd8ae2241a
fix: Dovecot: ssl config
Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
2026-02-08 18:26:53 +01:00
Georg Lauterbach
5013d0cca7
chore: Dovecot: disable_plaintext_auth => auth_allow_cleartext
Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
2026-02-08 18:26:53 +01:00
Georg Lauterbach
5a8292f1c7
fix: remove deprecated configuration from Postfix
Error as posted by Postfix:

```txt
postconf: warning: /etc/postfix/main.cf: support for parameter "smtpd_tls_dh1024_param_file" will be removed; instead, do not specify (leave at default)
```

Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
2026-02-08 18:26:53 +01:00
Georg Lauterbach
d312531563
chore: do not use Rspamd community repo as of now
Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
2026-02-08 18:26:52 +01:00
Georg Lauterbach
e18f4dec89
fix: set proper default for DOCECOT_COMMUNITY_REPO in packages.sh
Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
2026-02-08 18:21:42 +01:00
Georg Lauterbach
665a119345
fix: update package name for LZ4 compat package
Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
2026-02-08 18:21:42 +01:00
Georg Lauterbach
fdd038c164
fix: move early instructions into packages.sh
This is required because `adduser` is not available by default on Debian
13.

Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
2026-02-08 18:21:42 +01:00
Georg Lauterbach
ec0d014204
chore: update VERSION_CODENAME in packages.sh
Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
2026-02-08 18:21:42 +01:00
Cristian SPIRIDON
066d314264
fix: Reload the rspamd service instead of restarting it (#4632)
Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
Co-authored-by: Cristian Spiridon <scristian71@gmail.com>
2026-01-12 09:08:59 +13:00
FDHoho007
17111a0ea2
fix: LDAP - Enable check-for-changes.sh support (#4627)
* fix: Enable change detection support for `ACCOUNT_PROVISIONER=LDAP`
* fix(test/rspamd_full): Explicitly wait for the `rspamd_proxy` port to be available before testing
2025-12-27 12:15:28 +13:00
Brennan Kinney
e5185e0e84
fix: accounts.sh - Support first valid local account (#4581)
- Ensure catch-all alias entries (eg: `@example.test`) are also skipped. Adding a dummy account for catch-all will not match a `quota-status` query to Dovecot by Postfix for a recipient.
- When there are multiple addresses provided, they will now be iterated through by the `,` delimiter, instead of as a single value that fails. This way the first valid aliased address to a local Dovecot mailbox account will now be used for the dummy alias account.
- The common logic for extracting the quota user attribute is now split out to a common function call.
2025-10-08 19:58:49 +00:00
Brennan Kinney
5e5e005162
chore: Revise inline docs for Fetchmail (#4587) 2025-10-08 10:33:26 +13:00
Lars K.W. Gohlke
9eb3fa73e5
fix: Prevent logs leaking into config files (FETCHMAIL_PARALLEL=1) (#4586) 2025-10-06 20:25:13 +02:00
lalalala
f343f7d960
fix RSPAMD_LEARN with mbsync (#4569)
Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
2025-09-11 19:03:01 +02:00
Georg Lauterbach
0cf26f0100
fix: Postfix: disable_dns_lookups => smtp_dns_support_level (#4568) 2025-09-10 09:17:40 +02:00
dano19
e78801b5f2
Delete user without prompt but keep mailbox data (#4565) 2025-09-08 22:46:49 +02:00
Georg Lauterbach
c1da4265d3
chore: apt - Migrate format from .list to .sources (DEB822) (#4556)
* chore: switch to `.sources` layout from `.list`

Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>

* chore: update CHANGELOG

Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>

* Apply suggestions from code review

---------

Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
2025-08-18 12:45:20 +12:00
Georg Lauterbach
9e4749e718
chore: update externally installed software (#4557) 2025-08-17 13:20:21 +02:00
Georg Lauterbach
da61eb21a3
chore: Remove Pyzor + Razor packages (#4548) 2025-08-17 11:00:01 +02:00
Jam Balaya
c1a5eabc94
chore: fix various typos across codebase (#4552)
Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
2025-08-12 21:55:53 +00:00
Georg Lauterbach
e448b5e53e
chore: disable F2B postfix-sasl jail (#4535)
Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
2025-08-03 10:37:41 +02:00
Ivan Filonenko
fcd9909841
fix(fail2ban): configure logrotate only when Fail2Ban is enabled (#4523)
Co-authored-by: Casper <casperklein@users.noreply.github.com>
2025-07-11 17:02:42 +02:00
Andreas Perhab
337ae071d2
open-dkim: use numerical uid and gid for chown (#4517)
Co-authored-by: Casper <casperklein@users.noreply.github.com>
2025-07-10 22:14:39 +00:00
Brennan Kinney
8fa6e6deba
chore: Avoid logging a warning when LOG_LEVEL is unset (#4497) 2025-06-02 17:01:00 +12:00
Brennan Kinney
ea03808c8f
fix: packages.sh - Remove Postfix hostname workaround (#4493) 2025-05-27 23:03:10 +02:00
Brennan Kinney
f6381d3bb0
fix: Ensure DMS config volume can be accessed by non-root users (#4487) 2025-05-23 16:05:20 +12:00
Brennan Kinney
a0e0013260
chore: Typo fix for debug log (#4480) 2025-05-21 11:50:05 +12:00
Alessio Artoni
53c36194d9
feat: Enable reading env vars from files (#4359)
Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
2025-05-17 23:37:43 +02:00
Brennan Kinney
491c30b194
fix: setup email list should only work with ACCOUNT_PROVISIONER=FILE (#4453)
---------

Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
2025-04-25 10:06:35 +12:00
litetex
f2e5891b16
feat: Configurable poll rate for check-for-changes.sh (#4450)
Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
Co-authored-by: Casper <casperklein@users.noreply.github.com>
2025-04-23 18:43:41 +02:00
Brennan Kinney
23bb1c8e50
refactor: setup CLI open-dkim (#4375)
Refactoring this `setup` CLI command as part of the effort to unify our DKIM feature support between OpenDKIM + Rspamd:
- Adds a `main()` method similar to other setup CLI commands.
- Help text more aligned with equivalent rspamd DKIM setup CLI command.
- DRY some repetition such as hard-coded paths to use variables.
- OpenDKIM config files are created / initialized early on now with `_create_opendkim_configs()`. `while` loop only needs to append entries, so is easier to grok.
- `_create_dkim_key()` to scope just the logic (_and additional notes_) to key generation via `opendkim-genkey`
- Now overall logic with the `while` loop of the script occurs in `_generate_dkim_keys()`:
  - Ownership fixes are now applied after the `while` loop as that seems more appropriate than per iteration.
  - Temporary VHOST config is now removed since it's no longer useful after running.
- Tests adjusted for one new log for adding of default trusted hosts content.

Overall this should be nicer to grok/maintain. Some of this logic will be reused for the unified DKIM generation command in future, which is more likely to shift towards all domains using the same keypair by default with rspamd/opendkim config generated at runtime rather than reliant upon DMS config volume to provide that (_still expected for private key_).

---------

Co-authored-by: Casper <casperklein@users.noreply.github.com>
Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
2025-03-31 11:27:28 +02:00
Moritz Poldrack
c2c48b2b83
fix: ensure message content is not modified by header filter (#4429) 2025-03-26 12:24:20 +13:00
Brennan Kinney
a3571a88c1
fix: DMS state volume must ensure o+x permission (#4420) 2025-03-18 23:48:12 +01:00
Georg Lauterbach
0362fa682e
fix: include all files in change detection of Rspamd (#4418) 2025-03-18 00:08:14 +01:00
Brennan Kinney
7c680a0fbc
fix: start-mailserver.sh requires mail_state.sh to be sourced on restarts (#4417) 2025-03-16 15:34:51 +01:00
Brennan Kinney
02f068b2b2
fix: Use correct Postfix parameter for postfix-receive-access.cf (#4399) 2025-03-05 11:00:06 +13:00
Brennan Kinney
d0629f4cb6
chore: Revise utility install scripts + add Smallstep step CLI (#4376)
Changes:
- `jaq` should probably live in `/usr/local/bin` with other third-party sourced binaries.
- `swaks` install properly with just `tar`, no `mv` + `rm` needed.
- Added Smallstep `step` CLI. This serves similar purpose to `openssl` commands, but is generally nicer for usage with generation and inspection of certs/keys. I've talked up using in DMS a few times in the past for our TLS helper and unifying DKIM support (_instead of separate OpenDKIM/Rspamd generators_).
- Including `step` for both AMD64 / ARM64 archs needs the alternate naming convention that it's published to GH releases with.
- Added commentary about the `tar` usage. The ownership is a common concern with GH release sources, technically a non-issue when running as `root`
2025-03-03 22:58:42 +01:00
Dmitry R.
1756ba04fb
fix: Support chmod on /var/log/mail/* when dir is empty (#4391)
Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
2025-03-03 21:28:15 +00:00
Brennan Kinney
5686a4097a
fix: setup email restrict configs should only prepend once (#4379)
* fix: `setup email restrict` configs should only prepend once

* chore: Prepend to our custom parameter variant to retain applying to all `smtpd` ports

---------

Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
2025-03-01 13:55:13 +01:00
Georg Lauterbach
ef66dd5d12
release: v15.0.0 (#4373)
Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
2025-03-01 12:14:57 +00:00
Brennan Kinney
d2d74a29a7
fix: Ensure /var/log/mail permissions + ownership are correct (#4374) 2025-02-18 09:02:35 +13:00
Georg Lauterbach
0294294755
fix: revert __declare_readonly overcomplication (#4372)
* fix: revert `__declare_readonly` overcomplication
* chore: remove redundant checks

Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
2025-02-17 00:14:18 +00:00
Casper
0ebf820b00
Make deletion of mailbox data opt-in (#4365)
Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
2025-02-16 10:46:49 +01:00