On Sun, Jun 26, 2022 at 10:23:26PM -0400, Alex wrote:
> Is it safe to add something like this to my helo_checks.pcre:
>
> check_helo_access pcre:$config_directory/helo_checks.pcre
> /*.localdomain/ REJECT
This is a "glob" pattern, it is not a valid PCRE pattern. It
also fails to be tail-anchored, and the "." is not literal.
Try:
/\.localdomain$/ REJECT
but this does not require a regex at all (and attention to detail with
REs sadly seems to be beyond many mortals):
check_helo_access ${indexed}helo_checks
# See access(5) and the docs for parent_domain_matches_subdomains
.localhost REJECT
localhost REJECT
> check_sender_access pcre:$config_directory/sender_checks.pcre,
>
> /*.localdomain/ REJECT
Ditto.
--
Viktor.