Jan Marek via Postfix-users:
Checking application/pgp-signature: FAILURE
-- Start of PGP signed section.
> Hello,
>
> Dne ?t, srp 28, 2025 at 02:43:59 CEST napsal(a) Markus Sch?nhaber via
> Postfix-users:
> > 28.08.25, 14:20 +0200, Jan Marek via Postfix-users:
> >
> > > But why `postmap -q` don't reply?
> >
> > >From man postmap(1):
> >
> > | -q key Search the specified maps for key and write the first value
> > | found to the standard output stream. The exit status is zero when
> > | the requested information was found.
> > |
> > | Note: this performs a single query with the key as
> > | specified, and does not make iterative queries with substrings
> > | of the key as described for access(5), canonical(5),
> > | transport(5), virtual(5) and other Postfix table-driven
> > | features.
>
> it's quite confusing:
>
> /etc/postfix/virtual:
>
> [email protected] account1
> [email protected] account2
> @virtual.domain other_account
>
> postmap -q [email protected] hash:/etc/postfix/virtual
> account1
>
> postmap -q [email protected] hash:/etc/postfix/virtual
>
> (nothink and exit status of 1)
For many people the following is clear:
- postmap is not virtual_alias_maps.
- virtual_alias_maps does the substring lookups. That
is documented.
- postmap does not. The documentation describes only what
postmap does.
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]