From 37bc1f751e2d333ff88eca3868144fe0f588fe0e Mon Sep 17 00:00:00 2001 From: lnedry Date: Fri, 4 Aug 2023 01:07:04 -0400 Subject: [PATCH] Add missing X-Haraka-Virus header (#3207) Added X-Haraka-Virus header so scoring can happen. Co-authored-by: Matt Simerson --- plugins/clamd.js | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/clamd.js b/plugins/clamd.js index 6a735ce11..e892b9f19 100644 --- a/plugins/clamd.js +++ b/plugins/clamd.js @@ -269,6 +269,7 @@ exports.hook_data_post = function (next, connection) { if (virus && plugin.rejectRE && // enabled plugin.allRE.test(virus) && // has a reject option !plugin.rejectRE.test(virus)) { // reject=false set + txn.add_header('X-Haraka-Virus', virus); return next(); } if (!plugin.cfg.reject.virus) { return next(); }