diff --git a/opendmarc/opendmarc.c b/opendmarc/opendmarc.c index c8b151c..b4a5c2b 100644 --- a/opendmarc/opendmarc.c +++ b/opendmarc/opendmarc.c @@ -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; }