Thank you for your response, Christian. Sorry not to have replied
earlier, several things on at the moment. :(
I can't say what the boot screen indicates this time as I have no
monitor set up for the m/c at the moment.
The tmpfiles.d folder was empty. I added in two files (info obtained
from an Archlinux bbs):
opendkim.conf
D /run/opendkim 0750 opendkim opendkim
opendmarc.conf
D /run/opendmarc 0750 opendmarc postfix
That set the folder permissions correctly. Postfix itself failed
completely, though after boot there are two files in each opendmarc/dkim
folder:
opendkim.pid (permissions: root:root)
opendkim.sock (permissions: opendkim:postfix)
opendmarc.pid (permissions: opendmarc:mail)
opendmarc.sock (permissions: opendmarc:mail)
/etc/opendkim/opendkim.con contains...
UMask 002
userid opendkim:postfix
PidFile /var/run/opendkim/opendkim.pid
Socket /var/run/opendkim/opendkim.sock
/etc/opendmarc/opendmarc.con contains...
UMask 002
UserID opendmarc:postfix
PidFile /var/run/opendmarc/opendmarc.pid
Socket unix:/var/run/opendmarc/opendmarc.sock
Postfix status immediately after boot:
=============
postfix.service - Postfix Mail Transport Agent
Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled;
vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2020-07-24 15:01:14
BST; 15min ago
Process: 684 ExecStart=/usr/bin/postfix start (code=exited,
status=1/FAILURE)
Jul 24 15:01:14 SSPH systemd[1]: postfix.service: Control process
exited, code=exited, status=1/FAILURE
Jul 24 15:01:14 SSPH systemd[1]: postfix.service: Failed with result
'exit-code'.
Jul 24 15:01:14 SSPH systemd[1]: Failed to start Postfix Mail Transport
Agent.
Jul 24 15:01:14 SSPH systemd[1]: postfix.service: Scheduled restart job,
restart counter is at 5.
Jul 24 15:01:14 SSPH systemd[1]: Stopped Postfix Mail Transport Agent.
Jul 24 15:01:14 SSPH systemd[1]: postfix.service: Start request repeated
too quickly.
Jul 24 15:01:14 SSPH systemd[1]: postfix.service: Failed with result
'exit-code'.
Jul 24 15:01:14 SSPH systemd[1]: Failed to start Postfix Mail Transport
Agent.
=============
Question: Are the permissions set correctly for dkim/dmarc? I notice
they are different and not entirely the same as I set up in tmpfiles.d,
but they do work.
The postfix log has half a dozen lines:
Jul 24 15:01:09 [postfix] fatal: parameter inet_interfaces: no local
interface found for 10.0.0.91
These refer to:
inet interfaces = 127.0.0.1 10.0.0.91
the latter being the m/c IP
I ran a subset of my previous start commands and everything now ALMOST
works (until the next boot)...
===============
sudo chown -R opendkim:opendkim /var/run/opendkim
sudo systemctl start opendkim
sudo chown -R opendmarc:postfix /var/run/opendmarc
sudo systemctl start opendmarc
sudo systemctl restart postfix
===============
The log shows permission denied for dkim, which it didn't before.
Something is still not right.