Googling this error message gives lots of hits on this problem. But nothing to worry about. And no, there doesn’t seem to be a way of suppressing it.
Assuming postfix daemon has already been restarted after the update, and the problem didn’t go away.
Actually this means, that postfix was not rebuild against newer openssl.
Explanation
OpenSSL provides TWO variants of getting the version:
In the headers (client’s compile-time)
By calling a function which returns the version at openssl’s own compile-time.
If they differ, the client-app (in this case: postfix) was not rebuilt against the newer libs that came in the 9.7 update.
The only way to get rid of this, is to rebuild postfix.
Verifying that on a rocky9..6 system that just was upgraded to rocky9.7 rpm -qi postfix reports:
Install Date: Fri Nov 22 17:03:26 2024 which is from before the 9.7 upgrade.
So:
Either RedHat forgot to rebuild postfix against the newer openssl or maybe not all packages are distributed on all mirrors yet.
From the google results I read, it isn’t a big problem. Mainly because the most important part is the OpenSSL major version, so 3. So doesn’t matter if 3.0, 3.1, 3.2 or 3.5. Sure, postfix complains about it, and yes rebuilding will fix that. Other than the warning, there is no need to rebuild it since it still works.
Red Hat would have rebuilt it, if postfix would have completely stopped working, for example, OpenSSL 4 instead of OpenSSL 3. The minor point release isn’t a big problem. Unfortunately the log entries cause a little bit of spam.