From nobody Thu Oct 31 22:53:36 2024 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XffRm2Rxgz5b40M for ; Thu, 31 Oct 2024 22:53:40 +0000 (UTC) (envelope-from johnl@iecc.com) Received: from gal.iecc.com (gal.iecc.com [IPv6:2001:470:1f07:1126:0:43:6f73:7461]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "gal.iecc.com", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XffRm0M45z43BM for ; Thu, 31 Oct 2024 22:53:40 +0000 (UTC) (envelope-from johnl@iecc.com) Authentication-Results: mx1.freebsd.org; none Received: (qmail 44852 invoked from network); 31 Oct 2024 22:53:38 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=iecc.com; h=date:message-id:from:to:cc:subject:in-reply-to:references:mime-version:content-type:content-transfer-encoding:cleverness; s=af2967240a72.k2410; t=1730415208; x=1730760808; bh=EtKDOTNDhPmInGFb/rDnF5t0Slyv89F8Z+ALOFXRpFQ=; b=KOGNNByUPPv+/0FKfFkmAYg1sLQXdnYMMxYbrWZgBfQPVx8rvAH2dShRm/fIhaCnAWFPUV7OWb3fsRpnGFnOpP9x6Hq1ATt5KXvjI2aIZghYpZinsXHI6OrYTiNLcB0XyDUuKLiBOktrhu4uXkFOkoAZ/wrl2c19TT2nSFHzBieN3lBwKqY8d1902IljtY5iSwCAeBJJEd6woCU6CLWWMgt1QU7PWd9VWB3EQUiLrh/RXzbNXAmmx2Nd247wmLzGgCgs5zVpUFR0hq8zrApnWl/cS0EAQVPVNbiGmbmcq5XW+6G2kpblmDSN95aS2bLj+y/Av1qM60AAFyusD7zhdA== Received: from ary.qy ([IPv6:2001:470:1f07:1126::78:696d:6170]) by imap.iecc.com ([IPv6:2001:470:1f07:1126::78:696d:6170]) with ESMTPS (TLS1.3 ECDHE-RSA CHACHA20-POLY1305 AEAD) via TCP6; 31 Oct 2024 22:53:37 -0000 Received: by ary.qy (Postfix, from userid 501) id 288E8A4F1F81; Thu, 31 Oct 2024 18:53:36 -0400 (EDT) Date: 31 Oct 2024 18:53:36 -0400 Message-Id: <20241031225337.288E8A4F1F81@ary.qy> From: "John Levine" To: freebsd-questions@freebsd.org Cc: dale@dalescott.net Subject: Re: dma: could not pick up queue file In-Reply-To: <1c49d4a22aefd22541a526d387912eb3@dalescott.net> Organization: Taughannock Networks References: <685d00e3-bacb-45cd-a166-40c6a484347e@app.fastmail.com> <22042f18-4cbb-4f62-841b-fef4a7262899@app.fastmail.com> <1c49d4a22aefd22541a526d387912eb3@dalescott.net> X-Headerized: yes Cleverness: minimal List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org Mime-Version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8bit X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US] X-Rspamd-Queue-Id: 4XffRm0M45z43BM X-Spamd-Bar: ---- It appears that Dale Scott said: >>> From time to time, this message appears in the logs. I don't know why. >>> >>> Oct 18 03:01:00 x8dtu-pg01 dma[dma][92883]: could not pick up queue >>> file: >>> `/var/spool/dma/Q5993d.326f7fa48050'/`/var/spool/dma/M5993d.326f7fa48050': >>> No such file or directory >>> >>> Why does this occur? I took a look at the code and I think it's a race condition deleting a queue file but I can't tell you where. I use dma on a bunch of client systems and they never queue anything. The queue file is created and deleted immediately as the mail goes out to the smarthost. I could imagine that if you periodically run dma -q, it could see a queue file which is then deleted by the time it tries to do something with it.