From dd1cab480e0dc60ab95fcb450a016a99b130912b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=CC=81=20Borges=20Ferreira?= Date: Sat, 4 Nov 2017 09:49:34 +0000 Subject: [PATCH] Fix correct reply code on reject --- smf-spf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smf-spf.c b/smf-spf.c index 6abbac4..689f030 100644 --- a/smf-spf.c +++ b/smf-spf.c @@ -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; @@ -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: