2134 Commits

Author SHA1 Message Date
sdomi
b6eebc516e Fixes around non-blocking I/O in the thread manager 2025-10-07 11:47:56 +02:00
DaCHack
5b2c0a1800 Merge branch 'Mailu:master' into patch-1 2025-08-24 02:03:32 +02:00
Florent Daigniere
e9825477dc Snuffleupagus v0.12 2025-08-22 12:24:38 +02:00
DaCHack
e68d69a4fe Update forms.py
Add invisible flag
2025-08-18 19:07:03 +02:00
DaCHack
7d8f98b51c Update create.html
Add invisible Tick box
2025-08-18 18:58:04 +02:00
bors-mailu[bot]
91d571aec8 Merge #3760
3760: Improve details page of domains by completing the zonefile, hiding unneeded entries, and puny encoding domains r=mergify[bot] a=Jumper78

## What type of PR?

feature, bug-fix

## What does this PR do?

The PR improves the quality of the details page for the domains. In detail, it:
- adds the lines for the alternative domains shown in the details page also to the zonefile
- hides the entries for the DMARC report (_domain1_._report._dmarc._domain2_) if _domain1_ and _domain2_ are equal; in that case the entries are not needed to allow the sending of the DMARC report
- makes sure that the entries shown in the details page and in the zone file are puny encoded
- the PR also includes a small bugfix; the zonefile included only one of the two DMARC lines for the main domain; the dmarc report dns entry is now also included for the main domain

### Related issue(s)
- in PR #3350, a list of dns entries for alternative domains was added to the details page; the lines for the alternative domains were missing in the download of the zonefile
- in issue #3661 it was discussed how the entries for the DMARC report exactly has to look like

## Prerequisites
Before we can consider review and merge, please make sure the following list is done and checked.
If an entry in not applicable, you can check it or remove it from the list.

