diff --git a/opendmarc/opendmarc.c b/opendmarc/opendmarc.c index 7c1eda6..17b1ebe 100644 --- a/opendmarc/opendmarc.c +++ b/opendmarc/opendmarc.c @@ -2446,6 +2446,12 @@ mlfi_eom(SMFICTX *ctx) dfc->mctx_jobid, reqhdrs_error); } + snprintf(replybuf, sizeof replybuf, + "RFC5322 requirement error: %s", reqhdrs_error); + + status = dmarcf_setreply(ctx, DMARC_REJECT_SMTP, + DMARC_REJECT_ESC, replybuf); + return SMFIS_REJECT; }