Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D.S.N. 4.7.25 on Postfix 3 #253

Open
azumakuniyuki opened this issue Dec 28, 2017 · 2 comments
Open

D.S.N. 4.7.25 on Postfix 3 #253

azumakuniyuki opened this issue Dec 28, 2017 · 2 comments

Comments

@azumakuniyuki
Copy link
Member

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
Copy link
Member Author

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
Copy link
Member Author

We need a sample email including the status code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant