changeset 176:048bc4d6af43 puppet-3.6

Make Postfix IPv4 only We have IPv6 on the server, but not publicly routable. Disabling IPv6 through sysctl didn't work
author IBBoard <dev@ibboard.co.uk>
date Sat, 31 Mar 2018 10:19:53 +0100
parents c76ba5e3685f
children 1b605c38b375
files manifests/templates.pp modules/postfix/manifests/init.pp modules/postfix/templates/main.cf.erb
diffstat 3 files changed, 3 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/manifests/templates.pp	Sat Mar 31 10:19:03 2018 +0100
     1.2 +++ b/manifests/templates.pp	Sat Mar 31 10:19:53 2018 +0100
     1.3 @@ -615,6 +615,7 @@
     1.4  	){
     1.5  	class { 'postfix':
     1.6  		mailserver => $mailserver,
     1.7 +		protocols  => 'ipv4',
     1.8  	}
     1.9  	class { 'dovecot':
    1.10  		imapserver => $imapserver,
     2.1 --- a/modules/postfix/manifests/init.pp	Sat Mar 31 10:19:03 2018 +0100
     2.2 +++ b/modules/postfix/manifests/init.pp	Sat Mar 31 10:19:53 2018 +0100
     2.3 @@ -1,5 +1,6 @@
     2.4  class postfix (
     2.5    $mailserver,
     2.6 +  $protocols='all'
     2.7    ){
     2.8    package { 'sendmail':
     2.9      ensure => 'absent',
     3.1 --- a/modules/postfix/templates/main.cf.erb	Sat Mar 31 10:19:03 2018 +0100
     3.2 +++ b/modules/postfix/templates/main.cf.erb	Sat Mar 31 10:19:53 2018 +0100
     3.3 @@ -6,6 +6,7 @@
     3.4  myhostname = <%= @mailserver %>
     3.5  myorigin = $mydomain
     3.6  inet_interfaces = all
     3.7 +inet_protocols = <%= @protocols %>
     3.8  mydestination = $myhostname, localhost.$mydomain, localhost
     3.9  unknown_local_recipient_reject_code = 550
    3.10  mynetworks = 127.0.0.0/8