[pfx] Re: New to Postfix, Google problems
Viktor Dukhovni via Postfix-users <[email protected]>
| Newsgroups | gmane.mail.postfix.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Aug 20, 2026 at 04:51:02PM -0400, Greg Klanderman via Postfix-users wrote:
> 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").
That's simply not a good idea, instead add both table entries
.foo.example some action
foo.example some action
This is simple and clear enough and no further syntax is needed.
If that's somehow too burdensome, "make" is your friend:
$ (
ls -l foo* Makefile
make foo
for file in foo foo.map Makefile
do
printf "\n=== Content of %s\n" "$file"
cat "$file"
done
)
-rw-r--r-- 1 viktor viktor 124 Aug 21 11:51 Makefile
-rw-r--r-- 1 viktor viktor 154 Aug 21 11:38 foo.map
+++ Constructing foo
=== Content of Makefile
.SUFFIXES: .map
.map:
@printf '\n+++ Constructing %s\n' "$@"
@perl -lpe 'print $$1 if (s{^[+]([a-z\d].*)}{.\1})' $< > $@
=== Content of foo.map
domain-only.example REJECT 1
explicit-with-subdomain.example REJECT 2
.explicit-with-subdomain.example REJECT 3
+implicit-with-subdomain.example REJECT 4
=== Content of foo
domain-only.example REJECT 1
explicit-with-subdomain.example REJECT 2
.explicit-with-subdomain.example REJECT 3
implicit-with-subdomain.example REJECT 4
.implicit-with-subdomain.example REJECT 4
--
Viktor. 🇺🇦 Слава Україні!
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]