I have a private postfix server on my local network. It runs under
Manjaro. On booting Manjaro I get half a dozen ERROR lines as:
FAILED: Failed to start (eg) Postfix
All are to do with postfix, dmarc, dkim etc.
I've wondered for some time now why I have to start postfix manually
after reboot but haven't had time to track it down. Since I usually
drive the machine through Remmina I never see the boot sequence, so have
previously missed this.
Postfix runs without a manual restart but dkim/dmarc leave complaints in
the log about having no path to the PID files. When starting them
manually I use:
===============
sudo mkdir /var/run/opendkim/
sudo chown -R opendkim:opendkim /var/run/opendkim
sudo systemctl enable opendkim
sudo systemctl start opendkim
sudo mkdir /var/run/opendmarc/
sudo chown -R opendmarc:postfix /var/run/opendmarc
sudo chmod -R 774 /var/run/opendmarc
sudo systemctl enable opendmarc
sudo systemctl start opendmarc
sudo systemctl restart postfix
===============
(the sequence is probably incorrect: I have to run the second block
twice before I get the proper ownership of opendmarc)
I checked the status of postfix immediately after boot and before
restarting it manually and got...
===============
postfix.service - Postfix Mail Transport Agent
Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled;
vendor preset: disabled)
Active: active (running) since Sat 2020-07-04 15:55:09 BST; 2min
27s ago
Process: 742 ExecStart=/usr/bin/postfix start (code=exited,
status=0/SUCCESS)
Main PID: 851 (master)
Tasks: 8 (limit: 9148)
Memory: 19.7M
CGroup: /system.slice/postfix.service
├─ 851 /usr/lib/postfix/bin/master -w
├─ 867 pickup -l -t fifo -u -o content_filter= -o
receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_milters
├─ 868 qmgr -l -t fifo -u
├─1591 smtpd -n smtp -t inet -u -o stress= -s 2 -o
content_filter=
├─1592 proxymap -t unix -u
├─1593 tlsmgr -l -t unix -u
├─1594 anvil -l -t unix -u
└─1604 smtpd -n smtp -t inet -u -o stress= -s 2 -o
content_filter=
Jul 04 15:55:02 SSPH systemd[1]: postfix.service: Scheduled restart job,
restart counter is at 3.
Jul 04 15:55:02 SSPH systemd[1]: Stopped Postfix Mail Transport Agent.
Jul 04 15:55:02 SSPH systemd[1]: Starting Postfix Mail Transport Agent...
Jul 04 15:55:03 SSPH systemd[1]: postfix.service: Control process
exited, code=exited, status=1/FAILURE
Jul 04 15:55:03 SSPH systemd[1]: postfix.service: Failed with result
'exit-code'.
Jul 04 15:55:03 SSPH systemd[1]: Failed to start Postfix Mail Transport
Agent.
Jul 04 15:55:04 SSPH systemd[1]: postfix.service: Scheduled restart job,
restart counter is at 4.
Jul 04 15:55:04 SSPH systemd[1]: Stopped Postfix Mail Transport Agent.
Jul 04 15:55:04 SSPH systemd[1]: Starting Postfix Mail Transport Agent...
Jul 04 15:55:09 SSPH systemd[1]: Started Postfix Mail Transport Agent.
===============
I do not know how to fix this failure. Any help, please? I have asked
this question in the Manjaro forum but with no resolution.
--
dstiles