From 9b952da6c2ab1dbee2165697fb16979fc168a6af Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Sun, 20 Mar 2022 12:11:50 +0100 Subject: [PATCH] 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 %}