[pfx] Re: New to Postfix, Google problems

Wietse Venema via Postfix-users <[email protected]>
Newsgroups gmane.mail.postfix.user
Message-ID <[email protected]>
Linkcheck via Postfix-users:
> On 07/08/2026 6:35 pm, Jaroslaw Rafa via Postfix-users wrote:
> > My table referenced in smtpd_client_restrictions contains
> > 
> > bc.googleusercontent.com	REJECT
> 
> I much appreciated the above suggestion but have not yet got it to work. :(
> 
> In main.cf I have ...
> 
> smtpd_client_restrictions =
>    permit_mynetworks
>    permit_sasl_authenticated
>    check_client_access pcre:/etc/postfix/client_checks.pcre
>    reject_unknown_client_hostname
>    reject_unauth_pipelining
> 
> and created the file client_checks.pcre with the content
> 
> /Received:\sfrom\s.*bc\.googleusercontent\.com/	REJECT googleusercontent

check_client_access expects an IP address or domain name pattern.

 smtpd_client_restrictions =
    ...
    check_client_access cdb:/etc/postfix/client_access
    ...

/etc/postfix/client_access:
    # By default this also matches subdomains.
    bc.googleusercontent.com       REJECT googleusercontent

This is documented in:

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

	Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.