Skip to content

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

docs: Update to docs.reacher.email

Amaurye92ae1f6e69f
diff --git a/LICENSE.md b/LICENSE.md
index 1f93fb3e..d7f33216 100644
--- a/LICENSE.md
+++ b/LICENSE.md
@@ -8,4 +8,4 @@ If you want to use `check-if-email-exists` to develop commercial sites, tools, a
If you are creating an open source application under a license compatible with the GNU Affero GPL license v3, you may use `check-if-email-exists` under the terms of the [AGPL-3.0](./LICENSE.AGPL).
-[Read more](https://help.reacher.email/reacher-licenses) about Reacher's license.
+[Read more](https://docs.reacher.email/self-hosting/licensing) about Reacher's license.
diff --git a/README.md b/README.md
index b3887fb0..cb69951f 100644
--- a/README.md
+++ b/README.md
@@ -134,23 +134,23 @@ The output will be a JSON with the below format, the fields should be self-expla
## What Does This Tool Check?
-| Included? | Feature | Description | JSON field |
-| --------- | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
-| ✅ | **Email reachability** | How confident are we in sending an email to this address? Can be one of `safe`, `risky`, `invalid` or `unknown`. | `is_reachable` |
-| ✅ | **Syntax validation** | Is the address syntactically valid? | `syntax.is_valid_syntax` |
-| ✅ | **DNS records validation** | Does the domain of the email address have valid MX DNS records? | `mx.accepts_mail` |
-| ✅ | **Disposable email address (DEA) validation** | Is the address provided by a known [disposable email address](https://en.wikipedia.org/wiki/Disposable_email_address) provider? | `misc.is_disposable` |
-| ✅ | **SMTP server validation** | Can the mail exchanger of the email address domain be contacted successfully? | `smtp.can_connect_smtp` |
-| ✅ | **Email deliverability** | Is an email sent to this address deliverable? | `smtp.is_deliverable` |
-| ✅ | **Mailbox disabled** | Has this email address been disabled by the email provider? | `smtp.is_disabled` |
-| ✅ | **Full inbox** | Is the inbox of this mailbox full? | `smtp.has_full_inbox` |
-| ✅ | **Catch-all address** | Is this email address a [catch-all](https://debounce.io/blog/help/what-is-a-catch-all-or-accept-all/) address? | `smtp.is_catch_all` |
-| ✅ | **Role account validation** | Is the email address a well-known role account? | `misc.is_role_account` |
-| ✅ | **Gravatar Url** | The url of the [Gravatar](https://gravatar.com/) email address profile picture | `misc.gravatar_url` |
-| ✅ | **Have I Been Pwned?** | Has this email been compromised in a [data breach](https://haveibeenpwned.com/)? | `misc.haveibeenpwned` |
-| 🔜 | **Free email provider check** | Is the email address bound to a known free email provider? | [Issue #89](https://github.com/reacherhq/check-if-email-exists/issues/89) |
-| 🔜 | **Syntax validation, provider-specific** | According to the syntactic rules of the target mail provider, is the address syntactically valid? | [Issue #90](https://github.com/reacherhq/check-if-email-exists/issues/90) |
-| 🔜 | **Honeypot detection** | Does email address under test hide a [honeypot](https://en.wikipedia.org/wiki/Spamtrap)? | [Issue #91](https://github.com/reacherhq/check-if-email-exists/issues/91) |
+| Included? | Feature | Description | JSON field |
+| --------- | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
+| ✅ | **Email reachability** | How confident are we in sending an email to this address? Can be one of `safe`, `risky`, `invalid` or `unknown`. | `is_reachable` |
+| ✅ | **Syntax validation** | Is the address syntactically valid? | `syntax.is_valid_syntax` |
+| ✅ | **DNS records validation** | Does the domain of the email address have valid MX DNS records? | `mx.accepts_mail` |
+| ✅ | **Disposable email address (DEA) validation** | Is the address provided by a known [disposable email address](https://en.wikipedia.org/wiki/Disposable_email_address) provider? | `misc.is_disposable` |
+| ✅ | **SMTP server validation** | Can the mail exchanger of the email address domain be contacted successfully? | `smtp.can_connect_smtp` |
+| ✅ | **Email deliverability** | Is an email sent to this address deliverable? | `smtp.is_deliverable` |
+| ✅ | **Mailbox disabled** | Has this email address been disabled by the email provider? | `smtp.is_disabled` |
+| ✅ | **Full inbox** | Is the inbox of this mailbox full? | `smtp.has_full_inbox` |
+| ✅ | **Catch-all address** | Is this email address a [catch-all](https://debounce.io/blog/help/what-is-a-catch-all-or-accept-all/) address? | `smtp.is_catch_all` |
+| ✅ | **Role account validation** | Is the email address a well-known role account? | `misc.is_role_account` |
+| ✅ | **Gravatar Url** | The url of the [Gravatar](https://gravatar.com/) email address profile picture | `misc.gravatar_url` |
+| ✅ | **Have I Been Pwned?** | Has this email been compromised in a [data breach](https://haveibeenpwned.com/)? | `misc.haveibeenpwned` |
+| 🔜 | **Free email provider check** | Is the email address bound to a known free email provider? | [Issue #89](https://github.com/reacherhq/check-if-email-exists/issues/89) |
+| 🔜 | **Syntax validation, provider-specific** | According to the syntactic rules of the target mail provider, is the address syntactically valid? | [Issue #90](https://github.com/reacherhq/check-if-email-exists/issues/90) |
+| 🔜 | **Honeypot detection** | Does email address under test hide a [honeypot](https://en.wikipedia.org/wiki/Spamtrap)? | [Issue #91](https://github.com/reacherhq/check-if-email-exists/issues/91) |
## 🤔 Why?
@@ -166,25 +166,9 @@ If you want to use `check-if-email-exists` to develop commercial sites, tools, a
### Open source license
-If you are creating an open-source application under a license compatible with the GNU Affero GPL license v3, you may use `check-if-email-exists` under the terms of the [AGPL-3.0](./LICENSE.AGPL).
+If you are creating an open-source application under a license compatible with the GNU Affero GPL License v3, you may use `check-if-email-exists` under the terms of the [AGPL-3.0](./LICENSE.AGPL).
-[➡️ Read more](https://help.reacher.email/reacher-licenses) about Reacher's license.
-
-## ❓ FAQ
-
-#### What does `is_reachable: "unknown"` mean?
-
-This means that the server does not allow real-time verification of an email right now. It may happen for multiple reasons: your IP is blacklisted, the SMTP port 25 is blocked, the email account is momentarily receiving too many emails (spam protection)... or the email provider simply does not allow real-time verification at all. The details of this `"unknown"` case can be found in the `smtp.error` and `mx.error` fields.
-
-#### The library hangs/takes a long time/doesn't show anything after 1 minute.
-
-Most ISPs block outgoing SMTP requests through port 25, to prevent spam. `check-if-email-exists` needs to have this port open to make a connection to the email's SMTP server, so won't work behind these ISPs, and will instead hang until it times out. There's unfortunately no easy workaround for this problem, see for example [this StackOverflow thread](https://stackoverflow.com/questions/18139102/how-to-get-around-an-isp-block-on-port-25-for-smtp). One solution is to rent a Linux cloud server with a static IP and no blocked ports, see for example our [Self-Host Guide](https://help.reacher.email/self-host-guide) for which cloud providers open port 25.
-
-To see in detail what the binary is doing behind the scenes, run it in verbose mode with `RUST_LOG=debug` to see the logs.
-
-#### I have another question.
-
-Feel free to check out Reacher's [FAQ](https://help.reacher.email/faq).
+[➡️ Read more](https://docs.reacher.email/self-hosting/licensing) about Reacher's license.
## 🔨 Build From Source
diff --git a/backend/README.md b/backend/README.md
index e4a81a06..bd693811 100644
--- a/backend/README.md
+++ b/backend/README.md
@@ -45,17 +45,17 @@ Then send a `POST http://localhost:8080/v0/check_email` request with the followi
These are the environment variables used to configure the HTTP server. To pass them to the Docker container, use the `-e {ENV_VAR}={VALUE}` flag.
-| Env Var | Required? | Description | Default |
+| Env Var | Required? | Description | Dockerfile default |
| ----------------------------------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------- |
-| `RUST_LOG` | No | One of `trace,debug,warn,error,info`. 💡 PRO TIP: `RUST_LOG=debug` is very handful for debugging purposes. | not defined |
-| `RCH_HTTP_HOST` | No | The host name to bind the HTTP server to. | `127.0.0.1` |
+| `RUST_LOG` | No | One of `trace,debug,warn,error,info`. 💡 PRO TIP: `RUST_LOG=debug` is very handful for debugging purposes. | `reacher=info` |
+| `RCH_HTTP_HOST` | No | The host name to bind the HTTP server to. | `0.0.0.0` |
| `PORT` | No | The port to bind the HTTP server to, often populated by the cloud provider. | `8080` |
| `RCH_SENTRY_DSN` | No | If set, bug reports will be sent to this [Sentry](https://sentry.io) DSN. | not defined |
| `RCH_HEADER_SECRET` | No | If set, then all HTTP requests must have the `x-reacher-secret` header set to this value. This is used to protect the backend against public unwanted HTTP requests. | undefined |
| `RCH_FROM_EMAIL` | No | Email to use in the `<MAIL FROM:>` SMTP step. Can be overwritten by each API request's `from_email` field. | [email protected] |
| `RCH_HELLO_NAME` | No | Name to use in the `<EHLO>` SMTP step. Can be overwritten by each API request's `hello_name` field. | gmail.com |
| `RCH_SMTP_TIMEOUT` | No | Timeout for each SMTP connection. | 45s |
-| `RCH_WEBDRIVER_ADDR` | No | Set to a running WebDriver process endpoint (e.g. `http://localhost:9515`) to use a headless navigator to password recovery pages to check Yahoo and Hotmail/Outlook addresses. We recommend `chromedriver` as it allows parallel requests. | not defined |
+| `RCH_WEBDRIVER_ADDR` | No | Set to a running WebDriver process endpoint (e.g. `http://localhost:9515`) to use a headless navigator to password recovery pages to check Yahoo and Hotmail/Outlook addresses. We recommend `chromedriver` as it allows parallel requests. | `http://localhost:9515` |
| **For Bulk Verification:** | | |
| `RCH_ENABLE_BULK` | No | If set to `1`, then bulk verification endpoints will be added to the backend. | 0 |
| `DATABASE_URL` | Yes if `RCH_ENABLE_BULK==1` | [Bulk] Database connection string for storing results and task queue | not defined |
@@ -65,8 +65,6 @@ These are the environment variables used to configure the HTTP server. To pass t
## REST API Documentation
-Read docs on https://help.reacher.email/rest-api-documentation.
-
The API exposes the following endpoint: `POST /v0/check_email` expecting the following body:
```js
@@ -93,7 +91,7 @@ curl -X POST \
http://localhost:8080/v0/check_email
```
-Also check the [OpenAPI documentation](https://help.reacher.email/rest-api-documentation).
+Also check the [OpenAPI documentation](https://docs.reacher.email/advanced/openapi).
## Build From Source
diff --git a/backend/openapi.json b/backend/openapi.json
index 7042547a..4447718b 100644
--- a/backend/openapi.json
+++ b/backend/openapi.json
@@ -311,7 +311,7 @@
"type": "string",
"title": "Reachable",
"enum": ["invalid", "unknown", "safe", "risky"],
- "description": "An enum to describe how confident we are that the recipient address is real: `safe`, `risky`, `invalid` and `unknown`. Check our FAQ to know the meanings of the 4 possibilities: https://help.reacher.email/email-attributes-inside-json."
+ "description": "An enum to describe how confident we are that the recipient address is real: `safe`, `risky`, `invalid` and `unknown`. Check our docs to know the meanings of the 4 possibilities: https://docs.reacher.email/getting-started/publish-your-docs."
},
"YahooVerifMethod": {
"type": "string",