diff --git a/opendkim.cf b/opendkim.cf index 25af654..d1ea7ca 100644 --- a/opendkim.cf +++ b/opendkim.cf @@ -12,7 +12,6 @@ vars: "uid" string => "opendkim"; "gid" string => "opendkim"; "cfg_file" string => "/etc/opendkim.conf"; - #"pid_file" string => "/var/run/opendkim.pid"; "pid_file" string => "/run/opendkim/opendkim.pid"; centos:: @@ -20,7 +19,6 @@ vars: "uid" string => "opendkim"; "gid" string => "opendkim"; "cfg_file" string => "/etc/opendkim.conf"; - #"pid_file" string => "/var/run/opendkim.pid"; "pid_file" string => "/run/opendkim/opendkim.pid"; freebsd:: @@ -29,6 +27,7 @@ vars: "gid" string => "mailnull"; "cfg_file" string => "/usr/local/etc/mail/opendkim.conf"; "pid_file" string => "/var/run/opendkim.pid"; + "service_name" string => "milter-opendkim"; any:: @@ -79,6 +78,14 @@ reports: bundle agent opendkim_systemd_overrides { files: + freebsd:: + "/etc/rc.conf.d/milteropendkim" + create=>"true", + content=>' +milteropendkim_uid="$(opendkim.cfg[uid])" +milteropendkim_gid="$(opendkim.cfg[gid])" + '; + centos:: "/etc/systemd/system/opendkim.service.d/override.conf"