postfix.init.pp: Make sure the postfix user is in the mail group.
This commit is contained in:
parent
7d8041e859
commit
6a83350f63
1 changed files with 5 additions and 0 deletions
|
@ -76,6 +76,11 @@ class postfix {
|
|||
case $::operatingsystem {
|
||||
"debian","ubuntu": {
|
||||
package {"postgrey": ensure => installed,}
|
||||
exec { "usermod-postfix":
|
||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||
command => "usermod -a -G mail postfix",
|
||||
unless => "id -n -G openldap | grep '\\bmail\\b'",
|
||||
}
|
||||
}
|
||||
default: {
|
||||
fail("Postgrey module not yet supported in ${::operatingsystem}.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue