[pfx] Re: New to Postfix, Google problems
Matus UHLAR - fantomas via Postfix-users <[email protected]>
| Newsgroups | gmane.mail.postfix.user |
|---|---|
| Message-ID | <[email protected]> |
>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 On 19.08.26 13:31, Linkcheck via Postfix-users wrote: > check_client_access pcre:/etc/postfix/client_checks.pcre >and created the file client_checks.pcre with the content > >/Received:\sfrom\s.*bc\.googleusercontent\.com/ REJECT googleusercontent check_client_access checks clients' IP address and hostname, not headers. It can also check parent domain or subnet, but not when you use PCRE. gernerally, only use PCRE when really neesed. >At various times I have replaced \s with a space and removed the \ >from \. but nothing seems to work. A typical email header line for >googleusercontent is > >Received: from dreampairshoes.com >(219.172.193.35.bc.googleusercontent.com [35.193.172.219]) > by mail.bristolweb.net (Postfix 3.7.11/8.13.0) with SMTP id unknown > Sun, 16 Aug 2026 20:04:03 +0100 > (envelope-from <[email protected]>); > >I have been using postfix for several years and thought I'd mastered >this sort of thing but obviously not. :( You can use hash (for now), cdb or lmdb database, see: http://www.postfix.org/access.5.html and e.g. put .bc.googleusercontent.com REJECT googleusercontent Note this doesn't apply when your parent_domain_matches_subdomains contains "smtpd_access_maps" ... but in such case it's better to remove smtpd_access_maps from parent_domain_matches_subdomains and use it as I described -- Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. Posli tento mail 100 svojim znamim - nech vidia aky si idiot Send this email to 100 your friends - let them see what an idiot you are _______________________________________________ Postfix-users mailing list -- [email protected] To unsubscribe send an email to [email protected]