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 1AFAF1FF165 for ; Thu, 14 Aug 2025 02:09:42 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 086C93DFA7; Thu, 14 Aug 2025 02:11:22 +0200 (CEST) Date: Thu, 14 Aug 2025 02:10:49 +0200 From: Stoiko Ivanov To: Maximiliano Sandoval Message-ID: <20250814021049.7b0dbf56@rosa.proxmox.com> In-Reply-To: <20250404131438.328396-3-m.sandoval@proxmox.com> References: <20250404131438.328396-1-m.sandoval@proxmox.com> <20250404131438.328396-3-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: 1755130216844 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 03/11] config: store config lock in smtp-filter runtime dir 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" This seems to make pmgsync.service fail upon rebooting (it calls, among other things, `pmgconfig sync`, which seems to try to access the not-yet existing directory): `` Aug 14 00:41:16 pmg-on-trixietest pmgconfig[257]: reloading pmg-smtp-filter: can't open '/run/pmg-smtp-filter/pmg-smtp-filter.cfg' - No such file or directory Aug 14 00:41:16 pmg-on-trixietest pmgconfig[257]: can't lock file '/run/pmg-smtp-filter/pmg-smtp-filter.cfg.lck' - can't open file - No such file or directory Aug 14 00:41:16 pmg-on-trixietest systemd[1]: pmgsync.service: Main process exited, code=exited, status=255/EXCEPTION Aug 14 00:41:16 pmg-on-trixietest systemd[1]: pmgsync.service: Failed with result 'exit-code'. Aug 14 00:41:16 pmg-on-trixietest systemd[1]: Failed to start pmgsync.service - Sync Proxmox Configuration. ``` On Fri, 4 Apr 2025 15:14:30 +0200 Maximiliano Sandoval wrote: > Signed-off-by: Maximiliano Sandoval > --- > src/PMG/Config.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/PMG/Config.pm b/src/PMG/Config.pm > index 82bd42ec..754cc791 100644 > --- a/src/PMG/Config.pm > +++ b/src/PMG/Config.pm > @@ -1827,8 +1827,8 @@ my $pmg_service_params = { > }, > }; > > -my $smtp_filter_cfg = '/run/pmg-smtp-filter.cfg'; > -my $smtp_filter_cfg_lock = '/run/pmg-smtp-filter.cfg.lck'; > +my $smtp_filter_cfg = '/run/pmg-smtp-filter/pmg-smtp-filter.cfg'; > +my $smtp_filter_cfg_lock = '/run/pmg-smtp-filter/pmg-smtp-filter.cfg.lck'; > > sub dump_smtp_filter_config { > my ($self) = @_; _______________________________________________ pmg-devel mailing list pmg-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel