>>>>> On April 13, 2022 Matus UHLAR <- fantomas <uh...@fantomas.sk>> wrote:

>>>>>>> On April 10, 2022 Bill Cole 
>>>>>>> <postfixlists-070...@billmail.scconsult.com> wrote:
>>> Right, because you do not need to run 'postmap' on regex or pcre maps. The 
>>> text
>>> format ios what Postfix uses for those types.

> On 12.04.22 23:06, Greg Klanderman wrote:
>> Thank you Bill!  Knowing that now, I see where postmap(1) states:
>> 
>> | The postmap(1) command can query any supported file type, but it can
>> | create only the following file types:
>> | ... [types not including 'regexp' or 'pcre']
>> 
>> is getting at this, but it is far from clear that it is because
>> those do not need to be pre-processed by postmap.
>> 
>> Also, the error if you 'postmap regexp:filename' is not useful:
>> 
>> postmap: fatal: unsupported dictionary type: regexp. Is the postfix-regexp 
>> package installed?
>> 
>> given I know I have regexp installed.

> regexp and postfix-regexp are two different things.
> some SW distributions separate some map types to extra packages.
> you also may not have postfix compiled with regexp map type, try running:
> postconf -m

Yes, 'postconf -m' includes regexp.  As Bill wrote, you can't postmap a
regexp: map type, as postfix reads the text format directly.  I
maintain that it would be a lot more useful if the error message
stated something to that effect when you mistakenly try to do that.

Greg

Reply via email to