Solved postscreen_cache error

Ok. I following along on my continued stumbling , I an running postfix 3.6 on FreeBSD 14.1
I am getting the following error (although postfix seems top be running ok)

postfix/postscreen[94222]: warning: btree:/var/db/postfix/postscreen_cache is unavailable. open database /var/db/postfix/postscreen_cache.db: Inappropriate file type or format

After some "research". in the hope that I can still learn .. I THINK that solution is to run postman against the source file for this db specifying the btree format. I tried to locate a postscreen_cache with out any success. I think my lack of knowledge has me on a fool's errand. Any thought for this fool?
 
This is a wild jump linking these two things together - could it be the APR change?

I'm just seeing "DB" and "incompatible" and thinking of this - might be a complete red herring (does Postfix even use APR?)

(Edit from a quick look at Freshports think this is a complete red herring, sorry)

Look in /ports/UPDATING:

20241110
AFFECTS: users of devel/apr1 and www/apache24
AUTHOR: brnrd@FreeBSD.org

The default BerkeleyDB provider for apr-util was changed from BerkeleyDB
5 (deprecated) to BerkeleyDB 1 from base libc. The change of version
results in a non-compatible database format.

After upgrading, you must rebuild all BerkeleyDB databases used by
apr-util (example: Apache databases created with `httxt2dbm -F db`
 
I have seen somethings similar ii. had though in the past that the db suffix were Berkeley but then there was the reference to btree. Just color me confused. .
 
I'd do rm -f /var/db/postfix/postscreen_cache.db. It's a cache file (or database), shouldn't contain anything really important.

Seems to do the trick for this issue too.
 
I suspect it will eventually be (re)generated for something that needs it. Maybe with a restart of postfix itself.
 
Back
Top