> On Nov 16, 2018, at 12:17 AM, Dennis Carr <dennistheti...@chez-vrolet.net> 
> wrote:
> 
> I'm trying to use /etc/postfix/sender_access to pretty much reject
> anything showing as 'From: *@qq.com'

Postfix access(5) tables restrict the message envelope, not the message headers.

> Suffice it to say, I seem to be doing it wrong.

In a creatively diverse number of ways. :-)

> In sender_access, I have:
> 
> \/.qq.com$/             REJECT

If were supposed to be a regular expression table, it would be:

        /\.qq\.com$/    REJECT

But there's no need to use regular expressions to match literal domain names.
You'd use a "cdb" or "hash" table for something so simple, with literal keys:

        qq.com          REJECT

> ...and the reference to this file in main.cf is:
> 
> smtpd_sender_restrictions =
>        check_sender_access      hash:/etc/postfix/sender_access,
>       ...

And so you are, but you're using regular expression syntax, that's
broken while you're at it.

> ...what'd I miss?  

Well, everything really.

> If needed I can stick the files up on a pastebin.

No need.

-- 
        Viktor.

Reply via email to