mail/opensmtpd logging stops working if syslogd is restarted, until opensmtpd is also restarted
- Steps to reproduce:
While opensmtpd is running and logging mail server activity, restart syslogd.
- Actual Results:
opensmtpd no longer logs through syslog.
- Expected Results:
opensmtpd should continue to log after syslog is restarted.
- Additional information:
Discussion with the software author and the FreeBSD port maintainer indicates that the root cause of this problem is that opensmtpd's processes open /dev/log before chrooting to /var/empty.
If syslogd is restarted, the file descriptors pointing at /dev/log are invalidated. The opensmtpd processes try to reopen /dev/log, but as they are now chrooted to an empty directory, it is not found.
Auto-assigned to maintainer ashish@FreeBSD.org
(In reply to w.schwarzenfeld from comment #2)
Waiting for new, refactored opensmtpd release.
Thanks of reply.
Any news on this? On opensmtpd-6.8.0,1 I can confirm this bug still exists (FreeBSD 12.2).