From: Jay G. Scott on

Greetings,

the aliases files are limited to 1024 chars/record because of NIS.

but postfix looks like it would take hash maps instead for things
like aliases. does this work around the 1024 character limit?
i hope, i hope. the chaining biz is annoying.

j.

From: Michael Tokarev on
Jay G. Scott wrote:
> Greetings,
>
> the aliases files are limited to 1024 chars/record because of NIS.

Which part of the postfix documentation states this?

/mjt

From: Wietse Venema on
Jay G. Scott:
>
> Greetings,
>
> the aliases files are limited to 1024 chars/record because of NIS.
>
> but postfix looks like it would take hash maps instead for things
> like aliases. does this work around the 1024 character limit?
> i hope, i hope. the chaining biz is annoying.

hash and btree tables solve that problem.

Postfix does not enforce a length limit when it creates database
records. If the underlying database allows jumbo-sized records
then Postfix will happily store them.

The 1024-byte limit comes from Sun's ndbm implementation (*) which
was historically used to store the NIS tables. Other NIS
implementations may use different databases with different limits.

Wietse

(*) From the ndbm manpage:
The sum of the sizes of a key/content pair must not exceed
the internal block size (currently 1024 bytes). Moreover all
key/content pairs that hash together must fit on a single
block. dbm_store() will return an error in the event that a
disk block fills with inseparable data.