A couple of our clients sometimes have issues when sending email, with a returned non-delivery report stating the following:
Peer server rejected email:
450 Client host rejected: ‘cannot find your hostname’
It turns out this is a very strict check (usually performed by postfix), that is controlled via the directive reject_unknown_client_hostname in the postfix configuration. The documentation for the directuve can be found here:
As per the link above, the 450 error is returned when:
1) the client IP address to name mapping fails
2) the name to address mapping fails
3) the name to address mapping does not match the client IP address.
the solutions to each of the issues above are all related to the DNS infrastructure:
1) Ensure you have the correct PTR (reverse record) that returns a valid hostname for your outgoing email server’s IP address. Example:
184.108.40.206.in-addr.arpa domain name pointer compunet.com.mt.
2) Ensure that the hostname returned in the SMTP greeting and that returned in step (1) both resolve back to the correct IP address. Example:
compunet.com.mt has address 220.127.116.11
3) Ensure that your public IP for the email server matches that returned in (2)