p5-sisimai icon indicating copy to clipboard operation
p5-sisimai copied to clipboard

D.S.N. 4.7.25 on Postfix 3

Open azumakuniyuki opened this issue 7 years ago • 2 comments

Postfix 3.1.6 rejects connection with the following message:

(host neko.exmple.jp[192.0.2.222] said: 450 4.7.25 Client host rejected: cannot find your hostname, [192.0.2.22] (in reply to RCPT TO command))

azumakuniyuki avatar Dec 28 '17 07:12 azumakuniyuki

src/smtpd/smtpd_check.c on Postfix 3.1.4

static int reject_unknown_client(SMTPD_STATE *state)
{
    const char *myname = "reject_unknown_client";

    if (msg_verbose)
	msg_info("%s: %s %s", myname, state->name, state->addr);

    /* RFC 7372: Email Authentication Status Codes. */
    if (state->name_status != SMTPD_PEER_CODE_OK)
	return (smtpd_check_reject(state, MAIL_ERROR_POLICY,
				state->name_status >= SMTPD_PEER_CODE_PERM ?
				   var_unk_client_code : 450, "4.7.25",
		    "Client host rejected: cannot find your hostname, [%s]",
				   state->addr));
    return (SMTPD_CHECK_DUNNO);
}

azumakuniyuki avatar Dec 28 '17 12:12 azumakuniyuki

We need a sample email including the status code.

azumakuniyuki avatar Dec 31 '17 06:12 azumakuniyuki