diff --git a/src/authres.rs b/src/authres.rs index 51f7eb9fa..d1a31636f 100644 --- a/src/authres.rs +++ b/src/authres.rs @@ -666,6 +666,10 @@ Authentication-Results: box.hispanilandia.net; spf=pass smtp.mailfrom=adbenitez@ tcm.section("An attacker, bob2, sends a from-forged email to Alice!"); + // Sleep to make sure key reset is ignored because of DKIM failure + // and not because reordering is suspected. + tokio::time::sleep(std::time::Duration::from_millis(1100)).await; + let bob2 = tcm.unconfigured().await; bob2.configure_addr("bob@example.net").await; e2ee::ensure_secret_key_exists(&bob2).await?;