summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/opendkim/key.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/opendkim/key.pp b/manifests/opendkim/key.pp
index f4bd353..32561f3 100644
--- a/manifests/opendkim/key.pp
+++ b/manifests/opendkim/key.pp
@@ -8,7 +8,7 @@ define mail::opendkim::key() {
}
exec { "opendkim-genkey-${name}":
- command => "opendkim-genkey -b 2048 -s mail -d ${name}",
+ command => "opendkim-genkey -b 2048 -s mail -d ${name} && chown opendkim.opendkim mail.private",
cwd => "/etc/opendkim/keys/${name}",
user => root,
group => root,