mailcow/data
Sven Michels b39ac8f649 [Web] Fix: spf record validation failed with redirect
When using a redirect in your SPF record, the web UI validation
failed when your record contained a ipv6 address. In
web/inc/ajax/dns_diagnostics.php the function get_spf_allowed_hosts
is called with the second parameter to be true to expand ipv6
addresses. But when called for redirects, the value was not set to
true, so it defaulted back to false. This caused an unexpanded ipv6
address to be added to the array and the in_array match for ipv6
never matched as it is always called with expand_ipv6.
While looking at the code i noted some messed up in the indention,
which is also "fixed" by this commit.
2021-05-28 23:48:15 +02:00
..
Dockerfiles [Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik 2021-05-28 10:40:41 +02:00
assets [Git] Sort gitignore 2021-02-11 15:24:34 +01:00
conf [Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik 2021-05-28 10:40:41 +02:00
hooks [mailcow] Keep hook subdirectories 2021-04-19 08:49:55 +02:00
web [Web] Fix: spf record validation failed with redirect 2021-05-28 23:48:15 +02:00