Skip to content

Commit

Permalink
Strip out brackets from ipv6
Browse files Browse the repository at this point in the history
  • Loading branch information
mickenordin committed Sep 4, 2024
1 parent ecedb72 commit 77f6ded
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion manifests/mail/postfix.pp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
$config = lookup($environment)
$db_hosts = join($config['db_hosts'], ' ')
$relay_hosts = join($relay_servers, ', ')
$incoming_servers = $relaying_servers.map |$server| {
regsubst($server, '[\\[\\]]', '', 'G')
}
$nextcloud_db = 'nextcloud'
$nextcloud_db_user ='nextcloud'
$nextcloud_mysql_password = lookup('nextcloud_mysql_password')
Expand All @@ -46,7 +49,7 @@
$restricted_ports = [25]
$restricted_ports.each|$port| {
sunet::nftables::docker_expose { "mail_port_${port}":
allow_clients => $relay_hosts,
allow_clients => $incoming_servers,
port => $port,
iif => $interface,
}
Expand Down

0 comments on commit 77f6ded

Please sign in to comment.