Commit ac3aed9b authored by Marc Fournier's avatar Marc Fournier
Browse files

postfix::mta - fixed small scope mismatch.

parent de52e342
......@@ -32,26 +32,27 @@
#
class postfix::mta {
case $::postfix_relayhost {
case $postfix_relayhost {
'': { fail('Required \$postfix_relayhost variable is not defined.') }
default: {}
}
case $::postfix_mydestination {
case $postfix_mydestination {
'': { $postfix_mydestination = '\$myorigin' }
default: {}
}
case $::postfix_mynetworks {
"": { $postfix_mynetworks = "127.0.0.0/8" }
case $postfix_mynetworks {
"": { $postfix_mynetworks = "127.0.0.0/8" }
default: {}
}
include postfix
postfix::config {
'mydestination': value => $::postfix_mydestination;
'mynetworks': value => $::postfix_mynetworks;
'relayhost': value => $::postfix_relayhost;
'mydestination': value => $postfix_mydestination;
'mynetworks': value => $postfix_mynetworks;
'relayhost': value => $postfix_relayhost;
'virtual_alias_maps': value => 'hash:/etc/postfix/virtual';
'transport_maps': value => 'hash:/etc/postfix/transport';
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment