diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/dovecot.pp | 12 | ||||
-rw-r--r-- | manifests/virtual.pp | 4 |
2 files changed, 14 insertions, 2 deletions
diff --git a/manifests/dovecot.pp b/manifests/dovecot.pp index d76ae79..f0ab0dd 100644 --- a/manifests/dovecot.pp +++ b/manifests/dovecot.pp @@ -1,9 +1,17 @@ class mail::dovecot { + group { 'dovecot': + ensure => present, + } + + user { 'dovecot': + ensure => present, + gid => 'dovecot', + require => Group['dovecot'], + } - # Dovecot service { "dovecot": ensure => running, - require => [ Package['dovecot-imapd'], File['/etc/dovecot/dovecot.conf', '/etc/dovecot/dovecot-sql.conf'] ], + require => [ Package['dovecot-imapd'], File['/etc/dovecot/dovecot.conf', '/etc/dovecot/dovecot-sql.conf'], User['dovecot'], ], } file { "/etc/dovecot/dovecot.conf": diff --git a/manifests/virtual.pp b/manifests/virtual.pp index df2f364..c548ba1 100644 --- a/manifests/virtual.pp +++ b/manifests/virtual.pp @@ -31,12 +31,16 @@ class mail::virtual( gid => 5000, } + # The vmail user maybe needs to be in the dovecot group to be able to use the stats-writer + # See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=903161 user { "vmail": ensure => present, uid => 5000, gid => "vmail", password => "*", home => '/var/mail/virtual', + #groups => [ 'dovecot', ], + #require => Group['vmail', 'dovecot'], require => Group['vmail'], } } |