postfix + cyrus: More permission fixes.
This commit is contained in:
parent
7ad4fb5826
commit
1182b71d2b
2 changed files with 10 additions and 0 deletions
|
@ -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":
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue