changeset 317:2a20a5b7f65a

Swap IPv6 Postfix to "all" protocols to support PROXY Without this the proxied connection sends "PROXY TCPv4" and Postfix rejects it
author IBBoard <dev@ibboard.co.uk>
date Sat, 29 Feb 2020 13:21:01 +0000
parents 84a575614d3c
children 6c89e2c3b5aa
files manifests/templates.pp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/manifests/templates.pp	Thu Feb 27 21:00:28 2020 +0000
+++ b/manifests/templates.pp	Sat Feb 29 13:21:01 2020 +0000
@@ -713,7 +713,7 @@
 		mailserver_ip => $mailserver_ip,
 		mailserver_proxy => $proxy_ip,
 		proxy_upstream => $proxy_upstream,
-		protocols  => $mailserver_ip =~ Stdlib::IP::Address::V6 ? { true => 'ipv6', default => 'ipv4' },
+		protocols  => $mailserver_ip =~ Stdlib::IP::Address::V6 ? { true => 'all', default => 'ipv4' },
 	}
 	class { 'dovecot':
 		imapserver => $imapserver,