3589 Revīzijas (ce9d886195cc08831111bc20436f29cca0cce2cb)
 

Autors SHA1 Ziņojums Datums
Erriez 6437540704 Change error_log to warn pirms 4 gadiem
Dimitri Huisman e5972bd9ec Set default message rate limit to 200/day pirms 4 gadiem
Dimitri Huisman b7403c850a Document the new setting in webadministration.rst. pirms 4 gadiem
bors[bot] 34b35ca9b7
Merge #1922
1922: Harden postfix's configuration r=mergify[bot] a=nextgens

## What type of PR?

enhancement

## What does this PR do?

It hardens the default configuration:
- disable AUTH commands on port 25 (nginx was not advertising the capability: normal clients wouldn't attempt it)
- fix Forward Secrecy by ensuring that we don't use session tickets and don't cache on forensically carveable mediums
- prevent clear-text credentials from being sent while authenticating to remote relays (this may break things if the relay doesn't support challenge-based authentication NOR STARTTLS - unlikely).
- switch to default RSA keysizes (2048 bits and they get rekeyed every 3 months -modern clients will do ECC)
- enable ECC certificates (much smaller than RSA keys, faster for better security margin)
- configure nginx so that it doesn't send the legacy/root CA (clients that require it are unlikely to do TLS1.2 any ways)

I don't think that any of those changes is impactful enough to warrant being documented.

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

## Prerequistes
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: Florent Daigniere <nextgens@freenetproject.org>
Co-authored-by: Jack Murray <github@c0rporation.com>
pirms 4 gadiem
Jack Murray dd127f8f06 Change letsencrypt timer from 1h --> 1 day
There's no need to be calling certbot so frequently
pirms 4 gadiem
Florent Daigniere 6704cb869a Switch to 3072bits dhparam (instead of 4096bits)
We aim for 128bits of security here
pirms 4 gadiem
Florent Daigniere f74497d929 Merge remote-tracking branch 'upstream/master' into harden_postfix pirms 4 gadiem
Jack Murray e304c352a1 Change letsencrypt timer from 1h --> 1 day
There's no need to be calling certbot so frequently
pirms 4 gadiem
Erriez 5adc4f08f6 Restore curl pirms 4 gadiem
bors[bot] 966b9cb918
Merge #1928
1928: Change letsencrypt timer from 1h --> 1 day r=mergify[bot] a=jackmurray

There's no need to be calling certbot so frequently. Letsencrypt certificates last for 90 days so polling every hour is just wasteful. Once per day should be more than sufficient to catch any certificates before they even get close to expiring.

## What type of PR?

Enhancement

## What does this PR do?

Reduces unnecessary load on the Letsencrypt ACME servers.

## Prerequistes
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: Jack Murray <github@c0rporation.com>
pirms 4 gadiem
Jack Murray 7e5a35660a
Change letsencrypt timer from 1h --> 1 day
There's no need to be calling certbot so frequently
pirms 4 gadiem
Florent Daigniere facc4b6427 Allow specific users to send email from any address pirms 4 gadiem
Erriez a5534a34dc Update Alpine version from 3.10 to 3.14 pirms 4 gadiem
Florent Daigniere 9e5cfaaec8 towncrier pirms 4 gadiem
Florent Daigniere ee54a615c1 Alpine has removed support for btree and hash pirms 4 gadiem
Diman0 4e16c9000b Give docker containers in each test one more minute for starting. pirms 4 gadiem
Diman0 146b081119 enhanced security changelog entry and added recommendation to recreate secret_key pirms 4 gadiem
Diman0 2132adcc38 Fixed typing error. pirms 4 gadiem
Diman0 e3fbf48c5a Improved changelog entry pirms 4 gadiem
Dimitri Huisman 9b2afbfa89 Resolve merge conflict pirms 4 gadiem
Diman0 b7db90b7ff Update documentation config and release notes page. pirms 4 gadiem
Diman0 529994c095 Update CHANGELOG.md and process towncrier newsfragments. pirms 4 gadiem
David Fairbrother 24747e33de Add ability to set no WEBROOT_REDIRECT to Nginx
Adds a 'none' env option to WEBROOT_REDIRECT so that no `location /`
configuration is written to nginx.conf.

This is useful for setting up Mailu and Mailman where we override the
root to proxy to the mailing list server instead. Without this change
the nginx container will not start, or for 1.7 users can set their
WEBMAIL_PATH to / with no webmail to get the same results.

This fix means that future users don't have to choose between webmail
and a root override and makes the configuration intention clear.
pirms 4 gadiem
Florent Daigniere 0b16291153 doh pirms 4 gadiem
Florent Daigniere 7b847852af fix typo pirms 4 gadiem
Florent Daigniere 1db08018da Ensure that we get certificate validation on top90
I have found a list of the top100 email destinations online and ran them
through a script to ensure that all of their MX servers had valid
configuration... this is the result
pirms 4 gadiem
Florent Daigniere e1a7657999 Now that postfix has CAs we can switch to secure
encrypt means "ensure we have some confidentiality" whereas secure means
"ensure we have confidentiality while talking to the right peer"
(protects against passive or/and active MITM attacks)
pirms 4 gadiem
Florent Daigniere 6149c759f4 doc pirms 4 gadiem
Florent Daigniere b066a5e2ac add a default tls_policy_map pirms 4 gadiem
Florent Daigniere 1df79f8132 give PFS a chance pirms 4 gadiem
Erriez 10f2c17979 Restore Roundcube PHP files pirms 4 gadiem
Erriez 5a1d89aaac Restore Rainloop Dockerfile HEALTHCHECK pirms 4 gadiem
Florent Daigniere 925105075c this is required in fact pirms 4 gadiem
Diman0 5afbf37292 Resolve build issues pirms 4 gadiem
Dimitri Huisman df64601b28
Merge branch 'master' into AdminLTE-3 pirms 4 gadiem
Erriez 556a5897d1 Install php7-pdo and php7-pdo_sqlite for contacts pirms 4 gadiem
Erriez d0a0ba6727 Optimize PHP pm setting to ondemand
The ondemand setting results in lower memory consumption in idle.
pirms 4 gadiem
Erriez 0fd97124f7 Process review feedback pirms 4 gadiem
Florent Daigniere 772e5efb7d Disable pipelining to prevent bypass pirms 4 gadiem
Erriez d472900efa Optimize Rainloop to NGINX
- Reduce build time.
- Reduce image size.
- Faster user response using CGI.
pirms 4 gadiem
Florent Daigniere c76a76c0b0 make it optional, add a knob pirms 4 gadiem
Florent Daigniere 5e1ba9d4ff towncrier pirms 4 gadiem
Florent Daigniere 109a8aa000 Ensure that we always have CERT+INTERMEDIARY CA
Let's encrypt may change things up in the future...
pirms 4 gadiem
Florent Daigniere dccd8afd51 Thanks @Diman0!
ENEEDSLEEP
pirms 4 gadiem
Florent Daigniere 974bcba5ab Restore LOGIN as tests assume it's there pirms 4 gadiem
Florent Daigniere 2b05e72ce4 Revert "maybe fix the tests"
This reverts commit f971b47fb9.
pirms 4 gadiem
Florent Daigniere f971b47fb9 maybe fix the tests pirms 4 gadiem
Florent Daigniere 4a871c0905 this causes trouble with the test pirms 4 gadiem
Florent Daigniere 12c842c4b9 In fact in fullchain we want all but the last pirms 4 gadiem
Florent Daigniere 24f9bf1064 format certs for nginx pirms 4 gadiem