]> gitweb.fluxo.info Git - puppet-mail.git/commitdiff
Fixing relay of list messages
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 30 Aug 2010 19:01:43 +0000 (16:01 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 30 Aug 2010 19:01:43 +0000 (16:01 -0300)
manifests/base.pp
manifests/system.pp

index a8bd59a9d7c0e620e3e1659a5961120f817ddb8b..727a38bd1a7ead5524af8e728377b61e1e5160c5 100644 (file)
@@ -5,7 +5,7 @@ class mail::base {
     "myhostname":                          value => "$fqdn";
     "mydestination":                       value => "$postfix_mydestination";
     "mynetworks":                          value => "$postfix_mynetworks";
-    "relay_domains":                       value => '$mydestination';
+    "relay_domains":                       value => "$postfix_relay_domains";
     "transport_maps":                      value => "hash:/etc/postfix/transport, regexp:/etc/postfix/transport_regexp";
     "mailbox_command":                     value => '/usr/bin/maildrop -d ${USER}';
     "virtual_mailbox_base":                value => '/var/mail/virtual';
index 35cb2b902ce5e773aa38862eb9aee4bce6b2e521..6cf759af4e4ce8ed900da907dc1b9a0b27b13d6d 100644 (file)
@@ -4,7 +4,8 @@ class mail::system {
   $postfix_use_dovecot_lda       = "yes"
   $postfix_use_schleuder         = "yes"
   $postfix_use_sympa             = "yes"
-  $postfix_my_defaultdestination = '$myhostname, localhost.$mydomain, localhost'
+  $postfix_mydestination         = '$myhostname, localhost.$mydomain, localhost'
+  $postfix_default_relay_domains = '$mydestination'
 
   case $postfix_mynetworks {
     '': { $postfix_mynetworks = "127.0.0.0/8" }
@@ -38,7 +39,7 @@ class mail::system {
   # Sympa mailing list manager
   case $mail_sympa {
     true: {
-      $sympa_mydestination = ", ${sympa_subdomain}.${domain}"
+      $sympa_relaydomains = ", ${sympa_subdomain}.${domain}"
       include mail::sympa
     }
     'disabled': {
@@ -56,13 +57,13 @@ class mail::system {
         '': { $schleuder_subdomain = "encrypted" }
       }
 
-      $schleuder_mydestination = ", ${schleuder_subdomain}.${domain}"
+      $schleuder_relaydomains = ", ${schleuder_subdomain}.${domain}"
       include mail::schleuder
     }
   }
 
-  case $postfix_mydestination {
-    '': { $postfix_mydestination = "${postfix_my_defaultdestination}${sympa_mydestination}${schleuder_mydestination}" }
+  case $postfix_relay_domains {
+    '': { $postfix_relay_domains = "${postfix_default_relay_domains}${sympa_relay_domains}${schleuder_relay_domains}" }
   }
 
   # Include base configuration