Delete failed task fails because account recovery is not supported

Issue Description

When trying to delete a failed “Perform DKIM key rotation for a domain” task regarding a domain that has been deleted after the task has failed I get the error “Account recovery is not supported in this deployment” in WebUI and CLI.

Expected Behavior

Delete failed task.

Actual Behavior

The failed task cannot be deleted and I get the error “Account recovery is not supported in this deployment” in WebUI and CLI.

Reproduction Steps

  1. Create a domain with automatic DKIM and DNS management.
  2. Task “Perform DKIM key rotation for a domain” has to fail. In my case: “Failed to create DNS record [..] Object exists.” because of faulty polling and propagation settings in DNS provider.
  3. Delete DKIM keys and domain. Now the task points to a non-existing domain.
  4. Try to delete failed task.

Stalwart Version

v0.16.x

Installation Method

Built from source

Database Backend

RocksDB

Blob Storage

RocksDB

Search Engine

Internal

Directory Backend

Internal

Additional Context

Stalwart v0.16.6-7aa4865-oss

I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.

on

I have searched this support forum (open and closed topics) and confirm this is not a duplicate.

on

I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.

on

This has been fixed. Upgrade to v0.16.7 when released.