Hi!

Why postfix does not allow using of regular plaintext maps as used as the
*source* for postmap/postalias commands, without extra indexing (.db/.cdb/etc)?

There are very many setups where map size is not a concern at all, the maps are
small and consumes tiny fraction of the process memory size.  For these, reading
the whole file contents into memory at the process startup seems like a no-cost
solution, but it saves the need to index the map, to convert it to a different
format, and many other hassles like this.

There is one possible issue in this context - it is handling of the map editing.
Usually a map file is edited with a regular text editor (vi/nano/etc), and is 
saved
a) non-atomically, and b) it might has errors.  When postmap/postalias is used
to index the file, it will also report possible errors, and it is run at the 
right
moment, when the admin finished editing. But this prob is the same when editing
main.cf file (atomicity), and only syntax errors gets detected by postmap 
anyway, -
in which case the actual postfix process which will use this file if not 
indexed,
will just report error and nothing will be lost.

So it looks like plaintext files is a viable alternative for indexed maps.

(and yes, I know about inline maps too).

Thanks,

/mjt
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to