sudo dpkg -i opensmtpd_6.0.3p1-1build1-fix_amd64.deb
Why this … again?
After I had updated my blog from the kinda outdated Ubuntu 14.04 LTS to 18.04 LTS, I notcied that the
OpenSMTP Package is bugged, again.
While the installation succeeds and the mail server starts up as expected, it dies (without any errormessage), as soon as a secure connection is made.
Systemd doesn’t help here - the mail server is not being restarted. Even if that would be the case, one could only receive mails that come in without any SSL being used during transmission.
This seems to be of little use nowadays and I don’t expect anybody (hopefully) to be willing to use it that way.
Therefore I have built myself a working replacement.
It’s a modified version of the original package, one might obtain issuing the good old
apt source opensmtpd
Surely I might as well use
bzr, but that didn’t matter to me right now.
I adopted the fix from: OpenSMTPD GitHub
The author doesn’t build a package there, instead he compiles from scratch directly at the affected server and just runs
That leads to the situation, that programs are installed to wrong paths and from there on there will be two versions in the system. You’ll need to activate the new one in
systemd by hand. The path to the config file will be different, too.
Thus, the usual way of getting an official fix via a normal package update, will be blocked.
Thats why I decided not to follow these instructions and built a full package instead.
After patching with the only file that has to be changed, the package can be build with the usual tools.
The next update should now be able to replace the the temporary fix, without any user interaction being required.