Skip to content

Commit

Permalink
postfix::mta - fixed small scope mismatch.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Fournier committed Apr 4, 2012
1 parent de52e34 commit ac3aed9
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions manifests/mta.pp
Expand Up @@ -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';
}
Expand Down

0 comments on commit ac3aed9

Please sign in to comment.