summaryrefslogtreecommitdiff
path: root/manifests/base.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-08-26 11:31:22 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-08-26 11:31:22 -0300
commitdb85b89742382894cb5736fa6a654e92dc92bf20 (patch)
treefa3e27e1b01b11c785490a08c9399f6ccedfb7e4 /manifests/base.pp
parent012f17f3f9acf8fc6f18a832715a751e379693ca (diff)
downloadpuppet-mail-db85b89742382894cb5736fa6a654e92dc92bf20.tar.gz
puppet-mail-db85b89742382894cb5736fa6a654e92dc92bf20.tar.bz2
Major refactor to enhance per-subsystem config isolation
Diffstat (limited to 'manifests/base.pp')
-rw-r--r--manifests/base.pp53
1 files changed, 3 insertions, 50 deletions
diff --git a/manifests/base.pp b/manifests/base.pp
index f3b68e4..a8bd59a 100644
--- a/manifests/base.pp
+++ b/manifests/base.pp
@@ -11,65 +11,18 @@ class mail::base {
"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":
+ postfix::hash { "/etc/postfix/virtual":
ensure => present,
- gid => 5000,
}
- user { "vmail":
- ensure => present,
- uid => 5000,
- gid => "vmail",
- password => "*",
- home => '/var/mail/virtual',
- require => Group['vmail'],
- }
-
- # Sympa mailing list manager
- case $mail_sympa {
- true: { }
- default: {
- 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'],
- }
- }
+ postfix::hash { "/etc/postfix/transport":
+ ensure => present,
}
}