Skip to content
Snippets Groups Projects
Commit ac3aed9b authored by Marc Fournier's avatar Marc Fournier
Browse files

postfix::mta - fixed small scope mismatch.

parent de52e342
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
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';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment