Dnia 26.02.2023 o godz. 21:01:42 HCImap pisze:
>
> As for your last lines: postmap without the cidr works fine to
> create a db file, and in the manfile I could find no directions here
> (there is a little line in man cidr, but I couldnt understand it
> enough to be helpful).
Let's look at "man postmap":
SYNOPSIS
postmap [-Nbfhimnoprsuvw] [-c config_dir] [-d key] [-q key]
[file_type:]file_name ...
Note that the "file_type:" part is optional. One might (and should!) wonder,
what is the default?
Maybe we can find an answer later in the manual...
file_type
The database type. To find out what types are supported, use the
"postconf -m" command.
The postmap(1) command can query any supported file type, but it
can create only the following file types:
btree The output file is a btree file, named file_name.db.
This is available on systems with support for db data‐
bases.
cdb The output consists of one file, named file_name.cdb.
This is available on systems with support for cdb data‐
bases.
dbm The output consists of two files, named file_name.pag and
file_name.dir. This is available on systems with support
for dbm databases.
hash The output file is a hashed file, named file_name.db.
This is available on systems with support for db data‐
bases.
fail A table that reliably fails all requests. The lookup ta‐
ble name is used for logging only. This table exists to
simplify Postfix error tests.
sdbm The output consists of two files, named file_name.pag and
file_name.dir. This is available on systems with support
for sdbm databases.
When no file_type is specified, the software uses the database
type specified via the default_database_type configuration
parameter.
So from the above we know:
a) what are the *all possible* file types that you can generate using
postmap (which means you don't have to run potmap for the other types)
b) how to find out which of the above are supported on your system
c) how to find out what is the default for "file_type:" on your system.
--
Regards,
Jaroslaw Rafa
[email protected]
--
"In a million years, when kids go to school, they're gonna know: once there
was a Hushpuppy, and she lived with her daddy in the Bathtub."