Mails stalling when recipient has an expired key
We got 7 stale mail in the last 4 days. As an example I picked one of them.
This is the regarding leap-mx.log msgs:
Mar 7 10:38:30 pixelated leap-mx: [HTTP11ClientProtocol,client] Processing new mail at '/var/mail/leap-mx/Maildir/new/1488857634.Vfe00I20a04e4M69465.pixelated'
Mar 7 10:38:30 pixelated leap-mx: [HTTP11ClientProtocol,client] Mail owner: bb30fb75030f1a02fca9911860c65809
Mar 7 10:38:30 pixelated leap-mx: [-] Starting factory <twisted.web.client._HTTP11ClientFactory instance at 0x7f709b763758>
Mar 7 10:38:30 pixelated leap-mx: [-] Stopping factory <twisted.web.client._HTTP11ClientFactory instance at 0x7f7099f19638>
Mar 7 10:38:30 pixelated leap-mx: [HTTP11ClientProtocol,client] Encrypting message to bb30fb75030f1a02fca9911860c65809's pubkey
Mar 7 10:38:31 pixelated leap-mx: [HTTP11ClientProtocol,client] _encrypt_message: Encryption failed with status: 'invalid recipient'
Mar 7 10:38:31 pixelated leap-mx: [HTTP11ClientProtocol,client] _export_message: Something went wrong, here's all I know: 'bb30fb75030f1a02fca9911860c65809' | None
Mar 7 10:38:31 pixelated leap-mx: [HTTP11ClientProtocol,client] Still stalled email FilePath('/var/mail/leap-mx/Maildir/new/1488857634.Vfe00I20a04e4M69465.pixelated') for the last 7:04:36.790707: Exception('No uuid or doc',)
The mail itself is a leap-discuss mailinglist email:
Return-Path: <leap-discuss-<EMAIL REDACTED>>
X-Original-To: <EMAIL REDACTED>
Delivered-To: bb30fb75030f1a02fca9911860c65809@deliver.local
Received: from mx5.riseup.net (mx5.riseup.net [198.252.153.130])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified))
by pixelated.wazokazi.is (Postfix) with ESMTPS id 3AD6E20201FD
for <<EMAIL REDACTED>>; Tue, 7 Mar 2017 03:33:52 +0000 (UTC)
Authentication-Results: pixelated.wazokazi.is; dkim=pass
reason="1024-bit key; unprotected key"
header.d=riseup.net header.i=@riseup.net header.b=V2fuAAYx;
dkim-adsp=pass; dkim-atps=neutral
Received: from whimbrel.riseup.net (unknown [10.0.1.39])
by mx5.riseup.net (Postfix) with ESMTP id 2C12A20BB4;
Tue, 7 Mar 2017 03:33:31 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=chirp;
t=1488857614; bh=I0KBg2wPMMgaQK/QUjcYVK4pIXRuA+lfq9iwamBteJg=;
h=From:To:In-Reply-To:References:Date:Subject:Reply-To:List-Post:
List-Id:List-Archive:List-Help:List-Owner:List-Post:List-Subscribe:
List-Unsubscribe:From;
b=V2fuAAYxgkyxedOgbLB20qQ+8ACAsc+zJNEwpI1sbmwVboFI+2q4f/Y/IV+3qVhfk
OIjJsBz4Jmo9J3E+joOtW53gv+4eRis5x+/aFdI7t1Z4Zr/Gcl0J47J+s3l4ENTvZY
l89kU3vMvb5JIyl47M1usqIuq4BEtX0zFTDYkcXY=
Received: by whimbrel.riseup.net (Postfix, from userid 1000)
id 86206FFC0B; Mon, 6 Mar 2017 19:33:31 -0800 (PST)
X-Original-To: leap-<EMAIL REDACTED>
Delivered-To: leap-<EMAIL REDACTED>
Received: from pangolin.leap.se (pangolin.leap.se [37.218.242.143])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "pangolin.leap.se", Issuer "LEAP Encryption Access Project Root CA" (not verified))
by whimbrel.riseup.net (Postfix) with ESMTPS id 7B585FF8E1
for <leap-<EMAIL REDACTED>>; Tue, 7 Mar 2017 03:33:27 +0000 (UTC)
Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified))
by pangolin.leap.se (Postfix) with ESMTPS id 73C8A9C006
for <<EMAIL REDACTED>>; Tue, 7 Mar 2017 03:33:24 +0000 (UTC)
Authentication-Results: pangolin.leap.se; dkim=pass
reason="1024-bit key; unprotected key"
header.d=riseup.net header.i=@riseup.net header.b=UxoJDOx/;
dkim-adsp=pass; dkim-atps=neutral
Received: from cotinga.riseup.net (unknown [10.0.1.164])
(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
(Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK))
by mx1.riseup.net (Postfix) with ESMTPS id D91B11A22F8
for <<EMAIL REDACTED>>; Tue, 7 Mar 2017 03:33:22 +0000 (UTC)
Received: from [127.0.0.1] (localhost [127.0.0.1])
(Authenticated sender: micah)
with ESMTPSA id A6DA24196F
Received: by muck.riseup.net (Postfix, from userid 1000)
id 39CF71BE1EB1; Mon, 6 Mar 2017 22:33:21 -0500 (EST)
From: micah <<EMAIL REDACTED>>
To: <EMAIL REDACTED>, <EMAIL REDACTED>
In-Reply-To: <<EMAIL REDACTED>>
References: <<EMAIL REDACTED>>
Date: Mon, 06 Mar 2017 22:33:21 -0500
Message-ID: <<EMAIL REDACTED>>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Status: No, score=-100.0 required=6.0 tests=SHORTCIRCUIT,
USER_IN_WHITELIST shortcircuit=ham autolearn=disabled version=3.4.0
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on vireo.riseup.net
Subject: Re: [leap-discuss] "The current client version [0.9.2] is not
supported by this provider. Please update to latest version."
Reply-To: micah <<EMAIL REDACTED>>
X-Loop: leap-<EMAIL REDACTED>
X-Sequence: 822
Errors-to: leap-discuss-<EMAIL REDACTED>
Precedence: list
Precedence: bulk
Sender: leap-discuss-<EMAIL REDACTED>
X-no-archive: yes
List-Post: <mailto:<EMAIL REDACTED>>
List-Id: <leap-discuss.lists.riseup.net>
List-Archive: <https://lists.riseup.net/www/arc/leap-discuss>
List-Help: <mailto:<EMAIL REDACTED>?subject=help>
List-Owner: <mailto:leap-discuss-<EMAIL REDACTED>>
List-Post: <mailto:leap-<EMAIL REDACTED>>
List-Subscribe: <mailto:<EMAIL REDACTED>?subject=subscribe%20leap-discuss>
List-Unsubscribe: <mailto:<EMAIL REDACTED>?subject=unsubscribe%20leap-discuss>
X-Virus-Scanned: clamav-milter 0.99.2 at pixelated
X-Virus-Status: Clean
<EMAIL REDACTED> writes:
...
The identities db shows this user id (which is a long-running user without any problems in the past):
curl -s --netrc-file /etc/couchdb/couchdb.netrc '127.0.0.1:5984/identities/_all_docs?include_docs=true' | grep bb30fb75030f1a02fca9911860c65809
{"id":"bb30fb75030f1a02fca9911860e5767f","key":"bb30fb75030f1a02fca9911860e5767f","value":{"rev":"33-61a91c454db71563b3d69d19f62e9e5e"},"doc":{"_id":"bb30fb75030f1a02fca9911860e5767f","_rev":"33-61a91c454db71563b3d69d19f62e9e5e","user_id":"bb30fb75030f1a02fca9911860c65809","address":".....
Any ideas how to debug/fix this ?