Skip to content

Commit

Permalink
Fix correct reply code on reject
Browse files Browse the repository at this point in the history
  • Loading branch information
José Borges Ferreira committed Nov 4, 2017
1 parent 40dd600 commit dd1cab4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smf-spf.c
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ static sfsistat smf_envfrom(SMFICTX *ctx, char **args) {
char reject[2 * MAXLINE];

snprintf(reject, sizeof(reject), "Rejected, look at http://www.openspf.org/why.html?sender=%s&ip=%s&receiver=%s", context->sender, context->addr, context->site);
smfi_setreply(ctx, conf.soft_fail ? "450" : "550", conf.soft_fail ? "4.7.23" : "4.7.23", reject);
smfi_setreply(ctx, conf.soft_fail ? "450" : "550", conf.soft_fail ? "4.7.23" : "5.7.23", reject);
return SMFIS_REJECT;
}
context->status = status;
Expand Down Expand Up @@ -800,7 +800,7 @@ static sfsistat smf_envfrom(SMFICTX *ctx, char **args) {
if (spf_response) SPF_response_free(spf_response);
if (spf_request) SPF_request_free(spf_request);
if (spf_server) SPF_server_free(spf_server);
smfi_setreply(ctx, conf.soft_fail ? "450" : "550", conf.soft_fail ? "4.7.23" : "4.7.23", reject);
smfi_setreply(ctx, conf.soft_fail ? "450" : "550", conf.soft_fail ? "4.7.23" : "5.7.23", reject);
return SMFIS_REJECT;
}
done:
Expand Down

0 comments on commit dd1cab4

Please sign in to comment.