1367 Commits

Author SHA1 Message Date
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]
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
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
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
Florent Daigniere
fc4225b330 Bump CREDENTIAL_ROUNDS to 13 2025-02-09 17:18:47 +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
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
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
Florent Daigniere
f1c5ac5b14 Don't check empty passwords against HIBP 2024-11-17 14:42:23 +01:00
Florent Daigniere
7aaf7ec17b Ensure healthchecks timeout 2024-10-05 18:59:29 +02:00
Florent Daigniere
6745450526 Improve as per @ghostwheel42's suggestion 2024-09-12 19:32:08 +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
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
bae4855bea fix #3379 2024-09-05 22:45:25 +02:00
Florent Daigniere
b426c67949 doh 2024-09-05 22:37:30 +02:00
Florent Daigniere
e5790a297a fix #3403 2024-09-05 22:33:23 +02:00
DrPsychick
73914d1df8 fix: PATCH /user will overwrite existing "forward_destination" 2024-08-15 12:49:41 +02:00
bors-mailu[bot]
16cfe01d56 Merge #3304
3304: Update translations: regenerate .pot, update english and german r=mergify[bot] a=Dennis14e

## What type of PR?

Enhancement

## What does this PR do?

Updates the translations .pot-file and the english and german translations.
I tried to reproduce the change using run_dev.sh, but it only shows me the English language - even without my changes. I used GitHub Codespaces, maybe it has something to do with that?

## 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: Dennis Neufeld <Dennis14e@users.noreply.github.com>
Co-authored-by: Alexander Graf <ghostwheel42@users.noreply.github.com>
2024-08-12 06:23:06 +00:00
bors-mailu[bot]
2fca41235b Merge #3350
3350: Feature: dkim for alternative domains r=mergify[bot] a=Jumper78

## What type of PR?

feature

## What does this PR do?

### General Idea

#### use same DKIM key of main domain for signing

Instead of dealing with key creation for each alternative domain, this implementation of the solution uses one key for all domains, the main domain and all alternative domains. Upon Rspamd requesting the DKIM key of a domain, it is not only checked if the domain is in the list of main domains, it also checked if it part of the alternative domains. If it is in this list, it sends the DKIM key of the connected main domain together with the name of the alternative domain.

#### show needed entries in the domain detailed view of the main domain

To make it easier for the admin to create the DKIM and DMARC entries (and the MX and SPF entries) for the alternative domains, we go through all alternative domains and print the entries.

### missing (and currently not planned to be added)

The zonefile at the top of the detail page will still only cover the main domain.

### Related issue(s)
- DKIM signing of the alternative domains is a requested feature; it closes #1519
- it keeps the original file based handling of DKIM keys; it does not implement #2952

## 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: Jumper78 <52802286+Jumper78@users.noreply.github.com>
2024-08-11 16:42:45 +00:00
Alexander Graf
b51c506ee1 Add last translation 2024-08-11 18:35:00 +02:00
Florent Daigniere
5cfec650df s/nginx/front 2024-08-09 15:55:33 +02:00
Florent Daigniere
78c5d34227 as per review 2024-08-09 15:29:51 +02:00
Florent Daigniere
d7c6528f04 doh 2024-08-08 10:33:19 +02:00
Florent Daigniere
38ea029bd9 Better 2024-08-08 10:27:35 +02:00
Florent Daigniere
148c8f9ede Remove this insanity since we don't use nginx 2024-08-08 10:24:43 +02:00
Florent Daigniere
cfec4c58cc Add a new CNAME for old MUAs 2024-08-04 10:54:49 +02:00
Florent Daigniere
11e72e7034 As per review 2024-07-30 11:51:25 +02:00
Florent Daigniere
0eafff00c1 as per review 2024-07-30 10:41:17 +02:00