Skip to content

Commit 7b41e66

Browse files
committedFeb 6, 2022
When RequiredFrom rejects a message, reply with the reason to do so.
(equivalent to trusteddomainproject#203 for RequiredHeaders)
1 parent 41f86c4 commit 7b41e66

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎opendmarc/opendmarc.c

+4
Original file line numberDiff line numberDiff line change
@@ -2163,7 +2163,11 @@ mlfi_eom(SMFICTX *ctx)
21632163
}
21642164

21652165
if (conf->conf_reqfrom)
2166+
{
2167+
status = dmarcf_setreply(ctx, DMARC_REJECT_SMTP, DMARC_REJECT_ESC,
2168+
"RFC5322 requirement error: missing From field");
21662169
return SMFIS_REJECT;
2170+
}
21672171
else
21682172
return SMFIS_ACCEPT;
21692173
}

0 commit comments

Comments
 (0)
Please sign in to comment.