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" }
# Common subsystems
include mail::packages
- include mail::base
include mail::tls
include mail::amavisd
include mail::header_checks
# Sympa mailing list manager
case $mail_sympa {
true: {
+ case $sympa_subdomain {
+ '': { $sympa_subdomain = "lists" }
+ }
+
+ $sympa_mydestination = "${sympa_subdomain}.${domain}"
include mail::sympa
}
default: {
# 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
}