1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00
Commit Graph

4570 Commits

Author SHA1 Message Date
Dimitri Huisman
d370d40df7
Reinstate statistics which is currently not used. Remove unneeded line in
Dockerfile.
2023-11-07 15:24:23 +00:00
Dimitri Huisman
eb65e5eea0
Add extra server-side validation of setup form values
Remove deprecated database_flavor JavaScript functionality
Remove statistics question which has never been implemented
2023-11-07 14:14:27 +00:00
Dimitri Huisman
02d5202c68
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.
2023-11-07 10:49:59 +00:00
Dimitri Huisman
a9fa592868
Remove reg exp check for IPv6. This is now handled server-side. 2023-10-31 13:52:00 +00:00
Dimitri Huisman
49f3981d60
Also check server-side subnet6 and bind6 2023-10-31 10:25:28 +00:00
Dimitri Huisman
d1a2a4d15e
Check IPv4 and subnet server side, flash message if these are invalid. 2023-10-31 09:54:13 +00:00
Dimitri Huisman
e332a7de6a
Refine subnet check and improve hint for defining subnet. 4th number is always 0 with a subnet. 2023-10-29 16:47:35 +00:00
Dimitri Huisman
67d11c47c8
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.
2023-10-29 12:55:40 +00:00
bors[bot]
4e351e1dd4
Merge #3014
3014: Update issue template and faq r=mergify[bot] a=Diman0

## What type of PR?

documentation

## What does this PR do?
We have opened github discussions. Github discussions must be used for anything but issues. The FAQ and issue template have been updated that github issues are only meant for bug reports that follow the issue template. Anything else should be posed on github discussions.

### 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.

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


Co-authored-by: Dimitri Huisman <diman@huisman.xyz>
2023-10-28 12:12:09 +00:00
bors[bot]
d20fc63a50
Merge #3010
3010: Long term solution for helm-charts r=mergify[bot] a=nextgens

## What type of PR?

enhancement

## What does this PR do?

Long term solution for helm-charts as agreed with `@fastlorenzo` 

### 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
- [ ] 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>
Co-authored-by: Florent Daigniere <nextgens@users.noreply.github.com>
2023-10-28 12:05:05 +00:00
Florent Daigniere
eb110c8431 master uses SSO 2023-10-28 14:02:06 +02:00
Dimitri Huisman
d16073ab10
Update faq.rst that anything but bugs are handled via github discussions 2023-10-28 11:57:54 +00:00
Dimitri Huisman
1e4b27b056
Update issue template.
From now on the issues section is only used for bug reports that follow the issue template.
All other topics (including feature requests) are discussed on the github discussions section of the project.
2023-10-28 11:44:01 +00:00
Florent Daigniere
82e0951e59
Update core/admin/start.py
Co-authored-by: Dimitri Huisman <52963853+Diman0@users.noreply.github.com>
2023-10-28 11:23:46 +02:00
bors[bot]
23b0bfd43b
Merge #3012
3012: Give more time to clamav in CI r=mergify[bot] a=nextgens

## What type of PR?

bug-fix

## What does this PR do?

In the CI, give time to clamav and oletools to start-up.

Without this we see failures where rspamd gives up before they are up and EICAR is let through

### 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
- [ ] 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>
2023-10-28 08:08:51 +00:00
Florent Daigniere
6dd5b559db Give more time to clamav 2023-10-28 09:55:45 +02:00
Florent Daigniere
a97d3eaebe Long term solution for helm-charts 2023-10-28 09:36:30 +02:00
bors[bot]
d0c6b34002
Merge #3008
3008: Fix issues with log filter and remove POSTFIX_LOG_FILE r=mergify[bot] a=Diman0

## What type of PR?

bug-fix

## What does this PR do?
Fixed log filter not filtering out log messages for dovecot/nginx/postfix.
Fixed postfix not logging to standard out.
Fixed not all containers logging to journald.
Removed POSTFIX_LOG_FILE functionality. A new FAQ entry is created that documents how to log to file with journald & rsyslog.

