Geert Hendrickx via Postfix-users:
> On Tue, Oct 27, 2026 at 10:01:57 +0100, ?mer G?ven via Postfix-users wrote:
> > Hi,
> >
> > What you describe already exists. It?s called texthash.
> >
> > For example:
> >
> > virtual_alias_maps = texthash:/etc/postfix/virtual
> >
> > No postmap step, no .db file. The text file is read into memory
> > when the map is opened.
> >
> > The main caveat is that changes aren't automatically detected by
> > processes that already have the map open, so a postfix reload may
> > be needed.
> >
> > See https://www.postfix.org/DATABASE_README.html
>
>
> Shouldn't commands like "newaliases" ignore this gracefully then?
>
> $ postconf alias_database
> alias_database = texthash:/etc/postfix/aliases
> $ sudo newaliases
> postalias: fatal: no 'map create' support for this type: texthash
> $ echo $?
> 1
I think that this is a documentation problem.
Postfix has two parameters: alias_database and alias_maps.
- alias_database is for tables that require indexing with
postalias.
- alias_maps specifies what tables will be searched. This includes
tables that don't require indexing with postalias.
In an ancient past when Postfix was new, the defaults looked
like this:
alias_database = hash:/etc/aliases
alias_mask = hash:/etc/aliases nis:aliases
In a newer world this might be:
alias_database = hash:/etc/aliases
alias_mask = hash:/etc/aliases sqlite:/etc/postfix/sql-aliases.cf
The point is that alias_database is not alias_maps.
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]