[root@mail ~]# yum install opendkim
[root@mail ~]# rpm -qa|grep opendkim
libopendkim-2.11.0-0.1.el7.x86_64
opendkim-2.11.0-0.1.el7.x86_64
[root@mail ~]# systemctl restart opendkim
Job for opendkim.service failed because the control process exited with error code. See "systemctl status opendkim.service" and "journalctl -xe" for details.
[root@mail ~]# systemctl status opendkim.service
в—Џ opendkim.service - DomainKeys Identified Mail (DKIM) Milter
Loaded: loaded (/usr/lib/systemd/system/opendkim.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2022-06-23 17:32:01 UTC; 50s ago
Docs: man:opendkim(8)
man:opendkim.conf(5)
man:opendkim-genkey(8)
man:opendkim-genzone(8)
man:opendkim-testadsp(8)
man:opendkim-testkey
http://www.opendkim.org/docs.html
Process: 4329 ExecStart=/usr/sbin/opendkim $OPTIONS (code=exited, status=78)
Jun 23 17:32:01 mail.TEST.store systemd[1]: Starting DomainKeys Identified Mail (DKIM) Milter...
Jun 23 17:32:01 mail.TEST.store systemd[1]: opendkim.service: control process exited, code=exited status=78
Jun 23 17:32:01 mail.TEST.store systemd[1]: Failed to start DomainKeys Identified Mail (DKIM) Milter.
Jun 23 17:32:01 mail.TEST.store systemd[1]: Unit opendkim.service entered failed state.
Jun 23 17:32:01 mail.TEST.store systemd[1]: opendkim.service failed.
[root@mail ~]# opendkim-default-keygen
Generating default DKIM keys:
Default DKIM keys for TEST.store created in /etc/opendkim/keys.
[root@mail ~]# systemctl restart opendkim
[root@mail ~]# systemctl status opendkim.service
в—Џ opendkim.service - DomainKeys Identified Mail (DKIM) Milter
Loaded: loaded (/usr/lib/systemd/system/opendkim.service; disabled; vendor preset: disabled)
Active: active (running) since Thu 2022-06-23 17:52:17 UTC; 1s ago
Docs: man:opendkim(8)
man:opendkim.conf(5)
man:opendkim-genkey(8)
man:opendkim-genzone(8)
man:opendkim-testadsp(8)
man:opendkim-testkey
http://www.opendkim.org/docs.html
Process: 1716 ExecStart=/usr/sbin/opendkim $OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 1717 (opendkim)
CGroup: /system.slice/opendkim.service
в””в”Ђ1717 /usr/sbin/opendkim -x /etc/opendkim.conf -P /var/run/opendkim/opendkim.pid
Jun 23 17:52:17 mail.test.store systemd[1]: Starting DomainKeys Identified Mail (DKIM) Milter...
Jun 23 17:52:17 mail.test.store systemd[1]: Can't open PID file /var/run/opendkim/opendkim.pid (yet?) after start: No such file or directory
Jun 23 17:52:17 mail.test.store opendkim[1717]: OpenDKIM Filter v2.11.0 starting (args: -x /etc/opendkim.conf -P /var/run/opendkim/opendkim.pid)
Jun 23 17:52:17 mail.test.store systemd[1]: Started DomainKeys Identified Mail (DKIM) Milter.
[root@mail ~]# cat /var/run/opendkim/opendkim.pid
1749