diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2021-04-14 19:32:14 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2021-04-14 19:32:14 -0300 |
commit | 516ed2041f3ff0d893ed116b11179e4c7ae2ad09 (patch) | |
tree | 05a9b373045887cf3ffa65fd079e8e53e82268e6 /manifests | |
parent | 5eb3dca39ea4c01eb38a8c6f329e6d5e9c845732 (diff) | |
download | puppet-mail-516ed2041f3ff0d893ed116b11179e4c7ae2ad09.tar.gz puppet-mail-516ed2041f3ff0d893ed116b11179e4c7ae2ad09.tar.bz2 |
Fix debian bug 903161
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'], } } |