161 Révisions (a60159a0db89b56fc86e163a77a13e760a315237)

Auteur SHA1 Message Date
bladeswords 2ddf46ad2b
Update crypto to be modern and inline with tls.conf
Updated to match tls.conf and be aligned to more modern cryptographic standards and only use currently secure protocols and ciphers.
il y a 6 ans
Tom Radtke 4f973f63e6
Upgrading nginx TLS configuration il y a 6 ans
bors[bot] dcda412b99
Merge #1211
1211: Split HOST_ANTISPAM in HOST_ANTISPAM_MILTER and HOST_ANTISPAM_WEBUI r=mergify[bot] a=micw

## What type of PR?

bug-fix

## What does this PR do?

Fixes #1190 by separating HOST_ANTISPAM into HOST_ANTISPAM_MILTER and HOST_ANTISPAM_WEBUI

### Related issue(s)
- closes #1190
- closes #1150

## 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
- [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/guide.html#changelog) entry file.


Co-authored-by: Michael Wyraz <michael@wyraz.de>
il y a 6 ans
bors[bot] b668eccc17
Merge #1181
1181: Update to address issue #1178 (HTTP headers) r=muhlemmer a=bladeswords

This change should remove the duplicate `x-xss-protection` header and also the `x-powered-by` header.  Hopefully a pull request to main is appropriate, but may be worth back porting to 1.7.

Tested config by modifying live 1.7 nginx config and reloading.  Has had the desired outcome of removing the headers.

```/etc/nginx # nginx -t -c /etc/nginx/nginx.conf 
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
/etc/nginx # nginx -s reload
```

These steps were based on:
- https://serverfault.com/questions/928912/how-do-i-remove-a-server-added-header-from-proxied-location
- https://serverfault.com/questions/929571/overwrite-http-headers-comming-back-from-a-web-application-server-proxied-in-ngi
- http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_hide_header

## What type of PR?

Enhancement

## What does this PR do?
Removes duplicate and unneeded headers.  See issue #1178 

### Related issue(s)
- issue: #1178 

## 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/guide.html#changelog) entry file.


Co-authored-by: bladeswords <bladeswords@users.noreply.github.com>
il y a 6 ans
Michael Wyraz a907fe4cac Split HOST_ANTISPAM in HOST_ANTISPAM_MILTER and HOST_ANTISPAM_WEBUI il y a 6 ans
Michael Wyraz c20976f071 Allow smtp auth login for TLS port (similar to SSL port) il y a 6 ans
bors[bot] 20e00ac0c4
Merge #1158
1158: Use nginx for kubernetes ingress r=kaiyou a=micw

## What type of PR?

enhancement

## What does this PR do?

Currently, kubernetes uses a complex ingress setting which is not portable across different ingress controllers. This PR simplifies the ingress and delegates everythins special to Mailu to the front container,

### Related issue(s)
- closes #1121
- closes #1117
- closes #1021
- closes #1045

## Prerequistes

- [x] In case of feature or enhancement: documentation updated accordingly
- [x] Unless it's docs or a minor change: add [changelog]

Co-authored-by: Michael Wyraz <michael@wyraz.de>
il y a 6 ans
bladeswords b13d143b34
Update to address issue #1178 (HTTP headers)
This change should remove the duplicate `x-xss-protection` header and also the `x-powered-by` header.  Hopefully a pull request to main is appropriate, but may be worth back porting to 1.7.

Tested config by modifying live 1.7 nginx config and reloading.  Has had the desired outcome of removing the headers.

```/etc/nginx # nginx -t -c /etc/nginx/nginx.conf 
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
/etc/nginx # nginx -s reload
```

These steps were based on:
- https://serverfault.com/questions/928912/how-do-i-remove-a-server-added-header-from-proxied-location
- https://serverfault.com/questions/929571/overwrite-http-headers-comming-back-from-a-web-application-server-proxied-in-ngi
- http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_hide_header
il y a 6 ans
Thomas Sänger 5fa87fbdf7
front: advertise real capabilites of mail-backends il y a 6 ans
Michael Wyraz 92645bcd4a Use nginx for kubernetes ingress il y a 6 ans
Tim Möhlmann ed0fb77a01
Catch empty WEBMAIL and WEBDAV address il y a 6 ans
Ionut Filip 075417bf90 Merged master and fixed conflicts il y a 6 ans
Thomas Sänger 2c7d1d2f71
use HTTP/1.1 for proxyied connections il y a 6 ans
Ionut Filip 4c25c83419 HOST_* and *_ADDRESS variables cleanup il y a 7 ans
Tim Möhlmann 5636e7f5a7
Remove to avoid matching webroot il y a 7 ans
Tim Möhlmann 4f93e09028
Implement favicon package
Credit to:
- https://stackoverflow.com/a/19590415/1816774
- https://realfavicongenerator.net/
il y a 7 ans
Tim Möhlmann 24828615cf
Webmail on root, fixes #757 il y a 7 ans
Tim Möhlmann c00910ca4b
Merge remote-tracking branch 'upstream/master' into extend-nginx il y a 7 ans
Tim Möhlmann 97d338e68a
Rectify 'endif' placement il y a 7 ans
Tim Möhlmann 425cdd5e77
Fix syntax errors il y a 7 ans
Tim Möhlmann 20f1faf6d0
Send 404 when nothing server at '/'
Prevents Nginx welcome screen
il y a 7 ans
Tim Möhlmann 2de4995fec
Don't redirect when webmail is served on '/' il y a 7 ans
Tim Möhlmann 9dd447e23b
Add login method to smtp_auth under ssl
Fixes #704
il y a 7 ans
Patrick Georgi eac4d553a9 nginx: Allow extending config with overrides
To facilitate this, the default redirect at / can be disabled, even if
the default remains at redirecting to the webmailer.

The extensions are within the host scope and are read from
$ROOT/overrides/nginx/*.conf.
il y a 7 ans
Thomas Sänger 603b6e7390
Merge pull request #2 from usrpro/fix-nginx-healthcheck
Fix nginx healthcheck
il y a 7 ans
Tim Möhlmann c3e89967fb
Fix front health checking
- Specified seperated /health path in order to allow for healthcheck even if webmail and admin are not seletectd. This also allows healthchecking fom external services like DNS load balancers;
- Make curl not to fail on TLS because localhost is not included in the certificates.
il y a 7 ans
mergify[bot] bce1487338
Merge pull request #576 from hacor/master
Kubernetes fixed for production
il y a 7 ans
Paul Williams 78bd5aea1c enable http2, because it's that easy il y a 7 ans
hoellen d4f32c3e7d remove rewrite if webmail is on root il y a 7 ans
hacor 4ea12deae7 Added kubernetes to Mailu il y a 7 ans
kaiyou 75a1bf967c
Merge pull request #502 from hoellen/webmail-messagesize
Use message_size_limit variable from env for webmail client_max_body_size
il y a 7 ans
hoellen c51e1b9eef webmail client_max_body_size with message_size_limit and 8M tolerance il y a 7 ans
hoellen 81a6a7cbf6 Use message_size variable from env for webmail il y a 7 ans
hoellen a1fb8442e3 Add posibilty to run webmail on root '/' il y a 7 ans
Scott b9e67635f4 Use HOST_ADMIN in "Forwarding authentication server". Fixes #436. il y a 8 ans
kaiyou dfb5463c94 Relax the frame filtering to allow roundcube to display previews il y a 8 ans
kaiyou 04278b6cbf Pass the full host to the backend, fixes #372 il y a 8 ans
kaiyou 6c56c8e298 Specify the client max body size in the front, related to #371 il y a 8 ans
Mildred Ki'Lya f538e33dcf Parametrize hosts
Allows to use mailu without docker-compose when hostnames are not set up
by docker itself but provided via a separate resolver.

Use case: use mailu using nomad scheduler and consul resolver instead of
docker-compose. Other servers are provided by the DNS resolver that
resolves names like admin.service.consul or webmail.service.consul.
These names needs to be configurable.
il y a 8 ans
SunMar 6ec0fe7036 Adding options for mail-letsencrypt il y a 8 ans
kaiyou d0b8de72e4 Do not deny HTTP access upon TLS error when the flavor is mail il y a 8 ans
kaiyou bfc898c2d8 Move dhparam to /conf il y a 8 ans
kaiyou acb5d7da38 Use relative redirect for / to the webmail il y a 8 ans
kaiyou 2dfc91ac4d Use a map for passing x-forwarded-proto along il y a 8 ans
kaiyou a4f46ced49 Properly use x-forwarded-proto with redirects in the webui, related to #347 il y a 8 ans
kaiyou 48d736feef Configure a resolver for the mail server to populate xclient hostnames il y a 8 ans
kaiyou 743eb81908 Fix the Webdav behavior with Radicale, related to #334 il y a 8 ans
kaiyou 328001a417
Merge pull request #329 from HorayNarea/patch-1
Disable ssl_session_tickets, see https://wiki.mozilla.org/Security/Server_Side_TLS#TLS_tickets_.28RFC_5077.29
il y a 8 ans
kaiyou f3ae318132 Perform webdav authentication in nginx, fixes #330 il y a 8 ans
kaiyou 8920982213 Properly pass the request uri to the authentication backend il y a 8 ans
kaiyou 97dd9ed77c Fix a missing variable in the nginx config il y a 8 ans
Thomas Sänger d61ba8e651
disable ssl_session_tickets il y a 8 ans
kaiyou eb32871904 Force nginx to run dns queries at runtime il y a 8 ans
Thomas Sänger ad7c5e48c5
automatically set nginx-worker based on CPU-count il y a 8 ans
kaiyou f362ecdb19 Fix the missing trailing space on /webmail, fixes #304 il y a 8 ans
kaiyou 1a3f85fbc2 Make the rspamd webui available, fixes #157 il y a 8 ans
kaiyou 92f2025d7c Enable pop3 on the frontend, fix #313 il y a 8 ans
kaiyou bfa50c5aa7 Add a new TLS flavor named 'mail' il y a 8 ans
kaiyou edbea372e9 Merge branch 'master' into refactor-repo il y a 8 ans
kaiyou ac53b3ed97 Merge branch 'master' into refactor-repo il y a 8 ans
kaiyou 689be5f2d9 Move all directories per theme il y a 8 ans