From 2a99530fd499534282de62737f72ce1ef6b106c9 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 15 Aug 2010 13:40:41 -0300 Subject: Adding schleuder package class, imp4 package and mail::base class --- manifests/system.pp | 58 +++++++---------------------------------------------- 1 file changed, 7 insertions(+), 51 deletions(-) (limited to 'manifests/system.pp') diff --git a/manifests/system.pp b/manifests/system.pp index 86781ad..991764b 100644 --- a/manifests/system.pp +++ b/manifests/system.pp @@ -38,6 +38,7 @@ class mail::system { # Subsystems include mail::packages + include mail::base include mail::sasl include mail::tls include mail::dovecot @@ -46,7 +47,7 @@ class mail::system { include mail::postfixadmin include mail::web - # Mailing list manager + # Sympa mailing list manager case $mail_sympa { true: { @@ -64,55 +65,10 @@ class mail::system { } } - # Postfix configuration - postfix::config { - "mydomain": value => "$domain"; - "myhostname": value => "$fqdn"; - "mydestination": value => "$postfix_mydestination"; - "mynetworks": value => "$postfix_mynetworks"; - "relay_domains": value => '$mydestination'; - "transport_maps": value => "hash:/etc/postfix/transport"; - "mailbox_command": value => '/usr/bin/maildrop -d ${USER}'; - "virtual_mailbox_base": value => '/var/mail/virtual'; - "virtual_uid_maps": value => 'static:5000'; - "virtual_gid_maps": value => 'static:5000'; - "virtual_transport": value => 'dovecot'; - "dovecot_destination_recipient_limit": value => '1'; - "recipient_delimiter": value => '+'; - } - - postfix::hash { "/etc/postfix/virtual": - ensure => present, - } - - postfix::hash { "/etc/postfix/transport": - ensure => present, - } - - # Recipient restrictions - postfix::config { "smtpd_recipient_restrictions": - value => 'permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_rbl_client psbl.surriel.com, check_policy_service inet:127.0.0.1:60000' } - - # Virtual mailboxes - file { '/var/mail/virtual': - ensure => directory, - owner => vmail, - group => vmail, - mode => 0750, - require => User['vmail'], - } - - group { "vmail": - ensure => present, - gid => 5000, - } - - user { "vmail": - ensure => present, - uid => 5000, - gid => "vmail", - password => "*", - home => '/var/mail/virtual', - require => Group['vmail'], + # Schleuder mailing list manager + case $mail_schleuder { + true: { + include mail::packages::schleuder + } } } -- cgit v1.2.3