From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id V0jCBkPffmKveAEAbAwnHQ (envelope-from ) for ; Sat, 14 May 2022 00:44:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oEepBUPffmJklAAA9RJhRA (envelope-from ) for ; Sat, 14 May 2022 00:44:19 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (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 aspmx1.migadu.com (Postfix) with ESMTPS id C14323AC8A for ; Sat, 14 May 2022 00:44:17 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 3CE4D5F728; Fri, 13 May 2022 22:38:21 +0000 (UTC) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by mail.notmuchmail.org (Postfix) with ESMTPS id 035105F717 for ; Fri, 13 May 2022 22:38:18 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id B45E55C0284; Fri, 13 May 2022 18:38:16 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Fri, 13 May 2022 18:38:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1652481496; x= 1652567896; bh=qe0X/NlfGpxSZMA76S7bC3AEWl7h/FNRzt8RHjMpesk=; b=e vwUwIwHwaPpXjmarm8hEmhxCcGEuNw/N2rNyG/ht8AOGC0B5YdynXDJpDrmLizDN 2rdMB2sF/Jc0ARoxj5o7AJu3NPwezAMNQLyO8tMlFmfQ1HwMSCd6u8WYW2Cm0cJD 9uEShxQ8P7fWtI3edpM6xcncfO1rEzzPu5jP2GK4229Q6D810ubmX/dRhtKapPAF v6ausjDnTDLmwYTpWkrVXQP+Hph4YXDBuCULWm7mSNB4uRSCb4ylP66We9sQ7hw0 hnV107h3QmdgB5sgXG1+BRxFnRXB+Mn5GIwqs7yP42lnthuLzuwG+vaxhIz+FGl+ rCKzaPLGgOEqLuNDmoSVw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1652481496; x=1652567896; bh=qe0X/NlfGpxSZMA76S7bC3AEWl7h /FNRzt8RHjMpesk=; b=PrQXyR/XUlM8bzPPn/s7Juk+wqRGRy88s0bj+VaysRe2 fuRF78inK5HcWy6IKiq9WgtEqmYE2rVQo7XAP9jyIzkfRz3khC63MxmeEgFNwgts GjE4vCT2dsyiaJp7LGvdGBwYcCeBMxQB1tHXpNyPKh3BdR9yk3ILRGcg8gjG0oUO 3mQC28UDAIM8sJ5B7GpWhm7Sh3jaN56IITnCprL1QTaE31wIjHMLXfqoWlPjOqyX eQhX4rpSNQC/pNcU7gewRM9RyqSUs5BUh1wGoD3CcoUYWpFTF4AH7jFbSsqOTchp 62Z/RDBZTzQzudcagbjxgnOiVFvZULjPOslKQwFFFA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrhedtgdduudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpegtggfgjghfuffhvfffkfgfsehtqhertddtreejnecuhfhrohhmpehhghhvuceo hhhgvhesfhgrshhtmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpedutdelveffue elieehffeuleehieegfffftddvkedvhfeigfejteetudelgefhveenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehhghhvsehfrghsthhmrghilh drtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 13 May 2022 18:38:16 -0400 (EDT) MIME-Version: 1.0 In-Reply-To: <87h75uxw2c.fsf@tethera.net> References: <165213325238.16557.2841309328065638457@1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa> <87h75uxw2c.fsf@tethera.net> Subject: Re: Help with sending mail from notmuch-emacs From: hgv To: David Bremner , notmuch@notmuchmail.org Date: Fri, 13 May 2022 18:38:15 -0400 Message-ID: <165248149566.88308.11337284788338947893@1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa> User-Agent: alot/0.9.1 Message-ID-Hash: MUFXFP25UTRJCMJZZ2FJTJG32KRZJWHS X-Message-ID-Hash: MUFXFP25UTRJCMJZZ2FJTJG32KRZJWHS X-MailFrom: hgv@fastmail.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652481858; 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:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=HlZ6Md8t0GcmSM/EiZpOIjKGpGuxgJJeMtpSPKGjgCY=; b=rCl9Np0J2jijR3d6dzHvUGiKYsRtwpcOYU+2toaPQhbovAXSKahn6JEYqFB0mfIWgRW/Zs W0Yqg7PwhZq6ggzd6xL9mHhKFMq4CzXD6qCP93uxZ2KrT+4LO5MClRtOBQJq/T6MDquI3v 1HGkrflscBMGOYJLlTh9GrP1Wbvuwd5HgMMnaHNlfqcSjqXsJB28f9ve5y607S0zW3+FfG MR3bkwrlDbJ0iQyDr0TLU7kWts+bxebWD2YItFXwO1zs0DB+1IEdBCUiT1U05uP9OoFjvj gKKP0nWBorKI5/yektaVW/viIl/viKz5tVsfsmbtniS4EN/+Jy9XU1axwqnijg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652481858; a=rsa-sha256; cv=none; b=uNuswtlPEJYpIeY9Qz7CBuZk3HCuOGg7thDnZR4YmtCqjHyqDgo8x8Tn1y2tTAEisfLS9C 84e/4cPvT58iOkhtYYPPLNMe4GDbPvNEHsdLSNRpA8mQbDt5pV4dUPq8JPMMcQDqaosf/E PaxuQLjaH2j7N3z8ofz5SwJ/rmep7WSarOaY7gsvNe7pUoH+SE60D5vA02XLiTZJAv8DA3 xUaPSFGIq5v4LshlBBqiBj7RHnROsPjApvHATVYoNUj5qo7+SrsZ6DzB7I9LNaRHRBuSCj DBwntF6lvgnSIuVTo1UZi1dFSkhU0WAfMJN4ORHemjjH2ddnMWb1scBZvymYmg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=fastmail.com header.s=fm1 header.b="e vwUwIw"; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm1 header.b="PrQXyR/X"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fastmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 6.39 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=fastmail.com header.s=fm1 header.b="e vwUwIw"; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm1 header.b="PrQXyR/X"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fastmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: C14323AC8A X-Spam-Score: 6.39 X-Migadu-Scanner: scn0.migadu.com X-TUID: XPsg6g7kfONk Quoting David Bremner (2022-05-12 17:47:23) > hgv writes: > > Did you try setting a break on notmuch-maildir-fcc-with-notmuch-insert? > I'm guessing that it doesn't get called because the output of msmtpq is > misinterpreted as an error. I think this is a bug in msmtpq (or at least > a way in which it differs from a traditional sendmail). For me (using > nullmailer) "/usr/lib/sendmail -oi -f david@tethera.net -t < foo.eml" > generates no output on success. If you can change / replace the msmtpq > script, you could try commenting out the log line [1] that is printing > "send was successful". > > Another test (which would be worthwhile for your second issue as well), > is to test with M-x message-mail (however one calls a command in doom). > This will eliminate the possibility of some setting of notmuch confusing > things. Of course it still won't insert into the notmuch database, but > if it is working you should not see a message about "Sending...failed" > > David > > [1] Maybe line 503? > Thank you, David, for the continued help. You were right to focus on the msmtpq script! And I'm sorry I didn't look there before. There is a simple option to set the script to quiet, which solves the issue. I'm still struggling with the Content-Transfer-Encoding header and the "charset=utf-8" half of the Content-Type header, both of which I cannot get set in my emails, if anyone has any thoughts!