aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/postfix/manifests/server.pp16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/postfix/manifests/server.pp b/modules/postfix/manifests/server.pp
index 85ab261c..ef6ef4e8 100644
--- a/modules/postfix/manifests/server.pp
+++ b/modules/postfix/manifests/server.pp
@@ -2,6 +2,8 @@ class postfix::server inherits postfix {
include postgrey
include amavis
include spamassassin
+ include opendkim
+ include opendkim::variable
File['/etc/postfix/main.cf'] {
content => template('postfix/main.cf'),
@@ -10,4 +12,18 @@ class postfix::server inherits postfix {
file { '/etc/postfix/transport_regexp':
content => template('postfix/transport_regexp'),
}
+
+class { '::opendkim':
+ socket => 'inet:'.$socketp.'@127.0.0.1',
+ trusted_hosts => ['::1','127.0.0.1','localhost'],
+ keys => [
+ {
+ domain => $domain,
+ selector => $selector,
+ publickey => 'p=yourPublicKey',
+ privatekey => 'Your Private Key',
+ signingdomains => $sdomain,
+ }
+ ]
+ }
}