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

postfix::mta - fixed small scope mismatch.

parent de52e342
Loading
Loading
Loading
Loading
+7 −6
Changes for manifests/mta.pp: 7 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -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';
  }