#888569 sysv startup script stumbles over smtpd running in a LXC container

Package:
opensmtpd
Source:
opensmtpd
Description:
secure, reliable, lean, and easy-to configure SMTP server
Submitter:
Harald Dunkel
Date:
2020-12-09 22:03:10 UTC
Severity:
important
Tags:
#888569#5
Date:
2018-01-27 09:05:04 UTC
From:
To:
If I run opensmtpd on the host and in some local LXC containers,
then the sysv init script on the host fails. Sample session is
attached.

This problem comes up during maintenance on the host, while the
containers with their own opensmtpd are running. Suddenly EMail
is down or cannot be restarted.

Systemd is not an option on this host. Its part of a HA cluster.


Regards
Harri

#888569#10
Date:
2018-01-29 15:06:54 UTC
From:
To:

#888569#17
Date:
2019-11-17 06:31:11 UTC
From:
To:
I'd love to help maintaining this package. Since this bug
is a show stopper for me I am running my own opensmtpd
package anyway. Not to mention it that I am using opensmtp
on OpenBSD, too.

Regards
Harri

#888569#22
Date:
2020-12-09 21:52:47 UTC
From:
To:
Dear David, Harald,

I wanted to follow up and see if you were still having issues with
opensmtpd not starting at boot.

Could you please update the init script to start smtpd with the -v flag,
and send me the verbose startup output for smtpd after a reboot?

I think it should be sufficient to apply the attached patch to
/etc/init.d/opensmtpd before rebooting. The output should be in
/var/log/mail.log .

I suspect this bug might be related to this one:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=976194

Thanks,
Ryan