On Fri, Jul 25, 2025 at 10:52:52AM +0100, Jeremy Harris via Exim-users wrote:
> On 2025/07/25 3:32 AM, Moritz Orbach via Exim-users wrote:
> >  I wrote an ACL that checks SPF alignment by running spfquery.pl from 
> > Mail::SPF. This works fine and adds the Received-SPF-header, but I don't 
> > know how or if I can pass the SPF alignment result into Exim in order to 
> > use the “dmarc_status” condition. Is that possible?
> 
> Not just in Exim's configuration, using a stock Exim, no.
> 
> You'd need to write an alternate SPF driver module for Exim, replacing
> src/miscmods/spf.c .  It would have to call into the perl driver module -
> which isn't impossible but would take some understanding of Exim's
> internal design and coding.

 If spfquery.pl is called from ${run..}, there is no need to dive into
 perl driver module. Passing some variable(s) to SPF or DMARC modules
 should be sufficient. Add name for new condition to set internal state
 in spf.c (say, "spf_force_status"), and syntax could be like that:

 warn
   set acl_m_spf_status = ${run{/path/to/spfquery.pl ...}}
   spf_force_status = $acl_m_spf_status

 BTW, DMARC can also be implemented externally.
-- 
 Eugene Berdnikov

-- 
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   [email protected]
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to