From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 23391922AB for ; Mon, 13 Mar 2023 22:24:42 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 0246218C94 for ; Mon, 13 Mar 2023 22:24:12 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Mon, 13 Mar 2023 22:24:08 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 04E2B44732 for ; Mon, 13 Mar 2023 22:24:08 +0100 (CET) From: Stoiko Ivanov To: pmg-devel@lists.proxmox.com Date: Mon, 13 Mar 2023 22:23:43 +0100 Message-Id: <20230313212351.111977-1-s.ivanov@proxmox.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.107 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_NUMSUBJECT 0.5 Subject ends in numbers excluding current years SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pmg-devel] [PATCH pmg-api 0/7] adapt to SpamAssassin 4.0.0 X-BeenThere: pmg-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Mail Gateway development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Mar 2023 21:24:42 -0000 SpamAssassin 4.0.0 was released back in December 2022 and seems to work nicely for the greatest part. This patchset adapts pmg-api where necessary (patch 1/7), updates the templates for less diff (2/7), and enables the new features depending on the spam section of pmg.conf (mostly only enabling modules which do DNSBL lookups based on the rbl_checks setting) for testing the ExtractText plugin I used the gtube test string in a libreoffice document (saving it as .doc, .docx, .pdf, .odt, .rtf) as it's still quite new functionality I added an explicit config-option for it (also to provide some visibility) pmg-api: Stoiko Ivanov (7): ruledb: spam: adapt to spamassassin 4.0.0 templates: sync spamassassin templates with 4.0.0 upstream templates: add template for spamassassin's v342.pre templates: add template for spamassassin's v400.pre config: add spam option for extract_text templates: enable DecodeShortUrls for SpamAssassin 4.0.0 templates: enable DMARC plugin in v400.pre.in debian/control | 9 +++++- src/Makefile | 2 ++ src/PMG/Config.pm | 12 +++++++ src/PMG/RuleDB/Spam.pm | 10 +++--- src/templates/init.pre.in | 26 ++++++++++++--- src/templates/v310.pre.in | 18 +++++------ src/templates/v320.pre.in | 5 +++ src/templates/v342.pre.in | 39 ++++++++++++++++++++++ src/templates/v400.pre.in | 68 +++++++++++++++++++++++++++++++++++++++ 9 files changed, 170 insertions(+), 19 deletions(-) create mode 100644 src/templates/v342.pre.in create mode 100644 src/templates/v400.pre.in pmg-gui: Stoiko Ivanov (1): spamdetector: add extract_text option js/SpamDetectorOptions.js | 2 ++ 1 file changed, 2 insertions(+) -- 2.30.2