+++ /dev/null
-class mail::regexps {
- file { "/etc/postfix/transport_regexp":
- ensure => present,
- owner => root,
- group => root,
- mode => 0644,
- notify => Service['postfix'],
- }
-
- file { "/etc/postfix/virtual_regexp":
- ensure => present,
- owner => root,
- group => root,
- mode => 0644,
- notify => Service['postfix'],
- }
-}
-class mail::sympa inherits mail::regexps {
+class mail::sympa {
# Sympa subsystems
include mail::web::sympa
include mail::packages::sympa
source => "puppet:///modules/mail/sympa/logrotate",
}
- File["/etc/postfix/transport_regexp"] {
+ postfix::transport_regexp { 'sympa_transport_regexp':
content => template('mail/postfix/sympa/transport_regexp.erb'),
}
- File["/etc/postfix/virtual_regexp"] {
+ postfix::virtual_regexp { 'sympa_virtual_regexp':
content => template('mail/postfix/sympa/virtual_regexp.erb'),
}
enable => false,
}
- File["/etc/postfix/transport_regexp"] {
+ Postfix::Transport_regexp['sympa_transport_regexp'] {
content => undef,
}
- File["/etc/postfix/virtual_regexp"] {
+ Postfix::Virtual_regexp['sympa_virtual_regexp'] {
content => undef,
}
class mail::system {
- $postfix_smtp_listen = "all"
- $postfix_use_amavisd = "yes"
- $postfix_use_dovecot_lda = "yes"
- $postfix_use_schleuder = "yes"
- $postfix_use_sympa = "yes"
- $postfix_anon_sasl = "yes"
- $postfix_mydestination = '$myhostname, localhost.$mydomain, localhost'
- $postfix_default_relay_domains = '$mydestination'
+ $postfix_smtp_listen = "all"
+ $postfix_use_amavisd = "yes"
+ $postfix_use_dovecot_lda = "yes"
+ $postfix_use_schleuder = "yes"
+ $postfix_use_sympa = "yes"
+ $postfix_anon_sasl = "yes"
+ $postfix_manage_transport_regexp = "yes"
+ $postfix_manage_virtual_regexp = "yes"
+ $postfix_mydestination = '$myhostname, localhost.$mydomain, localhost'
+ $postfix_default_relay_domains = '$mydestination'
case $postfix_mynetworks {
'': { $postfix_mynetworks = "127.0.0.0/8" }
include mail::sympa::disabled
}
default: {
- include mail::regexps
}
}