Don’t know where to report this. So please correct me if this is not the right place.
I’m trying to install OpenSMTPD on Rocky:
dnf install -y epel-release
dnf install -y opensmtpd
systemctl start opensmtpd.service
Job for opensmtpd.service failed because the control process exited with error code.
See "systemctl status opensmtpd.service" and "journalctl -xe" for details.
From journalctl
:
nov 16 08:36:03 myhost.example.com systemd[1]: Starting OpenSMTPD mail daemon...
nov 16 08:36:03 myhost.example.com systemd[1821]: opensmtpd.service: Failed to set up mount namespacing: No such file or directory
nov 16 08:36:03 myhost.example.com systemd[1821]: opensmtpd.service: Failed at step NAMESPACE spawning /usr/sbin/smtpd: No such file or directory
nov 16 08:36:03 myhost.example.com systemd[1]: opensmtpd.service: Control process exited, code=exited status=226
nov 16 08:36:03 myhost.example.com systemd[1]: opensmtpd.service: Failed with result 'exit-code'.
nov 16 08:36:03 myhost.example.com systemd[1]: Failed to start OpenSMTPD mail daemon.
A little investigation tells me is related to the last release. From changelog:
**2021-11-05** - Denis Fateyev <denis@fateyev.com> - 6.8.0p2-2
- Add hardened security settings to service
- Set "mbox" delivery method usage by default
**2021-01-20** - Denis Fateyev <denis@fateyev.com> - 6.8.0p2-1
- Update to 6.8.0p2 release
I think this is the change to blame:
https://src.fedoraproject.org/rpms/opensmtpd/c/92611f2d37da8518783451cfb9f749f42a3b97c4?branch=epel8
I can confirm that previous version (6.8.0p2-1) is working as expected.
dnf install -y https://kojipkgs.fedoraproject.org//packages/opensmtpd/6.8.0p2/1.el8/x86_64/opensmtpd-6.8.0p2-1.el8.x86_64.rpm
systemctl start opensmtpd.service
systemctl is-active opensmtpd.service
active