Thank you `@Lex999` for providing the sample code in #2839 for how to capture the standard out of called sub processes.

### Related issue(s)
- closes #2839
- closes #2819 
- closes #2939 

## 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: Dimitri Huisman <diman@huisman.xyz>
2023-10-27 20:49:25 +00:00
bors[bot]
48d891f5ab
Merge #3003
3003: Update documentation r=nextgens a=nextgens

## What type of PR?

documentation

## What does this PR do?

- Run aspell
- Commit an updated network diagram

### 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
- [ ] 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>
2023-10-27 20:24:15 +00:00
bors[bot]
26e5618cbc
Merge #3007
3007: Introduce AUTH_REQUIRE_TOKENS r=nextgens a=nextgens

## What type of PR?

enhancement

## What does this PR do?

Introduce AUTH_REQUIRE_TOKENS to enforce that thick clients use tokens instead of passwords

### 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.


Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
2023-10-27 20:15:12 +00:00
bors[bot]
7f84516108
Merge #3009
3009: fix CI on master r=mergify[bot] a=nextgens

## What type of PR?

bug-fix

## What does this PR do?

fix CI on master

### 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
- [ ] 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>
2023-10-27 19:50:51 +00:00
Florent Daigniere
3ef504a9bb duh 2023-10-27 19:56:01 +02:00
Dimitri Huisman
60b9ff0090
Fixed log filter not filtering out log messages for dovecot/nginx/postfix.
Fixed postfix not logging to standard out.
Fixed not all containers logging to journald.
Removed POSTFIX_LOG_FILE functionality. Added documentation on how to achieve the same (log to file) via journald & rsyslogd (see new FAQ entry 'How can I view and export the logs of a Mailu container?').
2023-10-27 14:10:13 +00:00
Florent Daigniere
2494a344a7 Ammend wording as suggested 2023-10-27 15:14:51 +02:00
Florent Daigniere
3e2a6d84ce doh 2023-10-27 13:41:51 +02:00
Florent Daigniere
435508be1e Introduce AUTH_REQUIRE_TOKENS 2023-10-27 13:39:36 +02:00
Florent Daigniere
6f969fd539 Fix CI 2023-10-20 09:58:22 +02:00
Florent Daigniere
32f599ce42 Add the network diagram 2023-10-20 09:39:25 +02:00
Florent Daigniere
af511308c9 Run aspell 2023-10-20 09:39:16 +02:00
bors[bot]
efcf7a1581
Merge #2990
2990: Fix letsencrypt on master r=mergify[bot] a=nextgens

## What type of PR?

bug-fix

## What does this PR do?

Fix letsencrypt on master; without this renewals will fail

### Related issue(s)
- close #2851
- close #2966

## 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>
2023-10-18 08:55:49 +00:00
Florent Daigniere
a5d8a2555a Modify ISSUE_TEMPLATE.md 2023-10-17 14:17:20 +02:00
Florent Daigniere
055b216627 log.critical() where useful 2023-10-17 14:05:08 +02:00
Florent Daigniere
9f93ed6593 Fix letsencrypt on master 2023-10-17 13:58:38 +02:00
bors[bot]
d0d4876a85
Merge #2982
2982: Switch to upstream's clamav image r=mergify[bot] a=nextgens

## What type of PR?

enhancement

## What does this PR do?

Switch to upstream's clamav image. The only downside is that it doesn't support armv7... but odds are it won't have enough RAM anyway.

