Parametrize value of inet_interfaces
We don't always want to have postfix listen to all interfaces. Since the config generally defaults to listening on all interfaces, make that the default value. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
This commit is contained in:
parent
a1a1b11d8d
commit
3e56ee36c3
1 changed files with 4 additions and 1 deletions
|
@ -64,6 +64,9 @@ class postfix {
|
|||
case $postfix_mastercf_tail {
|
||||
"": { $postfix_mastercf_tail = "" }
|
||||
}
|
||||
case $postfix_inet_interfaces {
|
||||
"": { $postfix_inet_interfaces = 'all' }
|
||||
}
|
||||
|
||||
# Bootstrap moduledir
|
||||
include common::moduledir
|
||||
|
@ -153,7 +156,7 @@ class postfix {
|
|||
postfix::config {
|
||||
"myorigin": value => "${fqdn}";
|
||||
"alias_maps": value => "hash:/etc/aliases";
|
||||
"inet_interfaces": value => "all";
|
||||
"inet_interfaces": value => "${postfix_inet_interfaces}";
|
||||
}
|
||||
|
||||
case $operatingsystem {
|
||||
|
|
Loading…
Reference in a new issue