diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-04-07 16:07:35 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-04-07 16:07:35 -0300 |
commit | 247d8f1f2e462321f80070154b0fc30c97acba36 (patch) | |
tree | 772e0ee6d40fbeeda6cccd17f1820302d9242363 /manifests/mlmmj.pp | |
parent | 2af99be9d538b91130438473697b0e1d8279bee9 (diff) | |
download | puppet-mail-247d8f1f2e462321f80070154b0fc30c97acba36.tar.gz puppet-mail-247d8f1f2e462321f80070154b0fc30c97acba36.tar.bz2 |
Adding mlmmj support
Diffstat (limited to 'manifests/mlmmj.pp')
-rw-r--r-- | manifests/mlmmj.pp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/manifests/mlmmj.pp b/manifests/mlmmj.pp new file mode 100644 index 0000000..f07c860 --- /dev/null +++ b/manifests/mlmmj.pp @@ -0,0 +1,38 @@ +class mail::mlmmj { + include mail::packages::mlmmj + + group { 'mlmmj': + ensure => present, + } + + user { 'mlmmj': + ensure => present, + gid => 'mlmmj', + require => Group['mlmmj'], + } + + file { '/var/spool/mlmmj': + ensure => directory, + owner => mlmmj, + group => mlmmj, + mode => 0750, + require => User['mlmmj'], + } + + #cron { 'mlmmj-maintd': + # command => '/usr/bin/mlmmj-maintd -F -d /var/spool/mlmmj', + # user => mlmmj, + # hour => "*", + # minute => "*/2", + # ensure => present, + # require => User['mlmmj'], + #} + + postfix::transport_regexp { 'mlmmj_transport_regexp': + content => template('mail/postfix/mlmmj/transport_regexp.erb'), + } + + postfix::virtual_regexp { 'mlmmj_virtual_regexp': + content => template('mail/postfix/mlmmj/virtual_regexp.erb'), + } +} |