I once read about an open source database for postal codes with geolocation data but now I can\'t remember its name. Can someone help?
I'm currently using this one: https://www.back4app.com/database/back4app/zip-codes-all-countries-in-the-world it's free and very useful!
It's also possible to collaborate with this dataset, in order to improve it even more. :)
You're looking for an Open GIS database - the main keyword being "GIS". This will help you find results.
The information you're looking for is usually Commercial grade (i.e. you need to pay for the data), but you can see what's available on the open-source GIS websites:
My guess is that your lost friend is GeoNames.
Yes Geonames is the place. To be more specific as slacy said
https://download.geonames.org/export/zip/
It has a list of countries' postal codes and it has an allCountries zip file.
And the data is updated daily.
Find all countries at GeoNames or run a ready-parsed MySQL script (INSERTs):
Download delivery_zip.zip (11 Mb)