postfix + cyrus: More permission fixes.

This commit is contained in:
Lari Huttunen 2013-03-05 16:30:42 +01:00
parent 7ad4fb5826
commit 1182b71d2b
2 changed files with 10 additions and 0 deletions

View file

@ -61,6 +61,11 @@ class cyrus {
owner => "root", owner => "root",
group => "mail", group => "mail",
notify => Service["cyrus-imapd"], notify => Service["cyrus-imapd"],
exec { "usermod-cyrus-ssl-cert":
path => "/bin:/usr/bin:/sbin:/usr/sbin",
command => "usermod -a -G ssl-cert cyrus",
unless => "id -n -G cyrus | grep '\\bssl-cert\\b'",
}
} }
file { "/etc/cyrus.conf": file { "/etc/cyrus.conf":

View file

@ -89,6 +89,11 @@ class postfix {
group => "postfix", group => "postfix",
require => Package["postfix"], require => Package["postfix"],
notify => Service["postfix"], notify => Service["postfix"],
exec { "usermod-postfix-ssl-cert":
path => "/bin:/usr/bin:/sbin:/usr/sbin",
command => "usermod -a -G ssl-cert postfix",
unless => "id -n -G postfix | grep '\\bssl-cert\\b'",
}
} }
if $postgrey { if $postgrey {