4455 Commits

Author SHA1 Message Date
bors-mailu[bot]
ffb4103b4c Merge #3268
3268: Update Roundcube 1.6.7 due to XSS vulnerabilities (backport #3267) r=mergify[bot] a=mergify[bot]

## What type of PR?

Bug fix

## What does this PR do?

Updates roundcube to 1.6.7

### Related issue(s)

Due to XSS vulnerabilities see [here](https://github.com/roundcube/roundcubemail/releases/tag/1.6.7)

## 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.
<hr>This is an automatic backport of pull request #3267 done by [Mergify](https://mergify.com).

Co-authored-by: ctrl-i <1422608+ctrl-i@users.noreply.github.com>
Co-authored-by: Florent Daigniere <nextgens@users.noreply.github.com>
2.0.43
2024-05-20 09:51:32 +00:00
Florent Daigniere
187d02953d Update Dockerfile 2024-05-20 09:33:48 +02:00
ctrl-i
3ed68dad87 Create 3261.bugfix
Updated roundcube to 1.6.7 due to known XSS vulnerabilities

(cherry picked from commit a53b869d8a)
2024-05-20 07:27:31 +00:00
ctrl-i
30b826dbc0 Update Dockerfile
Roundcube incremented to 1.6.7 due to XSS vulnerabilities

(cherry picked from commit e79e055ac1)

# Conflicts:
#	webmails/Dockerfile
2024-05-20 07:27:30 +00:00
bors-mailu[bot]
a83a973e68 Merge #3257
3257: Fix CVE-2024-1135 (backport #3251) r=nextgens a=mergify[bot]

## What type of PR?

bug-fix

## What does this PR do?

Fix CVE-2024-1135

### Related issue(s)

## 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.
<hr>This is an automatic backport of pull request #3251 done by [Mergify](https://mergify.com).

Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
Co-authored-by: Florent Daigniere <nextgens@users.noreply.github.com>
2.0.42
2024-05-16 15:06:29 +00:00
Florent Daigniere
2363a12b0c Update requirements-prod.txt 2024-05-10 13:42:10 +02:00
Florent Daigniere
fed1fc08cc Fix CVE-2024-1135
(cherry picked from commit 5b5d526d79)

# Conflicts:
#	core/base/requirements-prod.txt
2024-05-10 11:17:50 +00:00
bors-mailu[bot]
13a450720f Merge #3240
3240: Fix purge_user.sh (backport #3239) r=mergify[bot] a=mergify[bot]

## What type of PR?

bug-fix

## What does this PR do?

Fix purge_user.sh; thanks to [nike7o0](https://github.com/nike7o0)

### Related issue(s)
- close #3238 
- #2858

## 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.
<hr>This is an automatic backport of pull request #3239 done by [Mergify](https://mergify.com).

Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
2.0.41
2024-05-05 10:49:32 +00:00
Florent Daigniere
9a81216cb9 Fix purge_user.sh
(cherry picked from commit 67a53671f4)
2024-05-03 14:31:18 +00:00
bors-mailu[bot]
01cdacfc04 Merge #3205
3205: Fix bug 3068. Spam messages were always marked as read. (backport #3204) r=mergify[bot] a=mergify[bot]

## What type of PR?

bug-fix

## What does this PR do?
When `Enable marking spam mails as read`  was disabled, spam messages were still marked as read. This PR resolves this defect.

### Related issue(s)
- Auto close an issue like: closes #3068

## 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.
<hr>This is an automatic backport of pull request #3204 done by [Mergify](https://mergify.com).

Co-authored-by: Dimitri Huisman <diman@huisman.xyz>
2.0.40
2024-03-26 12:45:07 +00:00
Dimitri Huisman
63ae6d5005 Fix bug 3068. Spam messages were always marked as read.
(cherry picked from commit 9935cb48cd)
2024-03-25 13:29:38 +00:00
bors-mailu[bot]
e426493850 Merge #3190
3190: Ensure we always send an ISRG root for DANE (backport #3188) r=mergify[bot] a=mergify[bot]

This is an automatic backport of pull request #3188 done by [Mergify](https://mergify.com).
Cherry-pick of 494147eedf has failed:
```
On branch mergify/bp/2.0/pr-3188
Your branch is ahead of 'origin/2.0' by 2 commits.
  (use "git push" to publish your local commits)

You are currently cherry-picking commit 494147ee.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   core/nginx/letsencrypt.py

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   core/base/requirements-prod.txt
	both modified:   core/nginx/config.py

```


To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

---


<details>
<summary>Mergify commands and options</summary>

<br />

More conditions and actions can be found in the [documentation](https://docs.mergify.com/).

You can also trigger Mergify actions by commenting on this pull request:

- ``@Mergifyio` refresh` will re-evaluate the rules
- ``@Mergifyio` rebase` will rebase this PR on its base branch
- ``@Mergifyio` update` will merge the base branch into this PR
- ``@Mergifyio` backport <destination>` will backport this PR on `<destination>` branch

Additionally, on Mergify [dashboard](https://dashboard.mergify.com) you can:

- look at your merge queues
- generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com
</details>

Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
Co-authored-by: Florent Daigniere <nextgens@users.noreply.github.com>
2.0.39
2024-03-11 08:35:57 +00:00
Florent Daigniere
d457249660 doh 2024-03-10 16:48:49 +01:00
Florent Daigniere
5d3b3207e3 Update config.py 2024-03-10 16:47:06 +01:00
Florent Daigniere
f218920d38 Update requirements-prod.txt 2024-03-10 16:46:28 +01:00
Florent Daigniere
032c8eaa92 Need newer cryptography
(cherry picked from commit 494147eedf)

# Conflicts:
#	core/base/requirements-prod.txt
#	core/nginx/config.py
2024-03-10 15:44:17 +00:00
Florent Daigniere
8ad528f158 Create a fake husky to fix the CI
(cherry picked from commit 8c842ff3aa)
2024-03-10 15:44:17 +00:00
Florent Daigniere
21c65a8235 Ensure we always send an ISRG root for DANE
(cherry picked from commit 86adf07461)
2024-03-10 15:44:16 +00:00
bors-mailu[bot]
e43f56e214 Merge #3158
3158: Add trailing semicolon for DMARC authorisation record (backport #3150) r=mergify[bot] a=mergify[bot]

This is an automatic backport of pull request #3150 done by [Mergify](https://mergify.com).


---


<details>
<summary>Mergify commands and options</summary>

<br />

More conditions and actions can be found in the [documentation](https://docs.mergify.com/).

You can also trigger Mergify actions by commenting on this pull request:

- ``@Mergifyio` refresh` will re-evaluate the rules
- ``@Mergifyio` rebase` will rebase this PR on its base branch
- ``@Mergifyio` update` will merge the base branch into this PR
- ``@Mergifyio` backport <destination>` will backport this PR on `<destination>` branch

Additionally, on Mergify [dashboard](https://dashboard.mergify.com) you can:

- look at your merge queues
- generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com
</details>

Co-authored-by: su-ex <codeworks@supercable.onl>
Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
2.0.38
2024-02-06 19:36:17 +00:00
Florent Daigniere
31608251d5 towncrier
(cherry picked from commit 98a6bab0ca)
2024-02-05 17:57:54 +00:00
su-ex
128b0720a3 Add trailing semicolon for DMARC authorisation record
This seems to be necessary: https://stackoverflow.com/a/72463456

(cherry picked from commit 324b723efa)
2024-02-05 17:57:54 +00:00
bors-mailu[bot]
1ff33e6cf4 Merge #3133
3133: Fix 3129, thanks to Games-Crack (backport #3132) r=mergify[bot] a=mergify[bot]

This is an automatic backport of pull request #3132 done by [Mergify](https://mergify.com).


---


<details>
<summary>Mergify commands and options</summary>

<br />

More conditions and actions can be found in the [documentation](https://docs.mergify.com/).

You can also trigger Mergify actions by commenting on this pull request:

- ``@Mergifyio` refresh` will re-evaluate the rules
- ``@Mergifyio` rebase` will rebase this PR on its base branch
- ``@Mergifyio` update` will merge the base branch into this PR
- ``@Mergifyio` backport <destination>` will backport this PR on `<destination>` branch

Additionally, on Mergify [dashboard](https://dashboard.mergify.com) you can:

- look at your merge queues
- generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com
</details>

Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
2.0.37
2024-01-18 21:24:45 +00:00
Florent Daigniere
730a0e8164 Fix 3129, thanks to Games-Crack
(cherry picked from commit bbfde0badc)
2024-01-18 20:37:08 +00:00
bors-mailu[bot]
654977c365 Merge #3110
3110: Long term fix against SMTP smuggling (backport #3109) r=mergify[bot] a=mergify[bot]

This is an automatic backport of pull request #3109 done by [Mergify](https://mergify.com).


---


<details>
<summary>Mergify commands and options</summary>

<br />

More conditions and actions can be found in the [documentation](https://docs.mergify.com/).

You can also trigger Mergify actions by commenting on this pull request:

- ``@Mergifyio` refresh` will re-evaluate the rules
- ``@Mergifyio` rebase` will rebase this PR on its base branch
- ``@Mergifyio` update` will merge the base branch into this PR
- ``@Mergifyio` backport <destination>` will backport this PR on `<destination>` branch

Additionally, on Mergify [dashboard](https://dashboard.mergify.com) you can:

- look at your merge queues
- generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com
</details>

Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
2.0.36
2023-12-28 18:38:11 +00:00
Florent Daigniere
47a8d8c108 Add url
(cherry picked from commit ec7dbc6a90)
2023-12-28 11:25:38 +00:00
Florent Daigniere
6af1b68074 Long term fix against SMTP smuggling
(cherry picked from commit bc863b4bbc)
2023-12-28 11:25:38 +00:00
bors-mailu[bot]
d89b454b25 Merge #3103 #3104
3103: Prevent SMTP smuggling (backport #3102) r=mergify[bot] a=mergify[bot]

This is an automatic backport of pull request #3102 done by [Mergify](https://mergify.com).


---


<details>
<summary>Mergify commands and options</summary>

<br />

More conditions and actions can be found in the [documentation](https://docs.mergify.com/).

You can also trigger Mergify actions by commenting on this pull request:

- ``@Mergifyio` refresh` will re-evaluate the rules
- ``@Mergifyio` rebase` will rebase this PR on its base branch
- ``@Mergifyio` update` will merge the base branch into this PR
- ``@Mergifyio` backport <destination>` will backport this PR on `<destination>` branch

Additionally, on Mergify [dashboard](https://dashboard.mergify.com) you can:

- look at your merge queues
- generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com
</details>

3104: Do not block webmail when we have a valid SSO session (backport #3100) r=mergify[bot] a=mergify[bot]

This is an automatic backport of pull request #3100 done by [Mergify](https://mergify.com).


---


<details>
<summary>Mergify commands and options</summary>

<br />

More conditions and actions can be found in the [documentation](https://docs.mergify.com/).

You can also trigger Mergify actions by commenting on this pull request:

- ``@Mergifyio` refresh` will re-evaluate the rules
- ``@Mergifyio` rebase` will rebase this PR on its base branch
- ``@Mergifyio` update` will merge the base branch into this PR
- ``@Mergifyio` backport <destination>` will backport this PR on `<destination>` branch

Additionally, on Mergify [dashboard](https://dashboard.mergify.com) you can:

- look at your merge queues
- generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com
</details>

Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
2.0.35
2023-12-22 14:42:34 +00:00
Florent Daigniere
258951bc6e Do not block webmail when we have a valid SSO sess
(cherry picked from commit 325aa5452b)
2023-12-22 09:01:58 +00:00
Florent Daigniere
cab3e29352 Prevent SMTP smuggling
(cherry picked from commit 64d83d061e)
2023-12-22 08:43:54 +00:00
bors-mailu[bot]
c49c923dc1 Merge #3063
3063: Fix SETUP generating invalid files. (backport #3025) r=mergify[bot] a=mergify[bot]

This is an automatic backport of pull request #3025 done by [Mergify](https://mergify.com).


---


<details>
<summary>Mergify commands and options</summary>

<br />

More conditions and actions can be found in the [documentation](https://docs.mergify.com/).

You can also trigger Mergify actions by commenting on this pull request:

- ``@Mergifyio` refresh` will re-evaluate the rules
- ``@Mergifyio` rebase` will rebase this PR on its base branch
- ``@Mergifyio` update` will merge the base branch into this PR
- ``@Mergifyio` backport <destination>` will backport this PR on `<destination>` branch

Additionally, on Mergify [dashboard](https://dashboard.mergify.com) you can:

- look at your merge queues
- generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com
</details>

Co-authored-by: Dimitri Huisman <diman@huisman.xyz>
Co-authored-by: Dimitri Huisman <52963853+Diman0@users.noreply.github.com>
2.0.34
2023-11-18 12:34:16 +00:00
Dimitri Huisman
6eac085b04 Forgot to include this in the previous commit for removing WEB_* settings from setup.
(cherry picked from commit e7cf213da7)
2023-11-18 12:27:22 +00:00
Dimitri Huisman
186334ef15 Update changelog fragment of 2890
(cherry picked from commit e43fb69864)
2023-11-18 12:27:22 +00:00
Dimitri Huisman
4a10dcd483 Remove WEB_ variables from setup.
Setup is meant for the standard use case where you don't change
WEB_*. WEB_* can still be changed via mailu.env

(cherry picked from commit 823b01041a)
2023-11-18 12:27:22 +00:00
Dimitri Huisman
39daa39545 Use better python method for validating IP address and subnet
(cherry picked from commit 0e04871cbe)
2023-11-18 12:27:22 +00:00
Dimitri Huisman
3a73160c25 Update setup/templates/steps/compose/03_expose.html
Better sentence structure

Co-authored-by: Florent Daigniere <nextgens@users.noreply.github.com>
(cherry picked from commit 6466759f30)
2023-11-18 12:27:22 +00:00
Dimitri Huisman
02f155ce79 Reinstate statistics which is currently not used. Remove unneeded line in
Dockerfile.

(cherry picked from commit d370d40df7)
2023-11-18 12:27:22 +00:00
Dimitri Huisman
1a556678f1 Add extra server-side validation of setup form values
Remove deprecated database_flavor JavaScript functionality
Remove statistics question which has never been implemented

(cherry picked from commit eb65e5eea0)
2023-11-18 12:27:22 +00:00
Dimitri Huisman
c9d018f314 Process ghostwheel's suggestion. By default hide the container div element and
show the no-javascript div element. Via JavaScript hide the no-java div element
and show the container div element.

(cherry picked from commit 02d5202c68)
2023-11-18 12:27:21 +00:00
Dimitri Huisman
cf68f08786 Remove reg exp check for IPv6. This is now handled server-side.
(cherry picked from commit a9fa592868)
2023-11-18 12:27:21 +00:00
Dimitri Huisman
8dbce9e698 Also check server-side subnet6 and bind6
(cherry picked from commit 49f3981d60)
2023-11-18 12:27:21 +00:00
Dimitri Huisman
cbb89a2acb Check IPv4 and subnet server side, flash message if these are invalid.
(cherry picked from commit d1a2a4d15e)
2023-11-18 12:27:21 +00:00
Dimitri Huisman
637a98d555 Refine subnet check and improve hint for defining subnet. 4th number is always 0 with a subnet.
(cherry picked from commit e332a7de6a)
2023-11-18 12:27:21 +00:00
Dimitri Huisman
b4559e5867 Added checks to SETUP to make sure JavaScript is enabled and that all JS files could be loaded when loading the site page.
The setup site malfunctions if this is not the case.
Regular expression for checking the Mailu storage path was invalid.

(cherry picked from commit 67d11c47c8)
2023-11-18 12:27:21 +00:00
bors-mailu[bot]
2acaaa5dbc Merge #3056
3056: Ensure that we do reject emails if clamav/oletools are not ready; Update the CI to double-check the reason for rejection (backport #3055 and #3057) r=mergify[bot] a=mergify[bot]

Backport of #3049 and #3057

Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
2.0.33
2023-11-15 12:45:37 +00:00
Florent Daigniere
75e2d8b6ec Only return 25 when it's a permanent error 2023-11-15 10:52:52 +01:00
Florent Daigniere
3b810b0247 Ensure the logic is right 2023-11-15 10:52:47 +01:00
Florent Daigniere
619b8d8300 Retry up to 5 times if not ready 2023-11-15 10:52:41 +01:00
Florent Daigniere
8767d11fa2 Doh
(cherry picked from commit 8ae6b4dd89)
2023-11-15 08:59:15 +00:00
bors-mailu[bot]
127a289284 Merge #3054
3054: Ensure that we do not silently discard PUAs flagged by clamav (backport #3049) r=mergify[bot] a=mergify[bot]

This is an automatic backport of pull request #3049 done by [Mergify](https://mergify.com).


---


<details>
<summary>Mergify commands and options</summary>

<br />

More conditions and actions can be found in the [documentation](https://docs.mergify.com/).

You can also trigger Mergify actions by commenting on this pull request:

- ``@Mergifyio` refresh` will re-evaluate the rules
- ``@Mergifyio` rebase` will rebase this PR on its base branch
- ``@Mergifyio` update` will merge the base branch into this PR
- ``@Mergifyio` backport <destination>` will backport this PR on `<destination>` branch

Additionally, on Mergify [dashboard](https://dashboard.mergify.com) you can:

- look at your merge queues
- generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com
</details>

Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
Co-authored-by: Florent Daigniere <nextgens@users.noreply.github.com>
2023-11-15 08:12:21 +00:00
Florent Daigniere
566de0fe6e Update antivirus.conf 2023-11-15 09:09:13 +01:00