diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-08-27 17:00:29 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-08-27 17:00:29 -0300 |
commit | 86dfb7091fff032575cf322ab9f6132e4be49cdb (patch) | |
tree | 743c7d6ccf02ab3f4b23ffbfad7b56c49e825e63 /manifests | |
parent | 54b0b38ac1d2a498f6426b085b7b0c4dad31f5a8 (diff) | |
download | puppet-mail-86dfb7091fff032575cf322ab9f6132e4be49cdb.tar.gz puppet-mail-86dfb7091fff032575cf322ab9f6132e4be49cdb.tar.bz2 |
Introducing schleuder_subdomain; postfix_mydestination now has sympa_mydestination and schleuder_mydestination
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/schleuder.pp | 2 | ||||
-rw-r--r-- | manifests/sympa.pp | 4 | ||||
-rw-r--r-- | manifests/system.pp | 33 |
3 files changed, 24 insertions, 15 deletions
diff --git a/manifests/schleuder.pp b/manifests/schleuder.pp index ae51c9c..1be2f7a 100644 --- a/manifests/schleuder.pp +++ b/manifests/schleuder.pp @@ -4,7 +4,7 @@ class mail::schleuder { postfix::config { "schleuder_destination_recipient_limit": value => '1' } - postfix::transport { "encrypted.$domain": + postfix::transport { "${schleuder_subdomain}.$domain": ensure => present, destination => "schleuder", } diff --git a/manifests/sympa.pp b/manifests/sympa.pp index 42b34f8..e526f7a 100644 --- a/manifests/sympa.pp +++ b/manifests/sympa.pp @@ -16,10 +16,6 @@ class mail::sympa inherits mail::regexps { '': { $sympa_database_host = "localhost" } } - case $sympa_subdomain { - '': { $sympa_subdomain = "lists" } - } - case $sympa_listmasters { '': { $sympa_listmasters = "listmaster@${fqdn}" } } diff --git a/manifests/system.pp b/manifests/system.pp index 5b08c83..5207f4d 100644 --- a/manifests/system.pp +++ b/manifests/system.pp @@ -1,13 +1,10 @@ class mail::system { - $postfix_smtp_listen = "all" - $postfix_use_amavisd = "yes" - $postfix_use_dovecot_lda = "yes" - $postfix_use_schleuder = "yes" - $postfix_use_sympa = "yes" - - case $postfix_mydestination { - '': { $postfix_mydestination = '$myhostname, localhost.$mydomain, localhost' } - } + $postfix_smtp_listen = "all" + $postfix_use_amavisd = "yes" + $postfix_use_dovecot_lda = "yes" + $postfix_use_schleuder = "yes" + $postfix_use_sympa = "yes" + $postfix_my_defaultdestination = '$myhostname, localhost.$mydomain, localhost' case $postfix_mynetworks { '': { $postfix_mynetworks = "127.0.0.0/8" } @@ -19,7 +16,6 @@ class mail::system { # Common subsystems include mail::packages - include mail::base include mail::tls include mail::amavisd include mail::header_checks @@ -38,6 +34,11 @@ class mail::system { # Sympa mailing list manager case $mail_sympa { true: { + case $sympa_subdomain { + '': { $sympa_subdomain = "lists" } + } + + $sympa_mydestination = "${sympa_subdomain}.${domain}" include mail::sympa } default: { @@ -48,7 +49,19 @@ class mail::system { # Schleuder mailing list manager case $mail_schleuder { true: { + case $schleuder_subdomain { + '': { $schleuder_subdomain = "encrypted" } + } + + $schleuder_mydestination = "${schleuder_subdomain}.${domain}" include mail::schleuder } } + + case $postfix_mydestination { + '': { $postfix_mydestination = "${postfix_my_defaultdestination} ${sympa_mydestination} ${schleuder_mydestination}" } + } + + # Include base configuration + include mail::base } |