From b46a63c263b68a10a837a17756e441028221e508 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Wed, 28 Jun 2023 17:13:13 +0000 Subject: [PATCH 1/2] Support openDMARC v1.4 interface change Fixes building failure with Exim 4.96. --- exim-4.96-opendmarc-1.4-build-fix.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 exim-4.96-opendmarc-1.4-build-fix.patch diff --git a/exim-4.96-opendmarc-1.4-build-fix.patch b/exim-4.96-opendmarc-1.4-build-fix.patch new file mode 100644 index 0000000..b70a361 --- /dev/null +++ b/exim-4.96-opendmarc-1.4-build-fix.patch @@ -0,0 +1,13 @@ +diff --git a/src/dmarc.c b/src/dmarc.c +index 17bba9d..a218380 100644 +--- a/src/dmarc.c ++++ b/src/dmarc.c +@@ -459,7 +459,7 @@ if (!dmarc_abort && !sender_host_authenticated) + vs == PDKIM_VERIFY_INVALID ? DMARC_POLICY_DKIM_OUTCOME_TMPFAIL : + DMARC_POLICY_DKIM_OUTCOME_NONE; + libdm_status = opendmarc_policy_store_dkim(dmarc_pctx, US sig->domain, +- dkim_result, US""); ++ sig->selector, dkim_result, US""); + DEBUG(D_receive) + debug_printf("DMARC adding DKIM sender domain = %s\n", sig->domain); + if (libdm_status != DMARC_PARSE_OKAY) -- 2.41.0