mirror of
https://github.com/anonaddy/anonaddy.git
synced 2026-04-25 14:15:53 +03:00
[GH-ISSUE #566] Email forwarding fails after pgp key expired #970
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/anonaddy#970
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pacroix on GitHub (Dec 3, 2023).
Original GitHub issue: https://github.com/anonaddy/anonaddy/issues/566
Version: v1.0.3
selfhostedI recently started getting failed deliveries for one of my recipients with the only comment being to check the logs. After digging around a bit, I found out that the pgp key I'm using for this email had expired. I then renewed the key on my local machine, deleted the existing key in addy.io and uploaded it again.
However, forwarding to this recipient still does not work when encryption is enabled. Forwarding to other recipients, each using their own pgp key, works without a problem. I have also checked the server's key ring, but it contains the updated key.
I can't imagine, that I am the first person with an expired pgp key, but I don't know how else to renew the key without changing to a new one. And if not at least a more detailed error code would be nice to have.
Screenshot of the failed delivery tab. Another thing here: I can't download the email, even though I had the option enabled (or I'm looking in the wrong place)

Supervisor log:
Laravel log:
@willbrowningme commented on GitHub (Dec 5, 2023):
Thanks, I've just pushed a fix for this by moving it within the try/catch block.
@pacroix commented on GitHub (Dec 5, 2023):
Thank you for looking into this, but the error is still occurring and unfortunately there is still no more meaningful error message, apart from the message to check the logs.
@willbrowningme commented on GitHub (Dec 6, 2023):
Did the email still get forwarded but with encryption turned off?
Did you receive a GPG key expired email notification and was encryption disabled for that recipient when viewing from the recipients page?
@willbrowningme commented on GitHub (Dec 6, 2023):
I've just fixed it in this commit, I was only catching
RuntimeExceptionand notExceptionwhich is why it wasn't working as expected.