My postfix host is rejecting my client with this message:

4.7.25 Client host rejected: cannot find your hostname, [].

From the cli on the postfix server, I get this:

root@civicrm:~# host domain name pointer

So, there is a pointer record. Why would it be rejected.

I then put in a phony hostname in /etc/hosts with the same IP address and the was accepted and email successfully sent.

I then added to the /etc/hosts file and it was also accepted.

What could be the problem?

  • Your email client should be configured to send mail on port 587, not port 25. – Michael Hampton Jun 13 at 0:17

You postfix configuration has reject_unknown_client_hostname which rejects mails because doesn't resolve back to

  • What is the process used by this directive to determine that 28.90.9.sinet.kh doesn't resolve back to I thought it just looked for a PTR record – Vietyank Jun 14 at 1:56
  • I have a feeling this was a temporary thing (internet in Cambodia can be flaky). I put the directive back in and took the entry in /etc/hosts out and mail is going out without fail. – Vietyank Jun 14 at 2:13
  • @Vietyank , my answer contains a link to the postfix documentation which describes what this check does. – AlexD Jun 14 at 9:03
  • Yes. I see that. What is the process that causes the name mapping to fail? – Vietyank Jun 16 at 2:29
  • @Vietyank the process is the domain name resolution, when DNS server fails to return expected answer then this process fails. In your case DNS servers were returning NXDOMAIN for – AlexD Jun 16 at 8:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.