1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-08-10 22:31:47 +02:00

2115 Commits

Author SHA1 Message Date
weijie_wu
8ada9752cd feat:support tcp proxy 2025-08-08 17:25:38 +08: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
Till Skrodzki
0ff1d4858e Add uvloop to requirements-dev.txt 2025-02-16 23:13:12 +01: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
bors-mailu[bot]
3e673f9f6b Merge #3465
3465: Maybe fix #3402 r=mergify[bot] a=nextgens

## What type of PR?

bug-fix

## What does this PR do?

Fix a potential problem with SO_REUSEADDR that may prevent admin from starting up

### Related issue(s)
- close #3402 

## 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-13 07:20:12 +00:00
Florent Daigniere
07f0ec3d0b Need sleep. 2024-09-12 23:17:48 +02:00
Florent Daigniere
c11815b3a0 Add delay 2024-09-12 22:48:20 +02:00
Florent Daigniere
6745450526 Improve as per @ghostwheel42's suggestion 2024-09-12 19:32:08 +02:00
Florent Daigniere
8b34fbe881 Maybe fix #3402 2024-09-12 19:21:18 +02:00
Florent Daigniere
12e94b7616 As per review 2024-09-12 15:45:58 +02:00
Florent Daigniere
f4ab22edbc play it safe 2024-09-12 12:34:31 +02:00
Florent Daigniere
cdf8ee8820 Apply suggestions from code review
Co-authored-by: Alexander Graf <ghostwheel42@users.noreply.github.com>
2024-09-12 12:30:04 +02:00
Florent Daigniere
c6c4c09f08 doh 2024-09-12 11:08:58 +02:00
Florent Daigniere
a875d7fe6a Fix #3450 2024-09-12 10:43:49 +02:00
kunago
307353107d Update Czech translation 2024-09-10 22:03:37 +02:00
Florent Daigniere
fbaf75936a doh 2024-09-10 14:42:35 +02:00
Florent Daigniere
c9e8eeb69a Fix #3425 2024-09-10 11:27:10 +02:00
Florent Daigniere
63769c73cf Fix #3411 2024-09-09 19:25:33 +02:00
Dimitri Huisman
c4f457e7f9 Fix 3420 - fixed syntax errors in certwatcher.py 2024-09-09 13:01:12 +00:00
Florent Daigniere
28c28b1c84 INBOUND_TLS_ENFORCE makes no sense. 2024-09-06 09:40:26 +02:00
Florent Daigniere
5ea3840fc4 doh 2024-09-05 23:22:55 +02:00
Florent Daigniere
61812ac32a Untested code that may fix the following:
Exception in thread Thread-2 (forward_text_lines):
Traceback (most recent call last):
  File "/usr/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
    self.run()  File "/usr/lib/python3.12/threading.py", line 1010, in run
    self._target(*self._args, **self._kwargs)
  File "/app/venv/lib/python3.12/site-packages/socrate/system.py", line 155, in forward_text_lines
    current_line = src.readline()
                   ^^^^^^^^^^^^^^
  File "<frozen codecs>", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position 166: invalid start byte

This was reported in #3398
2024-09-05 22:57:35 +02:00
Florent Daigniere
bae4855bea fix #3379 2024-09-05 22:45:25 +02:00