summaryrefslogtreecommitdiff
path: root/manifests/mlmmj.pp
blob: 93de6615c8222b1b4f6c824f6db7e9de4c8dccb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
class mail::mlmmj(
  $subdomain = hiera('mlmmj_subdomain', 'mlmmj')
) {

  include mail::mlmmj::packages
  include mail::mlmmj::web::disabled

  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     => root,
  #  hour     => "*",
  #  minute   => "*/2",
  #  ensure   => present,
  #  require  => User['mlmmj'],
  #}

  #postfix::transport_regexp_snippet { 'mlmmj_transport_regexp':
  #  content => template('mail/mlmmj/transport_regexp.erb'),
  #}

  postfix::virtual_regexp_snippet { 'mlmmj_virtual_regexp':
    content => template('mail/mlmmj/virtual_regexp.erb'),
  }
}