From 9b952da6c2ab1dbee2165697fb16979fc168a6af Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Sun, 20 Mar 2022 12:11:50 +0100 Subject: [PATCH 1/3] Allow nginx to lookup IPv6 addresses It creates issues with RSPAMD/HFILTER_HOSTNAME_UNKNOWN on v6 enabled setups see https://github.com/Mailu/Mailu/issues/2260#issuecomment-1066797661 --- core/nginx/conf/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/nginx/conf/nginx.conf b/core/nginx/conf/nginx.conf index b9bb20b7..11b7468c 100644 --- a/core/nginx/conf/nginx.conf +++ b/core/nginx/conf/nginx.conf @@ -17,7 +17,7 @@ http { keepalive_timeout 65; server_tokens off; absolute_redirect off; - resolver {{ RESOLVER }} ipv6=off valid=30s; + resolver {{ RESOLVER }} valid=30s; {% if REAL_IP_HEADER %} real_ip_header {{ REAL_IP_HEADER }}; @@ -254,7 +254,7 @@ mail { server_name {{ HOSTNAMES.split(",")[0] }}; auth_http http://127.0.0.1:8000/auth/email; proxy_pass_error_message on; - resolver {{ RESOLVER }} ipv6=off valid=30s; + resolver {{ RESOLVER }} valid=30s; error_log /dev/stderr info; {% if TLS and not TLS_ERROR %} From a88424d19f65d03d9e62140cfdc719d95ddfee5b Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Sun, 20 Mar 2022 12:16:04 +0100 Subject: [PATCH 2/3] Sturdy up the warning about v6 in setup --- setup/templates/steps/compose/03_expose.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/templates/steps/compose/03_expose.html b/setup/templates/steps/compose/03_expose.html index fe0802fb..6d2150b6 100644 --- a/setup/templates/steps/compose/03_expose.html +++ b/setup/templates/steps/compose/03_expose.html @@ -31,7 +31,7 @@ avoid generic all-interfaces addresses like 0.0.0.0 or ::