In particular when SPFIgnoreResults, SPFSelfValidate and AuthservIDWithJobID are enabled:
diff --git a/opendmarc/opendmarc.c b/opendmarc/opendmarc.c
--- a/opendmarc/opendmarc.c
+++ b/opendmarc/opendmarc.c
@@ -2918,14 +2918,22 @@ mlfi_eom(SMFICTX *ctx)
if (spf_mode == DMARC_POLICY_SPF_ORIGIN_HELO)
{
snprintf(header, sizeof header,
- "%s; spf=%s smtp.helo=%s",
- authservid, pass_fail, use_domain);
+ "%s%s%s; spf=%s smtp.helo=%s",
+ authservid,
+ conf->conf_authservidwithjobid ? "/" : "",
+ conf->conf_authservidwithjobid ? dfc->mctx_jobid : "",
+ pass_fail, use_domain);
}
else
{
snprintf(header, sizeof header,
- "%s; spf=%s smtp.mailfrom=%s",
- authservid, pass_fail, use_domain);
+ "%s%s%s; spf=%s smtp.mailfrom=%s",
+ authservid,
+ conf->conf_authservidwithjobid ? "/" : "",
+ conf->conf_authservidwithjobid ? dfc->mctx_jobid : "",
+ pass_fail, use_domain);
+
+
}
if (dmarcf_insheader(ctx, 1, AUTHRESULTSHDR,
In particular when
SPFIgnoreResults,SPFSelfValidateandAuthservIDWithJobIDare enabled: