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_mydestination = '$myhostname, localhost.$mydomain, localhost' $postfix_default_relay_domains = '$mydestination' case $postfix_mynetworks { '': { $postfix_mynetworks = "127.0.0.0/8" } } case $sympa_subdomain { '': { $sympa_subdomain = "lists" } } # Module requirements include postfix include ssl::mail # Common subsystems include mail::packages include mail::tls include mail::amavisd include mail::header_checks include mail::clamav # Virtual mail system case $mail_virtual { true: { include mail::virtual } default: { include mail::regular } } # Sympa mailing list manager case $mail_sympa { true: { $sympa_relay_domains = ", ${sympa_subdomain}.${domain}" include mail::sympa } 'disabled': { include mail::sympa::disabled } default: { include mail::regexps } } # Schleuder mailing list manager case $mail_schleuder { true: { case $schleuder_subdomain { '': { $schleuder_subdomain = "encrypted" } } $schleuder_relay_domains = ", ${schleuder_subdomain}.${domain}" include mail::schleuder } } case $postfix_relay_domains { '': { $postfix_relay_domains = "${postfix_default_relay_domains}${sympa_relay_domains}${schleuder_relay_domains}" } } # Include base configuration include mail::base }