>>>>> "Matus" == Matus UHLAR <- fantomas <uh...@fantomas.sk>> writes:


Matus> you can check hostnames by using pcre map in
Matus> check_reverse_client_hostname_access. e.g. refuse regex

Matus> /(\d+)[.-](\d+)[.-](\d+)[.-](\d+)./ REJECT "generic DNS refused"

Matus> (trailing . should avoid matching IP Addresses)


I tried it with the  as

smtpd_client_restrictions = .... usual stuff

check_client_access pcre: /etc/postfix/check_reverse_client_hostname_access.pcre


Unfortunately the regex matches legitimate senders as well. I had INFO instead
of REJECT and that save the situation and the mails arrived.

Have I placed the check in the wrong place or am I back to square one.

2021-11-11T19:10:01.014343+01:00 myserver postfix/smtpd[3837]: Anonymous TLS
connection established from mx1.goodserver.org[172.31.12.175]: TLSv1.3 with
cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519
server-signature ECDSA (P-256) server-digest SHA256

2021-11-11T19:10:01.062736+01:00 myserver postfix/smtpd[3837]: NOQUEUE: info:
RCPT from mx1.goodserver.org[172.31.12.175]: "generic RDNS";
from=<SRS0=Dzai=P6=lists.goodserver.org=meetings-boun...@goodserver.org>
to=<john....@example.com> proto=ESMTP helo=<mx1.goodserver.org>

Reply via email to