On 1/20/2010 8:43 AM, Jaroslaw Grzabel wrote:
Wietse Venema wrote:
If you are concerned that you reject mail from hosts with valid PTR,
then I recommend that you choose between:
1) reject_unknown_reverse_client_hostname. As documented, this
will accept any reverse name, without checking whether it resolves
to to the client IP address.
and
2) reject_unknown_client_hostname. As documented, this requires
that the reverse hostname resolves to the client IP address.
Wietse
I understand (or I only think so) what you're saying. But it's not
completely related with my problem (or I only think so). I need to
reject them with my own custom error message. That's why I'm asking how
to do it as I'm afraid that if I will put restriction like:
smtpd_client_restrictions = reject_unknown_reverse_client_hostname,
check_client_access hash:/etc/postfix/client
and in /etc/postfix/client I will put:
unknown REJECT 550 5.1.2. "FIX YOUR REVERSE DNS"
then the client accepted by the first rule will be rejected by the
second one, won't it ? As it has got PTR but no hostname.
Regards,
Jarek
You need a policy server to do that.
Probably postfwd can do this with not much trouble.
-- Noel Jones