From 6ea5ab04fc45a455ddad30046769c2b6389a8e25 Mon Sep 17 00:00:00 2001 From: Bruno Cornec Date: Tue, 20 Feb 2024 20:20:00 +0100 Subject: Adds entry point for dkim in postfix server conf --- modules/postfix/manifests/server.pp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'modules/postfix') 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, + } + ] + } } -- cgit v1.2.1