class mail::mlmmj { include mail::packages::mlmmj include mail::web::mlmmj::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 => '', } postfix::virtual_regexp_snippet { 'mlmmj_virtual_regexp': content => template('mail/postfix/mlmmj/virtual_regexp.erb'), } define list($ensure = 'present') { postfix::transport_regexp_snippet { "mlmmj_transport_regexp-$name": content => "/^($name).*$/ mlmmj:$name", ensure => $ensure, } } }