From nobody Mon Sep 26 18:35:49 2022 X-Original-To: standards@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 4Mbrzp0xGCz4cRl5 for ; Mon, 26 Sep 2022 18:35:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mbrzn6NJBz3SNL for ; Mon, 26 Sep 2022 18:35:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Mbrzn57f6zrqV for ; Mon, 26 Sep 2022 18:35:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 28QIZnJ4022709 for ; Mon, 26 Sep 2022 18:35:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 28QIZn0J022708 for standards@FreeBSD.org; Mon, 26 Sep 2022 18:35:49 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 266629] contrib/dma corrupted queue files Date: Mon, 26 Sep 2022 18:35:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mslehto@kapsi.fi X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-standards@freebsd.org X-BeenThere: freebsd-standards@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664217349; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PIliXU+iJXQ8xDOdczY+jM90MSvHUfvSnVYMQPv4PhY=; b=YMdMQEnTGYZ4nBIlkrQG2ebdaMBMvHmVOND2Ius0zoveF595d46k11UIzTPWRXxh/gYetb 6x8aYCjkJMOYwRDFbs5dzxQ3oQz99YR/oyZ1ZubdMksq+7qWPVRVRWYnX5zXPWeqJLWGmi DITOVExn0KjxsOHdTTV3+UEMrCwGVFWOR3UZ1leRwpvw/tl01CImOlVuiC8/Ua1oMoENHt 9if5fdEl6Qxzr0PYKGDsajfYfBnBEZlznzmZzelgmN1JQuGf3+PIef4V3ubkbSvV1Q2+/t dQflkG+OSxtwE0MdGQH/0VaQp1jB++B04KerOO/07NzBuZOPgbNsO75bCexV1Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664217349; a=rsa-sha256; cv=none; b=wNeHNdRQyc9pgRvhjf0VOVGKZEBTFQOT22TEEjGwL85GKmB0PNjE7tHP2ttn9EGQFGgSeg zQaMRYcdOLkvIAy+RRYT7J28lHHy+9oTumfHwU97NPRlOVXoWZuf2Z9qyevjrYHIvKugib 71E3nByrBOhyCikgMHgjc0/zV7mjj5HECCS0D5k3XDtEuo3TKucih7Uy0NRMEfDs0bi1Xy BsY6NZCd9mNiUCgvSgOBBRaTWyxUbK/bYkadAIjYcCTA+DHj+FZtMT41sD05YSyZJMCAav RYuVM5eX5zeuKG0XqZElIAodawD58TgVYuHu8Es7synMaooehG1wR4se3wHUew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266629 --- Comment #3 from Mikko Lehto --- (In reply to Ed Maste from comment #2) Thank you Ed, unfortunately still gives "corrupted queue file". Hope this helps, looking forward not to use Sendmail. Below are steps to reproduce: 1. Succesful case with no problems (13.1 binary pkg mail/dma-0.13.20220128_1,1): --- echo -n 'hello world' | /usr/local/libexec/dma -bq -f localuser@localhost remouser@remotehost.example.invalid --- In this OK case queue file /var/spool/dma/M... ends in byte 0x0A, that seem= to be the expected queue file body suffix. Remote delivery is succesful. 2. Failing case (13.1 src.txz + new mail.c from 2e8403e0215868a13e2bdd1c979fc351971b8d91): --- echo -n 'hello world' | /usr/libexec/dma_266629 -bq -f localuser@localhost remouser@remotehost.example.invalid --- In this failing case I can see that queue file /var/spool/dma/M... ends in 0x64, that is last letter of "world". Remote delivery fails. I use "hexdump -C /var/spool/dma/M..." to observe last byte in queue file. For fun I also took mail.c from upstream repository and compiled. With this, frankenstein, there is always 0x0A at the end of /var/spool/dma/= M... queue file. ( Still comparing readmail() loops, trying to figure something ) --=20 You are receiving this mail because: You are the assignee for the bug.=