On 11/11/2011 3:03 PM, Bernard T. Higonnet wrote: > On 11/11/11 20:47, Noel Jones wrote: >> When you copy indexed files between systems with different versions >> of the BDB library, you need to rebuild the files on the new system. >> Remove the existing unusable *.db files and postmap the input files >> to create new .db files. > > I had already re-created all the db files postmap hash:file > > All the databases are still bad... >
The "Inappropriate file type or format" message is from opening a database with the wrong format, such as opening a btree: database as a hash:, or built from a different version of the BDB library, or the .db file is somehow corrupted. Please verify that you build your files with "postmap hash:file" and that your "postconf -n" output shows hash:file in all those map settings. It also may help to explicitly set "default_database_type = hash" in main.cf Is there any possibility of multiple postfix installations on your system, such as one hand-built and one from ports? One quick test is to see if you can query the map with "postmap -q somekey hash:file" or display the file with "postmap -s hash:file". If those commands don't work, your postfix build is badly broken. -- Noel Jones