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']
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.
On April 13, 2022 Matus UHLAR <- fantomas <uh...@fantomas.sk>> wrote:
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
On 14.04.22 00:21, Greg Klanderman wrote:
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.
I guess it's generic message when "postmap" can't be done (postmap -q can)
it's understandable, perhaps the code for regexp (pcre,texthash) could instead
produce message:
if ((dp = (DYMAP_INFO *) htable_find(dymap_info, dict_type)) == 0)
msg_fatal("unsupported dictionary type: %s. "
"Is the postfix-%s package installed?",
dict_type, dict_type);
if (!dp->mkmap_name)
msg_fatal("unsupported dictionary type: %s does not support "
"bulk-mode creation.", dict_type);
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Spam = (S)tupid (P)eople's (A)dvertising (M)ethod