Hello, Here is a quick patch to add dmarc functionality to exim.
Best Regards
Index: Makefile
===================================================================
RCS file: /cvs/ports/mail/exim/Makefile,v
retrieving revision 1.131
diff -u -p -r1.131 Makefile
--- Makefile 2 Jun 2020 12:44:19 -0000 1.131
+++ Makefile 19 Mar 2021 08:29:48 -0000
@@ -9,6 +9,8 @@ PKGNAME-main = exim-${VERSION}
FULLPKGNAME-eximon = exim-eximon-${VERSION}
FULLPKGPATH-eximon = ${PKGPATH},-eximon
+REVISION = 0
+
CATEGORIES = mail
HOMEPAGE = https://www.exim.org/
@@ -19,7 +21,8 @@ MAINTAINER = Renaud Allard <renaud@alla
PERMIT_PACKAGE = Yes
cWANTLIB = c m
-WANTLIB-main = ${cWANTLIB} crypto iconv perl pcre spf2 ssl
+WANTLIB-main = ${cWANTLIB} crypto iconv perl pcre spf2 \
+ ssl opendmarc
WANTLIB-eximon = ${cWANTLIB} X11 Xaw Xext Xmu Xt pcre
MASTER_SITES = https://ftp.exim.org/pub/exim/exim4/ \
@@ -31,7 +34,8 @@ MASTER_SITES = https://ftp.exim.org/pub
LIB_DEPENDS-main = converters/libiconv \
devel/pcre \
- mail/libspf2
+ mail/libspf2 \
+ mail/opendmarc
RUN_DEPENDS-eximon = ${PKGPATH},-main
LIB_DEPENDS-eximon = devel/pcre
Index: patches/patch-Local_Makefile
===================================================================
RCS file: /cvs/ports/mail/exim/patches/patch-Local_Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 patch-Local_Makefile
--- patches/patch-Local_Makefile 2 Jun 2020 12:44:19 -0000 1.4
+++ patches/patch-Local_Makefile 19 Mar 2021 08:29:48 -0000
@@ -97,6 +97,18 @@ Index: Local/Makefile
# If you have content scanning you may wish to only include some of the scanner
# interfaces. Uncomment any of these lines to remove that code.
+@@ -595,9 +595,9 @@ DISABLE_MAL_MKS=yes
+
+ # Uncomment the following line to add DMARC checking capability, implemented
+ # using libopendmarc libraries. You must have SPF and DKIM support enabled also.
+-# SUPPORT_DMARC=yes
++SUPPORT_DMARC=yes
+ # CFLAGS += -I/usr/local/include
+-# LDFLAGS += -lopendmarc
++LDFLAGS += -lopendmarc
+ # Uncomment the following if you need to change the default. You can
+ # override it at runtime (main config option dmarc_tld_file)
+ # DMARC_TLD_FILE=/etc/exim/opendmarc.tlds
@@ -758,18 +758,18 @@ FIXED_NEVER_USERS=root
# included in the Exim binary. You will then need to set up the run time
# configuration to make use of the mechanism(s) selected.
@@ -187,3 +199,16 @@ Index: Local/Makefile
# If PID_FILE_PATH is not defined, Exim writes a file in its spool directory
# using the name "exim-daemon.pid".
+@@ -1494,3 +1494,12 @@ EXIM_TMPDIR="/tmp"
+ # CFLAGS += -DMEASURE_TIMING
+
+ # End of EDITME for Exim 4.
++EXIM_MONITOR=eximon.bin
++ LOOKUP_MYSQL=yes
++ BIN_DIRECTORY=/usr/local/bin
++ CONFIGURE_FILE=/etc/exim/configure
++ LOOKUP_INCLUDE=-I/usr/local/include/mysql
++ LOOKUP_LIBS=-L/usr/local/lib/mysql -lmysqlclient
++ EXTRALIBS_EXIM=-L/usr/local/lib -liconv
++ CFLAGS+=-O2 -pipe -g
++ INCLUDE=-I/usr/local/include
smime.p7s
Description: S/MIME Cryptographic Signature
