diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-08-25 15:09:32 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-08-25 15:09:32 -0300 |
commit | 62c8a5b159e2ae3402880196780bfc466cb26137 (patch) | |
tree | 38458f44b7b5332d488911e47b52d50074b4797f /manifests | |
parent | 306fd0f909cef9b82292788f91bd7d7d2cc773c6 (diff) | |
download | puppet-mail-62c8a5b159e2ae3402880196780bfc466cb26137.tar.gz puppet-mail-62c8a5b159e2ae3402880196780bfc466cb26137.tar.bz2 |
Managing sympa and postfix integration
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/base.pp | 2 | ||||
-rw-r--r-- | manifests/postfixadmin.pp | 2 | ||||
-rw-r--r-- | manifests/sympa.pp | 23 |
3 files changed, 25 insertions, 2 deletions
diff --git a/manifests/base.pp b/manifests/base.pp index 972fa10..7aa96b1 100644 --- a/manifests/base.pp +++ b/manifests/base.pp @@ -6,7 +6,7 @@ class mail::base { "mydestination": value => "$postfix_mydestination"; "mynetworks": value => "$postfix_mynetworks"; "relay_domains": value => '$mydestination'; - "transport_maps": value => "hash:/etc/postfix/transport"; + "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'; "virtual_uid_maps": value => 'static:5000'; diff --git a/manifests/postfixadmin.pp b/manifests/postfixadmin.pp index 8cbcf54..be3e312 100644 --- a/manifests/postfixadmin.pp +++ b/manifests/postfixadmin.pp @@ -15,7 +15,7 @@ class mail::postfixadmin { } postfix::config { "virtual_alias_maps": - value => 'hash:/etc/postfix/virtual, proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf, proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_maps.cf, proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_catchall_maps.cf', + value => 'hash:/etc/postfix/virtual, regexp:/etc/postfix/virtual_regexp, proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf, proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_maps.cf, proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_catchall_maps.cf', require => File['/etc/postfix/sql/mysql_virtual_alias_maps.cf', '/etc/postfix/sql/mysql_virtual_alias_domain_maps.cf', '/etc/postfix/sql/mysql_virtual_alias_domain_catchall_maps.cf' ], diff --git a/manifests/sympa.pp b/manifests/sympa.pp index 2ce336b..b604006 100644 --- a/manifests/sympa.pp +++ b/manifests/sympa.pp @@ -31,4 +31,27 @@ class mail::sympa { content => template('mail/sympa/sympa.conf.erb'), require => [ File['/etc/sympa'], User['sympa'] ], } + + file { "/etc/postfix/transport_regexp": + ensure => present, + owner => root, + group => root, + mode => 0644, + content => template('mail/postfix/transport_regexp.erb'), + notify => Service['postfix'], + } + + file { "/etc/postfix/virtual_regexp": + ensure => present, + owner => root, + group => root, + mode => 0644, + content => template('mail/postfix/virtual_regexp.erb'), + notify => Service['postfix'], + } + + postfix::config { + "sympa_destination_recipient_limit": value => '1'; + "sympabounce_destination_recipient_limit": value => '1'; + } } |