notify => Exec["newaliases"],
}
}
+
+class mail::sympa::disabled inherits mail::sympa {
+ include mail::web::sympa::disabled
+
+ Service["sympa"] {
+ ensure => stopped,
+ enable => false,
+ }
+
+ File["/etc/postfix/transport_regexp"] {
+ content => undef,
+ }
+
+ File["/etc/postfix/virtual_regexp"] {
+ content => undef,
+ }
+
+ Mailalias["sympa"] {
+ ensure => absent,
+ }
+
+ Mailalias["sympa-request"] {
+ ensure => absent,
+ }
+
+ Mailalias["sympa-owner"] {
+ ensure => absent,
+ }
+}
'': { $postfix_mynetworks = "127.0.0.0/8" }
}
+ case $sympa_subdomain {
+ '': { $sympa_subdomain = "lists" }
+ }
+
# Module requirements
include postfix
include ssl::mail
# Sympa mailing list manager
case $mail_sympa {
true: {
- case $sympa_subdomain {
- '': { $sympa_subdomain = "lists" }
- }
-
- $sympa_mydestination = "${sympa_subdomain}.${domain}"
+ $sympa_mydestination = ", ${sympa_subdomain}.${domain}"
include mail::sympa
}
+ 'disabled': {
+ include mail::sympa::disabled
+ }
default: {
include mail::regexps
}
'': { $schleuder_subdomain = "encrypted" }
}
- $schleuder_mydestination = "${schleuder_subdomain}.${domain}"
+ $schleuder_mydestination = ", ${schleuder_subdomain}.${domain}"
include mail::schleuder
}
}
case $postfix_mydestination {
- '': { $postfix_mydestination = "${postfix_my_defaultdestination} ${sympa_mydestination} ${schleuder_mydestination}" }
+ '': { $postfix_mydestination = "${postfix_my_defaultdestination}${sympa_mydestination}${schleuder_mydestination}" }
}
# Include base configuration
require => File["${apache_www_folder}/${sympa_subdomain}"],
}
}
+
+class mail::web::sympa::disabled inherits mail::web::sympa {
+ Apache::site["$sympa_subdomain"] {
+ ensure => absent,
+ }
+}