class mail::mlmmj( $subdomain = hiera('mail::mlmmj::subdomain', $mail::mlmmj::params::subdomain) ) { 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'], #} mail::mlmmj::domain { "${subdomain}.${domain}": } # TODO: remove in the future postfix::transport_regexp_snippet { "mlmmj_transport_regexp": ensure => absent, content => template('mail/mlmmj/transport_regexp.erb'), } # TODO: remove in the future postfix::virtual_regexp_snippet { "mlmmj_virtual_regexp": ensure => absent, content => template('mail/mlmmj/virtual_regexp.erb'), } }