Skip to content

Check if an email address exists without sending any email, written in Rust. Comes with a ⚙️ HTTP backend.

fix(smtp): treat permanent 5.1.1 and 5.7.1 responses as invalid recipients (#1631)

krishnakumarb3d6b0751ae9
diff --git a/core/src/smtp/parser.rs b/core/src/smtp/parser.rs
index b47a17dc..dac3752c 100644
--- a/core/src/smtp/parser.rs
+++ b/core/src/smtp/parser.rs
@@ -108,6 +108,10 @@ pub fn is_invalid(e: &str, email: &EmailAddress) -> bool {
|| e.contains("unable to verify user")
// permanent: 5.1.1 Utilisateur inconnu (on @sante.fr)
|| e.contains("utilisateur inconnu")
+ // permanent: 5.1.1
+ || e.contains("permanent: 5.1.1")
+ // permanent: 5.7.1
+ || e.contains("permanent: 5.7.1")
}
/// Check that the mailbox has a full inbox.