Check DKIM - Routing Rule

Hi,
I would like to check a sender’s DKIM status and have Axigen mark the email as spam if DKIM verification check fails.
In … Advanced Acceptance / Routing Rules … I have an ‘On Data Received’ rule called “Check_DKIM” with an action of “Check DKIM”.
What I’m unclear on is the returned result of this rule. If the rule passes, what happens? If the rule fails, what happens? There seems no consequence of this rule passing or failing.
Do I add a ‘SMTP action’ of ‘Reject’ or ‘Accept’ to the rule, and if so, is the SMTP action executed on a ‘pass’ or ‘fail’ of the ‘Check DKIM’ action (this would determine if the SMTP action is Reject or Accept).
Thanks in advance

I think you’re looking at this the wrong way around. You use DKIM to sign ougoing emails from your domains.

Here’s what I’ve got configured for one of my test domains. All this does is look at the domain sending the email, then signs it with the appropriate certificate

I think what you need is a different filter which looks at incoming emails and tries to pull out the DKIM header, then checks whether it is populated or not (and I guess whether the TLD of the DKIM cert matches the sender’s TLD)

Hello,

When the action “Check_DKIM” is set than the a header will be set on received messages like:

X-AXIGEN-DKIM-Result: Ok

or

X-AXIGEN-DKIM-Result: Failed

Based on the value of this header you may set an Incoming message rule to execute whatever action you like.

HTH,
Ioan

this issues

When send a email to gmail

mail SMTP-IN:000004B0: DomainKeys verification result: no signature
mail SMTP-IN:000004B0: DKIM verification result: no signature

when received from gmail

2024-06-10 06:59:56 +0000 08 mail SMTP-IN:000004B5: DomainKeys verification result: no signature
2024-06-10 06:59:56 +0000 08 mail SMTP-IN:000004B5: DKIM verification result: good