Merry Christmas All! I am wondering why I have two different errors for same reason?
: NOQUEUE: reject: RCPT from unknown[41.203.141.1]: 450 4.7.1 Client host rejected: cannot find your hostname, : NOQUEUE: reject: RCPT from unknown[115.153.142.125]: 550 5.7.1 Client host rejected: cannot find your hostname I would prefer all of these 5xx But there appears to be two different checks here reporting the same reason. It obviously either hostname in connect, from or helo, if so can postfix be made to report the right message? In this case eliminate the from, the hostname in the helo exists for the 5XX but fails on the 4xx Does postfix just assume since it gets NXDOMAIN on both connect and helo it must be an error? Does postfix only get to the helo NXDOMAIN failure and act upon that alone before connect, which seems to me to be what happens. Either way is there a option to force 5xx on unknown I have always run these options - unknown_client_reject_code = 550 unknown_address_reject_code = 550 unknown_hostname_reject_code = 550 unverified_sender_reject_code = 550 unknown_local_recipient_reject_code = 550 the relevant smtpd_recipient_restrictions options I using for this are reject_unknown_sender_domain reject_unknown_recipient_domain .... reject_unknown_client_hostname reject_unknown_helo_hostname reject_invalid_helo_hostname reject_non_fqdn_helo_hostname reject_non_fqdn_sender reject_non_fqdn_recipient reject_unlisted_recipient reject_unlisted_sender ... Thanks sand Happy Holidays