Why do we want this?
- faster build times
- will be easier to upgrade
- less maintenance required for us
- it may fix the CI tests failing because of clamav/EICAR not getting caught
- it will save bandwidth (as we won't re-download the definitions from fresh: they are in the base image)
- it puts clamav on its own network (security)

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

## 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>
2023-10-17 09:41:49 +00:00
bors[bot]
0441903361
Merge #2981
2981: Further improvements to fts r=mergify[bot] a=nextgens

## What type of PR?

enhancement

## What does this PR do?

- update instructions
- set a timeout on search: if the indexes are not up to date, it will take at most 50s to fail
- limit parallelism to 1 (is that what we want?)
- switch to a different image that has ARM support
- ensure that journald logs the output of tika and oletools
- update the upgrade instructions to ensure one doesn't DoS his server while re-indexing
- add a healthcheck for tika

### 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.


Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
2023-10-17 09:31:48 +00:00
bors[bot]
ab59c32296
Merge #2985
2985: Roundcube 1.6.4 r=nextgens a=nextgens

## What type of PR?

bug-fix

## What does this PR do?

Upgrade roundcube to 1.6.4 to fix an XSS, clarify what is supported.

### 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.


Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
2023-10-16 14:20:18 +00:00
Florent Daigniere
2a570d0f6f Roundcube 1.6.4 2023-10-16 13:38:49 +02:00
Florent Daigniere
98e1142bea update the github action too 2023-10-13 16:56:12 +02:00
Florent Daigniere
4da05b93ab doh 2023-10-13 16:42:45 +02:00
Florent Daigniere
80317fde78 Our healthcheck 2023-10-13 16:35:13 +02:00
Florent Daigniere
6a2169096c Switch to upstream's clamav image 2023-10-13 16:24:10 +02:00
Florent Daigniere
0be09411ab Just make it work by default for everyone 2023-10-13 13:59:21 +02:00
Florent Daigniere
371dea7c9b ghcr.io/paperless-ngx/tika:2.9.0-full even 2023-10-13 13:31:36 +02:00
Florent Daigniere
c56b58149b Further improvements 2023-10-13 09:43:34 +02:00
bors[bot]
bc6a38b655
Merge #2948
2948: Add Traditional Chinese translation file. r=mergify[bot] a=tryweb

## What type of PR?
Localization

## What does this PR do?
Add Traditional Chinese (Taiwan) translation file.

### Related issue(s)

## Prerequisites
None

Co-authored-by: jonathan <tryweb@ichiayi.com>
Co-authored-by: Jonathan Tsai <tryweb@ichiayi.com>
2023-10-13 06:37:24 +00:00
jonathan
7a258c19ad #2948 Add Traditional Chinese translation 2023-10-13 11:08:35 +08:00
Jonathan Tsai
e41c15fea3
Merge branch 'Mailu:master' into master 2023-10-13 11:02:58 +08:00
bors[bot]
62104501d4
Merge #2972
2972: switch to fts-flatcurve r=mergify[bot] a=nextgens

## What type of PR?

bug-fix

## What does this PR do?

Switch from fts-xapian to fts-flatcurve. This should address the problem with indexes getting too big and will be the default in dovecot 2.4.

Don't forget to nuke old indexes to reclaim space.

### Related issue(s)
- close #2390
- close #2184
- close #2976

## 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>
2023-10-12 18:45:55 +00:00
Florent Daigniere
0a7797e96b Review 2023-10-12 20:42:16 +02:00
bors[bot]
d00c5a44e4
Merge #2979
2979: Enhance RESTful API user retrieval with quota used bytes.  r=mergify[bot] a=Diman0

## What type of PR?

enhancement

## What does this PR do?
Enhance RESTful API user retrieval with quota used bytes.  This is the current size of the user's email box in bytes.

So the API calls for /api/v1/user and /api/v1/user/local@domain.tld now also provide the quota used bytes.

To test. Check the API key in mailu.env (API_TOKEN=MyAPIKey) and then call:

curl -X 'GET' \
  'https://**mydomain.com**/api/v1/user/test%40google.com' \
  -H 'accept: application/json' \
  -H 'Authorization: **MyAPIKey**'

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

## 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: Dimitri Huisman <diman@huisman.xyz>
2023-10-11 18:37:48 +00:00