From a074e237d1b19dd7aae0c4a6e7867f089dcc3e5f Mon Sep 17 00:00:00 2001 From: Maurus Decimus <11444311+mdecimus@users.noreply.github.com> Date: Thu, 23 Apr 2026 18:09:33 +0200 Subject: [PATCH] Allow .test domains during bootstrap --- crates/jmap/src/registry/mapping/bootstrap.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/jmap/src/registry/mapping/bootstrap.rs b/crates/jmap/src/registry/mapping/bootstrap.rs index 2308b9c3..c5a7b257 100644 --- a/crates/jmap/src/registry/mapping/bootstrap.rs +++ b/crates/jmap/src/registry/mapping/bootstrap.rs @@ -121,7 +121,7 @@ pub(crate) async fn bootstrap_set( // Validate domain name and hostname let server_hostname = bootstrap.server_hostname.trim().to_lowercase(); let domain_name = bootstrap.default_domain.trim().to_lowercase(); - if psl::domain_str(&server_hostname).is_none() { + if psl::domain_str(&server_hostname).is_none() && !server_hostname.ends_with(".test") { set.response.not_updated.append( id, SetError::invalid_properties() @@ -130,7 +130,7 @@ pub(crate) async fn bootstrap_set( ); break; } - if psl::domain_str(&domain_name).is_none() { + if psl::domain_str(&domain_name).is_none() && !domain_name.ends_with(".test") { set.response.not_updated.append( id, SetError::invalid_properties()