Skip to content

Commit

Permalink
When RequiredFrom rejects a message, reply with the reason to do so.
Browse files Browse the repository at this point in the history
(equivalent to trusteddomainproject#203 for RequiredHeaders)
  • Loading branch information
ghen2 committed Feb 6, 2022
1 parent 41f86c4 commit 7b41e66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions opendmarc/opendmarc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2163,7 +2163,11 @@ mlfi_eom(SMFICTX *ctx)
}

if (conf->conf_reqfrom)
{
status = dmarcf_setreply(ctx, DMARC_REJECT_SMTP, DMARC_REJECT_ESC,
"RFC5322 requirement error: missing From field");
return SMFIS_REJECT;
}
else
return SMFIS_ACCEPT;
}
Expand Down

0 comments on commit 7b41e66

Please sign in to comment.