[pfx] Re: New to Postfix, Google problems
Mel P via Postfix-users <[email protected]>
| Newsgroups | gmane.mail.postfix.user |
|---|---|
| Message-ID | <[email protected]> |
On 2026-08-20 13:51, Greg Klanderman via Postfix-users wrote:
>>>>>> On August 20, 2026 Wietse Venema via Postfix-users wrote:
>
>> Greg Klanderman via Postfix-users:
>>> It would also be really nice to have a prefix character to mean "match
>>> the domain or any subdomains" to avoid having to maintain nearly
>>> identical pairs of patterns. Maybe "*"?
>
>> Would people expect that '*foo' will also match 'barfoo'? That
>> could require a lot of table lookups with indexed files.
>
> Hi Weitse,
>
> That's not what I asked for; I only want some character to match the
> union of what 'foo' and '.foo' currently match (when
> parent_domain_matches_subdomains does not contain
> "smtpd_access_maps").
This is usually where I switch to REs because they have exactly this
capability already.
"^(.+\.)?" is parent_domain_matches_subdomains but on a per-rule basis.
# postmap -q foo pcre:'{{/^(.+\.)?foo$/ match}}'
match
# postmap -q barfoo pcre:'{{/^(.+\.)?foo$/ match}}'
# postmap -q bar.foo pcre:'{{/^(.+\.)?foo$/ match}}'
match
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]