postfix.init.pp: Make sure the postfix user is in the mail group.

This commit is contained in:
Lari Huttunen 2013-03-01 18:05:59 +01:00
parent 7d8041e859
commit 6a83350f63

View file

@ -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}.")