- [x] In case of feature or enhancement: documentation updated accordingly
- [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file.


Co-authored-by: Jumper78 <52802286+Jumper78@users.noreply.github.com>
2025-08-13 15:02:14 +00:00
bors-mailu[bot]
16f077da75 Merge #3887
3887: Remove OCSP stapling by Nginx r=nextgens a=svoop

Let's Encrypt has dropped OCSP support and the resulting warning may cause problems when restarting or reloading the frontend Nginx e.g. as part of a post cert update hook.

## What type of PR?

Feature removal

## What does this PR do?

### Related issue(s)
closes #3886

## Prerequisites
Before we can consider review and merge, please make sure the following list is done and checked.
If an entry in not applicable, you can check it or remove it from the list.

- [x] In case of feature or enhancement: documentation updated accordingly
- [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file.


Co-authored-by: Sven Schwyn <sven.schwyn@bitcetera.com>
2025-08-13 12:49:49 +00:00
bors-mailu[bot]
ec8041e093 Merge #3769
3769: Add saveState to dataTables, add "∞" to page length r=mergify[bot] a=saschaludwig

## What type of PR?

enhancement

## What does this PR do?

Add saveState to dataTables, so that the selected page length and sort direction(s) will be saved for the individual tables. Add "∞" option to the page length menu to display all table entries.

### Related issue(s)
none

## Prerequisites
considered as minor change, please notify, if not. Thanks


Co-authored-by: Sascha Ludwig <sascha@astrastudio.de>
Co-authored-by: Alexander Graf <ghostwheel42@users.noreply.github.com>
2025-08-13 12:28:16 +00:00
Alexander Graf
390cafedf8 fix indent 2025-08-13 14:04:40 +02:00
Florent Daigniere
2359a9e8e4 Merge branch 'master' into fix_ci 2025-08-13 09:59:01 +02:00
Florent Daigniere
c72fa20e41 alpine 3.21.4 2025-08-13 09:40:01 +02:00
Sven Schwyn
bf8e98e200 Remove OCSP stapling by Nginx 2025-08-12 16:58:44 +02:00
Vincent Kling
29f42ed4eb Replace missing with load_default 2025-03-14 08:49:58 +01:00
bors-mailu[bot]
8924846a7c Merge #3729
3729: Allow setting collation via env variable and add uvloop r=mergify[bot] a=Grennith

## What type of PR?

Enhancement / Bugfix

## What does this PR do?

As of https://github.com/Mailu/Mailu/pull/3701, the collation shall be set by overwriting `SQLALCHEMY_DATABASE_URI` to contain the collation of the related DB. However, this is currently not possible in the Helm chart of Mailu at all. It's statically set there and would also require not setting DB_NAME etc. to not have it overwritten, see https://github.com/Mailu/Mailu/blob/master/core/admin/mailu/configuration.py#L144

Additionally, uvloop is added to the prod requirements of which postfix-mta-sts-resolver makes use of.

### Related issue(s)
- Mention an issue like: #3449 

## Prerequisites
Before we can consider review and merge, please make sure the following list is done and checked.
If an entry in not applicable, you can check it or remove it from the list.

- [ x ] In case of feature or enhancement: documentation updated accordingly
- [ ] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file.


Co-authored-by: Till Skrodzki <till@mueskro.de>
2025-02-28 23:33:12 +00:00
Jumper78
18bfeb77c6 cleanup of requested changes 2025-02-25 14:42:11 +00:00
Jumper78
8e18fe03a6 simplify function Alternative.dns_dmarc_report_needed
Co-authored-by: Florent Daigniere <nextgens@users.noreply.github.com>
2025-02-25 15:33:30 +01:00
Jumper78
ced2763035 simplify function Domain.dns_dmarc_report_needed
Co-authored-by: Florent Daigniere <nextgens@users.noreply.github.com>
2025-02-25 15:32:34 +01:00
Jumper78
8a8c5b79e6 in the details page of domains, the dns entries get puny encoded now 2025-02-24 19:59:57 +00:00
Sascha Ludwig
c9e0782261 Add saveState to dataTables, add "∞" to page length
Add saveState to dataTables, so that the selected page length and sort direction(s) will be saved for the individual tables.
Add "∞" option to the page length menu to display all table entries.
2025-02-18 12:25:35 +01:00
Till Skrodzki
0ff1d4858e Add uvloop to requirements-dev.txt 2025-02-16 23:13:12 +01:00
Jumper78
a5d2783604 added functionality that DNS DMARC entry for report is only shown when needed also to zonefile 2025-02-16 21:26:34 +00:00
Jumper78
fa74b19f90 added functionality that DNS DMARC entry for report is only shown when needed 2025-02-16 21:08:19 +00:00
Jumper78
aea7680848 extended the zonefile to also include the dns entries of the alternative domains
added the dmarc report dns entry also for the main domain
2025-02-14 22:00:56 +00:00
Jumper78
35ffcb070d added idna function to perform puny encoding on IDN domains 2025-02-14 16:19:20 +00:00
bors-mailu[bot]
4b45d06ebd Merge #3742
3742: Fixed "core" Docker image to allow x86_32 building, updated documenta… r=mergify[bot] a=vparres

## What type of PR?

bugfix / documentation

## What does this PR do?

Allow building a i686 linux image on a amd64 machine by switching from `uname -m` architecture detection to `apk --print-arch` to better reflect the binary distribution architecture instead of the current Kernel architecture and adding the rust toolchain in dependencies.
Also updated the documentation to mention SSE4.2 requirement and reference to the mailu issue i opened earlier.

I didn't wanted to add any kind of automated building changes in this PR before discussions, as it may add unneeded pressure on mailu pipelines. To solve the issue with rspamd mentioned in #3713, only the `base` and the `antispam` images needs to be rebuilt on i686, and it can be done locally if needed.

### Related issue(s)
- closes #3713 

## Prerequisites
Before we can consider review and merge, please make sure the following list is done and checked.
If an entry in not applicable, you can check it or remove it from the list.

- [x] In case of feature or enhancement: documentation updated accordingly
- [ ] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file.


Co-authored-by: Vincent PARRES-GACON <contact@vparres.me>
2025-02-10 11:29:10 +00:00
Florent Daigniere
fc4225b330 Bump CREDENTIAL_ROUNDS to 13 2025-02-09 17:18:47 +01:00
Vincent PARRES-GACON
6387713ad0 Fixed "core" Docker image to allow x86_32 building, updated documentation for SSE4.2 requirement.
- "core" Docker image : Switched from uname -m architecture detection to apk --print-arch to better reflect the binary distribution architecture instead of the current Kernel architecture. This allows building a i686 linux image on a amd64 machine.
- "core" Docker image : Adding rust toolchain in dependancies to allow python modules to build properly on uncommonly supported architectures (like i686)
- Documentation : Updated setup requirement to mention SSE4.2 requirement
- Documentation : Updated faq with the full explanation for the SSE4.2 requirement and the reference to the mailu issue.
2025-02-06 09:56:39 +01:00
kaiyou
0a3f6e5c2f Previous fix only did delay the issue
My previous fix attempt only made it clear that the issue was
in the runtime and an upstream issue with Webpack, but did not
really fix things.

Since Webpack 5.96.0, especially since
420d0d0eed
Webpack does not generate JS for asset chunks, which breaks having
a single entry with both JS and asset chunks.

The logo can easily be moved to a separate entry.
2025-01-29 11:48:39 +01:00
kaiyou
2d151debb4 Fix the webpack build due to dependOn issue
As stated in Webpack documentation, when using multiple entrypoints
and dependencies, it is recommended to export the runtime as a single
separated chunk.

See: https://webpack.js.org/guides/code-splitting/#entry-dependencies
2025-01-29 10:50:55 +01:00
Till Skrodzki
da10c88a2f Add uvloop for prod execution
postfix-mta-sts-resolver can optionally use uvloop speeding up asyncio execution
2025-01-18 19:03:31 +01:00
Till Skrodzki
a068a65818 Add DB_APPENDIX to support additional parameters
With https://github.com/Mailu/Mailu/pull/3701 the remark was left to set the DB collation for MariaDB setups. However, the Helm chart has no option to overwrite the SQLAlchemy URI really. It selfs DB_USER, DB_PW, DB_NAME and DB_HOST and thus triggers the Alchemy URI to be overwritten (and it overwrites it statically as well...).
This commit adds the parameter / environment variable DB_APPENDIX allowing for, e.g., '?collation=utf8mb4_unicode_ci' to be set using an environment variable which the Helm chart can then set.
2025-01-18 19:02:29 +01:00
Florent Daigniere
4cf35e7228 useGlobalPreferredServer=false in autoconfig 2025-01-09 12:05:02 +01:00
Florent Daigniere
a0558bf5c0 doh 2024-12-30 16:17:45 +01:00
Florent Daigniere
adc8ef9aba Add the mariadb connector as per 3449 2024-12-30 16:06:56 +01:00
Fabian Stanke
ec1e49d137 Include error messages for LMTP
These are difficult to debug log messages, when instead of an error message one gets a stack trace with `KeyError: 'lmtp'`
2024-12-25 10:00:02 +01:00
Florent Daigniere
64d0bb603d Ensure mobileconfig has the right content-type 2024-12-22 16:40:44 +01:00
bors-mailu[bot]
6145e6ef72 Merge #3678
3678: alpine3.21.0 r=mergify[bot] a=nextgens

## What type of PR?

enhancement

## What does this PR do?

Upgrade to alpine-3.21.0

### Related issue(s)
- #3677

## Prerequisites
Before we can consider review and merge, please make sure the following list is done and checked.
If an entry in not applicable, you can check it or remove it from the list.

- [ ] In case of feature or enhancement: documentation updated accordingly
- [ ] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file.


Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
2024-12-10 15:46:22 +00:00
Florent Daigniere
d13eae7587 alpine3.21.0 2024-12-08 14:53:16 +01:00
Florent Daigniere
f1c5ac5b14 Don't check empty passwords against HIBP 2024-11-17 14:42:23 +01:00
Florent Daigniere
9a928f8c7b snuffleupagus 11 2024-11-16 22:18:22 +01:00
Florent Daigniere
152b45a0e9 alpine 3.20.3 2024-10-21 11:05:01 +02:00
bors-mailu[bot]
e9570020aa Merge #3618
3618: Filter logs line based and in binary mode without decoding utf-8 r=mergify[bot] a=ghostwheel42

## What type of PR?

bug-fix

## What does this PR do?

try at fixing decoding errors when filtering logs

### Related issue(s)
- closes #3398



Co-authored-by: Alexander Graf <ghostwheel42@users.noreply.github.com>
2024-10-17 15:28:54 +00:00
Alexander Graf
f16467b984 Flush buffer on flush() and flush explicitely after subprocess has ended 2024-10-17 16:59:55 +02:00
Alexander Graf
4a49234afa Filter logs line based and in binary mode without decoding utf-8 2024-10-17 15:26:32 +02:00
bors-mailu[bot]
05175b5a3c Merge #3608
3608: Ensure healthchecks timeout r=mergify[bot] a=nextgens

## What type of PR?

bug-fix

## What does this PR do?

Ensure healthchecks timeout

### Related issue(s)
- close #3398
- close #3602

## Prerequisites
Before we can consider review and merge, please make sure the following list is done and checked.
If an entry in not applicable, you can check it or remove it from the list.

- [ ] In case of feature or enhancement: documentation updated accordingly
- [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file.


Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
2024-10-17 12:48:44 +00:00
Florent Daigniere
fb49ef9057 Fix http2 2024-10-15 17:14:22 +02:00
Florent Daigniere
7aaf7ec17b Ensure healthchecks timeout 2024-10-05 18:59:29 +02:00
bors-mailu[bot]
5e7d4edc9d Merge #3558
3558: Only enable HARDENED_MALLOC with kernel 6.1+ r=mergify[bot] a=nextgens

## What type of PR?

enhancement

## What does this PR do?

Disable HARDENED_MALLOC unless the requirements are met

### Related issue(s)
- #3398

## Prerequisites
Before we can consider review and merge, please make sure the following list is done and checked.
If an entry in not applicable, you can check it or remove it from the list.

- [ ] In case of feature or enhancement: documentation updated accordingly
- [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file.


Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
2024-09-23 09:04:08 +00:00
Florent Daigniere
e3b1b9c1c3 As per #3398 2024-09-22 15:20:09 +02:00
Florent Daigniere
8e4af5ad05 Fix #3531 2024-09-22 13:14:33 +02:00