On Sun, Feb 11, 2024 at 07:42:24PM -0600, Jakob Cornell via Postfix-users wrote:

> smtpd_recipient_restrictions =
>       check_sender_access regexp:/etc/postfix/db/sender_access_table
>       ...

As documented regexp, pcre, ... tables don't do "partial key" lookups.
This is deliberate and correct behaviour.

> /^jcornell\.net$/ reject_sender_login_mismatch, permit

This is just the domain part of an address, and would match in an
indexed file or similar table, not in a regexp, pcre, ... table.


> This works fine for ja...@jcornell.net, but my ultimate goal is to
> configure delivery for *.m.acorn.ignorelist.com too (arbitrary
> subdomain),

See access(5).  In indexed files, domains by default also match
their sub-domains, but see:

    https://www.postfix.org/postconf.5.html#parent_domain_matches_subdomains

and preferably set it empty and then list:

    access:
        blocked.example     REJECT
        .blocked.example    REJECT

> Could this be a bug in regexp table lookup?

Works as intended.

-- 
    Viktor.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to