Check if an email address exists without sending any email, written in Rust. Comes with a ⚙️ HTTP backend.
Rust emailemail-validationemail-validation-apiemail-verificationemail-verification-apiemail-verifierhacktoberfest
fix: Add "Unknown user" smtp error check (#347)
Amaury Martiny47eb5780f692
diff --git a/README.md b/README.mdindex 1dd6b6d0..5c548e85 100644--- a/README.md+++ b/README.md@@ -1,6 +1,6 @@[](https://crates.io/crates/check-if-email-exists)[](https://docs.rs/check-if-email-exists)-[](https://github.com/amaurymartiny/check-if-email-exists/actions)+[](https://github.com/amaurymartiny/check-if-email-exists/actions)[](https://travis-ci.org/amaurymartiny/check-if-email-exists)[](https://ci.appveyor.com/project/amaurymartiny/check-if-email-exists-a08kp)@@ -12,7 +12,7 @@<br /><br /><br />-#### 👉 Try it here: https://reacherhq.github.io+#### 👉 Try it here: https://reacher.emailThis software is licensed under the GPL-3.0 license, which forbids it being integrated and distributed in closed-source commercials projects. [Message me](mailto:[email protected]) if you wish an alternate licensing.@@ -43,9 +43,9 @@ Many online services (https://hunter.io, http://verify-email.org, http://email-cThere are 4 ways you can try `check-if-email-exists`.-### 1. Use the Hosted Version: http://reacherhq.github.io+### 1. Use the Hosted Version: http://reacher.email-I created a simple static site with this tool: http://reacherhq.github.io. The check-if-email-exists is hosted on [fly.io](https://fly.io). The check-if-email-exists endpoint is rate-limited to prevent abuse. Also see [issue #155](https://github.com/amaurymartiny/check-if-email-exists/issues/155).+I created a simple static site with this tool: http://reacher.email. The backend is hosted on [fly.io](https://fly.io), the free tier endpoint is rate-limited to prevent abuse. Also see [issue #155](https://github.com/amaurymartiny/check-if-email-exists/issues/155).If you would like to self-host it yourself and have questions, send me a message.@@ -77,7 +77,7 @@ Optionally, you can also pass in `from_email` and `hello_name` fields into the J### 3. Download the Binary-> Note: The binary doesn't connect to any check-if-email-exists, it checks the email directly from your computer.+> Note: The binary doesn't connect to any backend, it checks the email directly from your computer.Head to the [releases page](https://github.com/amaurymartiny/check-if-email-exists/releases) and download the binary for your platform. Make sure you have [`openssl`](https://www.openssl.org/) installed on your local machine.diff --git a/core/src/smtp.rs b/core/src/smtp.rsindex 1a188e32..2abc5cd1 100644--- a/core/src/smtp.rs+++ b/core/src/smtp.rs@@ -242,12 +242,14 @@ async fn email_deliverable(// 550 5.1.1 <EMAIL> User unknown// 550 recipient address rejected: user unknown in local recipient table|| err_string.contains("user unknown")- // 550 5.1.1 : Mailbox not found- // 550 Unknown address error ‘MAILBOX NOT FOUND’- || err_string.contains("not found")+ // 550 Unknown user+ || err_string.contains("unknown user")// 550 5.1.1 No such user - pp// 550 No such user here|| err_string.contains("no such user")+ // 550 5.1.1 : Mailbox not found+ // 550 Unknown address error ‘MAILBOX NOT FOUND’+ || err_string.contains("not found")// 550 5.1.1 : Invalid mailbox|| err_string.contains("invalid mailbox")// 550 5.1.1 Sorry, no mailbox here by that name