> It seems likely that the sa-comple postinst and spamd postinst are > racing with each other here. I'm really surprised that this hasn't come > up before...
A dpkg trigger allowing spamd's own postinst to restart the process, rather than doing it directly from sa-compile's postinst, may resolve the race condition. Something like https://salsa.debian.org/noahm/spamassassin/-/commit/991ad7c86f0bccb4d95dcc2de6e0eb42116b6f50

