OpenSMTPD 7.6.0 wont start after upgrade - (FreeBSD 14.2)

Hi
I updated my mailserver to OpenSMTPD 7.6.0 thats installed inside a ezjail and after a restart smtpd wont start.

smtpd -d
info: OpenSMTPD 7.6.0-portable starting
passwd[77606]: warn: table-api: imsg_get: Result too large
lookup: table-proc: unexpected EOF during handshake
smtpd: process lka socket closed

I tried to uninstall and then reinstall all packages that I know of related to opensmtpd:
opensmtpd opensmtpd-extras-table-passwd opensmtpd-filter-rspamd opensmtpd-filter-senderscore

When searching online the only thing I found that looks similar is a mailing list from openbsd:
But this thread mentions "opensmtpd-table-passwd package" but I cant find anything like that when searching "pkg search table-passwd" but
opensmtpd-extras-table-passwd.

I probably missed something when doing the upgrade :-/

/Lartten
 
I am getting the same error on 14.1.

Not sure, but I think the "opensmtpd-table-*" packages need to be added to the repo. And the current versions ("opensmtpd-extras-*") should be removed as they are not compatible with 7.6. Not sure though???
 
I have same issue on a fresh install of 14.2. I followed the instructions on: https://it-notes.dragas.net/2024/03...erver-freebsd-opensmptd-rspamd-dovecot-part1/ to setup personal email. Service smtpd wont start as long as we have table passwd ->
Code:
table passwd passwd:/usr/local/etc/mail/passwd
in the configuration
/usr/local/etc/mail/smtpd.conf

The errors are:
Bash:
smtpd[33023]: info: OpenSMTPD 7.6.0-portable starting
smtpd[33027]: lookup: table-proc: unexpected EOF during handshake
smtpd[33024]: smtpd: process lka socket closed

Before starting the service, I could verify the configuration using
smtpd -n
The test responds "configuration OK".

The service starts working if I remove the table passwd in the configuration, by removing line
Code:
table passwd passwd:/usr/local/etc/mail/passwd
I have opensmtpd-extras-table-passwd-6.7.1_1,1 package installed.
I have opensmtpd-extras-6.7.1_1,1 is installed too; but removing that does not seem to fix the issue.

Highly appreciate any hints.
 
Apparently OpenSMTPD v7.6 has been published to ports, without fully considering changes occurred upstream.
As far as I have understood, smtpd-tables protocol has changed and it is now incompatible with previous versions.
Packages named opensmtpd-extras-table-* are deprecated and they should be replaced with new packages, which implement the new protocol.
Such new packages are available for OpenBSD, but they have not been ported to FreeBSD yet.

Therefore, if you upgrade to 7.6, you are going to run into that error.
For further information: https://lists.freebsd.org/archives/dev-commits-ports-all/2025-January/143664.html

This has happened to me too, and I have downgraded to 7.3, by removing 7.6 and manually installing 7.3 from /var/cache/pkg.
I am waiting for table-* packages to become available before upgrading to 7.6 again.
 
I fixed it by installing opensmtpd and all related files from ports instead. (Maybe not necessary?)
Then cloned the table-passwd git from https://github.com/OpenSMTPD/table-passwd.git and copied in the files manually.
Bash:
git clone https://github.com/OpenSMTPD/table-passwd.git
cd table-passwd
sh bootstrap
./configure
make
make install
cp table-passwd /usr/local/libexec/opensmtpd/
cp table-passwd.5 /usr/local/share/man/man5/

It is possible that just cloning the git and copying table-passwd is enough. I have not tried that but if someone does, pleas let me know.
 
Back
Top