From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 52A8D1FF165 for ; Thu, 14 Aug 2025 02:12:36 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 3FF523DFFA; Thu, 14 Aug 2025 02:14:16 +0200 (CEST) Date: Thu, 14 Aug 2025 02:13:43 +0200 From: Stoiko Ivanov To: Maximiliano Sandoval Message-ID: <20250814021343.4c971228@rosa.proxmox.com> In-Reply-To: <20250404131438.328396-7-m.sandoval@proxmox.com> References: <20250404131438.328396-1-m.sandoval@proxmox.com> <20250404131438.328396-7-m.sandoval@proxmox.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1755130390960 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.065 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: Re: [pmg-devel] [PATCH pmg-api v5 07/11] spamasassin: store files in dir managed by pmg 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: , Cc: pmg-devel@lists.proxmox.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pmg-devel-bounces@lists.proxmox.com Sender: "pmg-devel" we probably should migrate the files upon upgrading (all new installations don't have thos settings enabled by default, but everything installed <=7.3 should have it enabled by default - so it probably will change the behavior for users) On Fri, 4 Apr 2025 15:14:34 +0200 Maximiliano Sandoval wrote: > Signed-off-by: Maximiliano Sandoval > --- > src/PMG/Config.pm | 8 ++++---- > src/PMG/Report.pm | 2 +- > src/bin/pmg-smtp-filter | 2 +- > 3 files changed, 6 insertions(+), 6 deletions(-) > > diff --git a/src/PMG/Config.pm b/src/PMG/Config.pm > index 754cc791..89873f56 100644 > --- a/src/PMG/Config.pm > +++ b/src/PMG/Config.pm > @@ -1601,13 +1601,13 @@ sub rewrite_config_spam { > > # delete AW and bayes databases if those features are disabled > if (!$use_awl) { > - $changes = 1 if unlink '/root/.spamassassin/auto-whitelist'; > + $changes = 1 if unlink '/var/lib/pmg/spamassassin/auto-whitelist'; > } > > if (!$use_bayes) { > - $changes = 1 if unlink '/root/.spamassassin/bayes_journal'; > - $changes = 1 if unlink '/root/.spamassassin/bayes_seen'; > - $changes = 1 if unlink '/root/.spamassassin/bayes_toks'; > + $changes = 1 if unlink '/var/lib/pmg/spamassassin/bayes_journal'; > + $changes = 1 if unlink '/var/lib/pmg/spamassassin/bayes_seen'; > + $changes = 1 if unlink '/var/lib/pmg/spamassassin/bayes_toks'; > } > > # make sure we have the custom SA files (else cluster sync fails) > diff --git a/src/PMG/Report.pm b/src/PMG/Report.pm > index 79060a08..a93f00f2 100644 > --- a/src/PMG/Report.pm > +++ b/src/PMG/Report.pm > @@ -125,7 +125,7 @@ sub check_dns_resolution { > debug => 0, > local_tests_only => 0, > home_dir_for_helpers => '/root', > - userstate_dir => '/root/.spamassassin', > + userstate_dir => '/var/lib/pmg/spamassassin', > dont_copy_prefs => 1, > stop_at_threshold => 0, > }); > diff --git a/src/bin/pmg-smtp-filter b/src/bin/pmg-smtp-filter > index e95e6458..f46d4ccf 100755 > --- a/src/bin/pmg-smtp-filter > +++ b/src/bin/pmg-smtp-filter > @@ -460,7 +460,7 @@ sub pre_loop_hook { > debug => 0, > local_tests_only => $opt_testmode || !$rbl_checks, > home_dir_for_helpers => '/root', > - userstate_dir => '/root/.spamassassin', > + userstate_dir => '/var/lib/pmg/spamassassin', > dont_copy_prefs => 1, > stop_at_threshold => 0, > }); _______________________________________________ pmg-devel mailing list pmg-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel