Skip to content

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

chore: Remove Commercial License and AGPL mentions (#1661)

Amaury681791d3d9a8
diff --git a/Makefile b/Makefile
index 245d6a4d..2d44541b 100644
--- a/Makefile
+++ b/Makefile
@@ -16,10 +16,6 @@ run-with-worker: export RCH__WORKER__RABBITMQ__URL=amqp://guest:guest@localhost:
run-with-worker: export RCH__STORAGE__POSTGRES__DB_URL=postgresql://localhost/reacherdb
run-with-worker: run
-.PHONY: run-with-commercial-license-trial
-run-with-commercial-license-trial: export RCH__COMMERCIAL_LICENSE_TRIAL__URL=http://localhost:3000/api/v1/commercial_license_trial
-run-with-commercial-license-trial: run
-
# Generate the changelog using the conventional-changelog tool.
# As a hack, we delete all tags that are not beta tags, so that the changelog
# only contains the vX.X.X tags. See:
diff --git a/backend/src/config.rs b/backend/src/config.rs
index 1d7b98ae..805a9fe0 100644
--- a/backend/src/config.rs
+++ b/backend/src/config.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
use crate::storage::{postgres::PostgresStorage, StorageAdapter};
use crate::throttle::ThrottleManager;
use crate::worker::do_work::TaskWebhook;
@@ -73,9 +57,6 @@ pub struct BackendConfig {
/// Configuration on where to store the email verification results.
pub storage: Option<StorageConfig>,
- /// Whether to enable the Commercial License Trial. Setting this to true
- pub commercial_license_trial: Option<CommercialLicenseTrialConfig>,
-
/// Throttle configuration for all requests
pub throttle: ThrottleConfig,
@@ -108,7 +89,6 @@ impl BackendConfig {
sentry_dsn: None,
worker: WorkerConfig::default(),
storage: Some(StorageConfig::Noop),
- commercial_license_trial: None,
throttle: ThrottleConfig::new_without_throttle(),
channel: None,
storage_adapter: Arc::new(StorageAdapter::Noop),
@@ -308,12 +288,6 @@ pub struct PostgresConfig {
pub extra: Option<serde_json::Value>,
}
-#[derive(Debug, Deserialize, Clone, Serialize)]
-pub struct CommercialLicenseTrialConfig {
- pub api_token: String,
- pub url: String,
-}
-
/// Load the worker configuration from the worker_config.toml file and from the
/// environment.
pub async fn load_config() -> Result<BackendConfig, anyhow::Error> {
diff --git a/backend/src/http/error.rs b/backend/src/http/error.rs
index 48db2cd0..a0367547 100644
--- a/backend/src/http/error.rs
+++ b/backend/src/http/error.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
use crate::storage::error::StorageError;
use check_if_email_exists::{CheckEmailInputBuilderError, LOG_TARGET};
use serde::ser::SerializeStruct;
diff --git a/backend/src/http/mod.rs b/backend/src/http/mod.rs
index ae4dc2e7..51cb2b2d 100644
--- a/backend/src/http/mod.rs
+++ b/backend/src/http/mod.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
mod error;
mod v0;
mod v1;
diff --git a/backend/src/http/v0/bulk/db.rs b/backend/src/http/v0/bulk/db.rs
index 9cab6e47..c075565a 100644
--- a/backend/src/http/v0/bulk/db.rs
+++ b/backend/src/http/v0/bulk/db.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
use sqlx::{Pool, Postgres};
use warp::Filter;
diff --git a/backend/src/http/v0/bulk/error.rs b/backend/src/http/v0/bulk/error.rs
index de5ddc9f..a848cca8 100644
--- a/backend/src/http/v0/bulk/error.rs
+++ b/backend/src/http/v0/bulk/error.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
use warp::reject;
#[derive(Debug)]
diff --git a/backend/src/http/v0/bulk/get.rs b/backend/src/http/v0/bulk/get.rs
index 004f591c..e475e814 100644
--- a/backend/src/http/v0/bulk/get.rs
+++ b/backend/src/http/v0/bulk/get.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
//! This file implements the `GET /bulk/{id}` endpoint.
use check_if_email_exists::LOG_TARGET;
diff --git a/backend/src/http/v0/bulk/mod.rs b/backend/src/http/v0/bulk/mod.rs
index 061d27e3..2e2dc3a5 100644
--- a/backend/src/http/v0/bulk/mod.rs
+++ b/backend/src/http/v0/bulk/mod.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
mod db;
mod error;
pub mod get;
diff --git a/backend/src/http/v0/bulk/post.rs b/backend/src/http/v0/bulk/post.rs
index b8bb108e..29783164 100644
--- a/backend/src/http/v0/bulk/post.rs
+++ b/backend/src/http/v0/bulk/post.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
//! This file implements the `POST /v0/bulk` endpoint.
use check_if_email_exists::{CheckEmailInputProxy, LOG_TARGET};
diff --git a/backend/src/http/v0/bulk/results/csv_helper.rs b/backend/src/http/v0/bulk/results/csv_helper.rs
index 121e8611..97a3090c 100644
--- a/backend/src/http/v0/bulk/results/csv_helper.rs
+++ b/backend/src/http/v0/bulk/results/csv_helper.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
use serde::Serialize;
use std::convert::TryFrom;
diff --git a/backend/src/http/v0/bulk/results/mod.rs b/backend/src/http/v0/bulk/results/mod.rs
index b19dbc9f..bd1ba1e8 100644
--- a/backend/src/http/v0/bulk/results/mod.rs
+++ b/backend/src/http/v0/bulk/results/mod.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
//! This file implements the /bulk/{id}/results endpoints.
use check_if_email_exists::LOG_TARGET;
diff --git a/backend/src/http/v0/bulk/task.rs b/backend/src/http/v0/bulk/task.rs
index ab0c698c..bb097f10 100644
--- a/backend/src/http/v0/bulk/task.rs
+++ b/backend/src/http/v0/bulk/task.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
//! This file implements the `POST /bulk` endpoint.
use check_if_email_exists::{
diff --git a/backend/src/http/v0/check_email/mod.rs b/backend/src/http/v0/check_email/mod.rs
index 50a72573..fad03320 100644
--- a/backend/src/http/v0/check_email/mod.rs
+++ b/backend/src/http/v0/check_email/mod.rs
@@ -1,18 +1,2 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
mod backwardcompat;
pub mod post;
diff --git a/backend/src/http/v0/check_email/post.rs b/backend/src/http/v0/check_email/post.rs
index e748e679..b8ec012a 100644
--- a/backend/src/http/v0/check_email/post.rs
+++ b/backend/src/http/v0/check_email/post.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
//! This file implements the `POST /v0/check_email` endpoint.
use check_if_email_exists::smtp::verif_method::VerifMethod;
diff --git a/backend/src/http/v1/bulk/get_progress.rs b/backend/src/http/v1/bulk/get_progress.rs
index f7511703..2960a183 100644
--- a/backend/src/http/v1/bulk/get_progress.rs
+++ b/backend/src/http/v1/bulk/get_progress.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
//! This file implements the `GET /bulk/{id}` endpoint.
use std::sync::Arc;
diff --git a/backend/src/http/v1/bulk/get_results/csv_helper.rs b/backend/src/http/v1/bulk/get_results/csv_helper.rs
index 37a4ccf5..fd50e761 100644
--- a/backend/src/http/v1/bulk/get_results/csv_helper.rs
+++ b/backend/src/http/v1/bulk/get_results/csv_helper.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
use serde::Serialize;
use std::convert::TryFrom;
diff --git a/backend/src/http/v1/bulk/get_results/mod.rs b/backend/src/http/v1/bulk/get_results/mod.rs
index c1aace7b..5314ae94 100644
--- a/backend/src/http/v1/bulk/get_results/mod.rs
+++ b/backend/src/http/v1/bulk/get_results/mod.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
//! This file implements the /bulk/{id}/results endpoints.
use check_if_email_exists::LOG_TARGET;
diff --git a/backend/src/http/v1/bulk/mod.rs b/backend/src/http/v1/bulk/mod.rs
index 93dd9f1b..65ad2f3b 100644
--- a/backend/src/http/v1/bulk/mod.rs
+++ b/backend/src/http/v1/bulk/mod.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
use crate::config::BackendConfig;
use crate::http::ReacherResponseError;
use sqlx::PgPool;
diff --git a/backend/src/http/v1/bulk/post.rs b/backend/src/http/v1/bulk/post.rs
index 577ab78e..00f17cc3 100644
--- a/backend/src/http/v1/bulk/post.rs
+++ b/backend/src/http/v1/bulk/post.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
//! This file implements the `POST /v1/bulk` endpoint.
use std::sync::Arc;
diff --git a/backend/src/http/v1/check_email/mod.rs b/backend/src/http/v1/check_email/mod.rs
index 9fbd6cb2..e8b6291a 100644
--- a/backend/src/http/v1/check_email/mod.rs
+++ b/backend/src/http/v1/check_email/mod.rs
@@ -1,17 +1 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
pub mod post;
diff --git a/backend/src/http/v1/check_email/post.rs b/backend/src/http/v1/check_email/post.rs
index 353611bb..9eb67211 100644
--- a/backend/src/http/v1/check_email/post.rs
+++ b/backend/src/http/v1/check_email/post.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
//! This file implements the `POST /v1/check_email` endpoint.
use check_if_email_exists::{check_email, LOG_TARGET};
@@ -32,7 +16,6 @@ use crate::config::BackendConfig;
use crate::http::v0::check_email::post::{with_config, CheckEmailRequest};
use crate::http::v1::bulk::post::publish_task;
use crate::http::{check_header, ReacherResponseError};
-use crate::storage::commercial_license_trial::send_to_reacher;
use crate::worker::consume::MAX_QUEUE_PRIORITY;
use crate::worker::do_work::{CheckEmailJobId, CheckEmailTask};
use crate::worker::single_shot::SingleShotReply;
@@ -65,10 +48,6 @@ async fn handle_without_worker(
.map_err(ReacherResponseError::from)
.await?;
- // If we're in the Commercial License Trial, we also store the
- // result by sending it to back to Reacher.
- send_to_reacher(Arc::clone(&config), &body.to_email, &result_ok).await?;
-
let result = result_ok.unwrap();
info!(target: LOG_TARGET, email=body.to_email, is_reachable=?result.is_reachable, "Done verification");
Ok(serde_json::to_vec(&result).map_err(ReacherResponseError::from)?)
diff --git a/backend/src/http/v1/mod.rs b/backend/src/http/v1/mod.rs
index 7d4bf4f9..92bd8411 100644
--- a/backend/src/http/v1/mod.rs
+++ b/backend/src/http/v1/mod.rs
@@ -1,18 +1,2 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
pub mod bulk;
pub mod check_email;
diff --git a/backend/src/http/version/get.rs b/backend/src/http/version/get.rs
index eccf251b..06ffaa25 100644
--- a/backend/src/http/version/get.rs
+++ b/backend/src/http/version/get.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
//! This file implements the `GET /version` endpoint.
use crate::CARGO_PKG_VERSION;
diff --git a/backend/src/http/version/mod.rs b/backend/src/http/version/mod.rs
index 4f2aa3d2..125ca70d 100644
--- a/backend/src/http/version/mod.rs
+++ b/backend/src/http/version/mod.rs
@@ -1,17 +1 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
pub mod get;
diff --git a/backend/src/lib.rs b/backend/src/lib.rs
index 68e6021d..a6e8ea2e 100644
--- a/backend/src/lib.rs
+++ b/backend/src/lib.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
pub mod config;
pub mod http;
pub mod storage;
diff --git a/backend/src/main.rs b/backend/src/main.rs
index 5e6a4120..b1ccd666 100644
--- a/backend/src/main.rs
+++ b/backend/src/main.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
//! Main entry point of the `reacher_backend` binary. It has two `main`
//! functions, depending on whether the `bulk` feature is enabled or not.
diff --git a/backend/src/storage/commercial_license_trial.rs b/backend/src/storage/commercial_license_trial.rs
deleted file mode 100644
index 551c130e..00000000
--- a/backend/src/storage/commercial_license_trial.rs
+++ /dev/null
@@ -1,58 +0,0 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
-use crate::config::{BackendConfig, CommercialLicenseTrialConfig};
-use crate::http::ReacherResponseError;
-use crate::worker::do_work::TaskError;
-use check_if_email_exists::{CheckEmailOutput, LOG_TARGET};
-use std::sync::Arc;
-use tracing::debug;
-use warp::http::StatusCode;
-
-/// If we're in the Commercial License Trial, we also store the
-/// result by sending it to back to Reacher.
-pub async fn send_to_reacher(
- config: Arc<BackendConfig>,
- email: &str,
- worker_output: &Result<CheckEmailOutput, TaskError>,
-) -> Result<(), ReacherResponseError> {
- if let Some(CommercialLicenseTrialConfig { api_token, url }) = &config.commercial_license_trial
- {
- let res = reqwest::Client::new()
- .post(url)
- .header("Authorization", api_token)
- .json(worker_output)
- .send()
- .await?;
-
- // Error if not 2xx status code
- if !res.status().is_success() {
- let status = StatusCode::from_u16(res.status().as_u16())?;
- let body: serde_json::Value = res.json().await?;
-
- // Extract error message from the "error" field, if it exists, or
- // else just return the whole body.
- let error_body = body.get("error").unwrap_or(&body).to_owned();
-
- return Err(ReacherResponseError::new(status, error_body));
- }
-
- let res = res.text().await?;
- debug!(target: LOG_TARGET, email=email, res=res, "Sent result to Reacher Commercial License Trial");
- }
-
- Ok(())
-}
diff --git a/backend/src/storage/error.rs b/backend/src/storage/error.rs
index d88f4d4b..4ea5b3be 100644
--- a/backend/src/storage/error.rs
+++ b/backend/src/storage/error.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
use thiserror::Error;
#[derive(Error, Debug)]
diff --git a/backend/src/storage/mod.rs b/backend/src/storage/mod.rs
index 992500f1..83a168d5 100644
--- a/backend/src/storage/mod.rs
+++ b/backend/src/storage/mod.rs
@@ -1,20 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
-pub mod commercial_license_trial;
pub mod error;
pub mod postgres;
diff --git a/backend/src/storage/postgres.rs b/backend/src/storage/postgres.rs
index 401b4e94..7f1c3650 100644
--- a/backend/src/storage/postgres.rs
+++ b/backend/src/storage/postgres.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
use super::error::StorageError;
use crate::worker::do_work::{CheckEmailJobId, CheckEmailTask, TaskError};
use check_if_email_exists::{CheckEmailOutput, LOG_TARGET};
diff --git a/backend/src/throttle.rs b/backend/src/throttle.rs
index 90c6126e..391d12a5 100644
--- a/backend/src/throttle.rs
+++ b/backend/src/throttle.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
use crate::config::ThrottleConfig;
use std::fmt;
use std::sync::Arc;
diff --git a/backend/src/worker/consume.rs b/backend/src/worker/consume.rs
index 5d2fc7bd..c11d1f78 100644
--- a/backend/src/worker/consume.rs
+++ b/backend/src/worker/consume.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
use super::do_work::{do_check_email_work, CheckEmailTask, TaskError};
use super::single_shot::send_single_shot_reply;
use crate::config::{BackendConfig, RabbitMQConfig};
diff --git a/backend/src/worker/do_work.rs b/backend/src/worker/do_work.rs
index 19402082..f71fb593 100644
--- a/backend/src/worker/do_work.rs
+++ b/backend/src/worker/do_work.rs
@@ -1,21 +1,4 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
use crate::config::BackendConfig;
-use crate::storage::commercial_license_trial::send_to_reacher;
use crate::throttle::ThrottleResult;
use crate::worker::single_shot::send_single_shot_reply;
use check_if_email_exists::{
@@ -159,10 +142,6 @@ pub(crate) async fn do_check_email_work(
.store(task, &worker_output, storage.get_extra())
.await?;
- // If we're in the Commercial License Trial, we also store the
- // result by sending it to back to Reacher.
- send_to_reacher(config, &task.input.to_email, &worker_output).await?;
-
info!(target: LOG_TARGET,
email=task.input.to_email,
worker_output=?worker_output.map(|o| o.is_reachable),
diff --git a/backend/src/worker/mod.rs b/backend/src/worker/mod.rs
index bffe565a..87ec9796 100644
--- a/backend/src/worker/mod.rs
+++ b/backend/src/worker/mod.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
// Each file corresponds to one step in the worker pipeline. The worker pipeline
// is defined as:
// - consume from RabbitMQ
diff --git a/backend/src/worker/single_shot.rs b/backend/src/worker/single_shot.rs
index a5804f0e..1ea13c2a 100644
--- a/backend/src/worker/single_shot.rs
+++ b/backend/src/worker/single_shot.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
use super::do_work::TaskError;
use anyhow::bail;
use check_if_email_exists::{CheckEmailOutput, LOG_TARGET};
diff --git a/backend/tests/check_email.rs b/backend/tests/check_email.rs
index 30b72694..5e36f804 100644
--- a/backend/tests/check_email.rs
+++ b/backend/tests/check_email.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
#[cfg(test)]
mod tests {
use std::sync::Arc;
diff --git a/core/src/smtp/parser.rs b/core/src/smtp/parser.rs
index a8464886..294eeade 100644
--- a/core/src/smtp/parser.rs
+++ b/core/src/smtp/parser.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
//! Parse the SMTP responses to get information about the email address.
use super::error::SmtpError;
diff --git a/core/src/util/sentry.rs b/core/src/util/sentry.rs
index 3b1f00d9..c14bdee6 100644
--- a/core/src/util/sentry.rs
+++ b/core/src/util/sentry.rs
@@ -1,19 +1,3 @@
-// Reacher - Email Verification
-// Copyright (C) 2018-2023 Reacher
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
//! Helper functions to send events to Sentry.
//!
//! This module also contains functions that check if the error's given by
diff --git a/docs/SUMMARY.md b/docs/SUMMARY.md
index c2938117..54a8f50d 100644
--- a/docs/SUMMARY.md
+++ b/docs/SUMMARY.md
@@ -15,7 +15,6 @@
* [Manage scaling yourself](self-hosting/scaling-for-production/option-1-manage-scaling-yourself.md)
* [Option 1: RabbitMQ-based Queue Architecture](self-hosting/scaling-for-production/option-2-rabbitmq-based-queue-architecture.md)
* [Licensing](self-hosting/licensing/README.md)
- * [Commercial License Trial](self-hosting/licensing/commercial-license-trial.md)
* [Proxies](self-hosting/proxies/README.md)
* [Multiple Proxies](self-hosting/proxies/multiple-proxies.md)
* [Reacher Configuration](self-hosting/reacher-configuration-v0.10.md)
diff --git a/docs/self-hosting/install.md b/docs/self-hosting/install.md
index 2dab7cab..4076a40b 100644
--- a/docs/self-hosting/install.md
+++ b/docs/self-hosting/install.md
@@ -1,42 +1,27 @@
# Install Reacher in 20min
-Reacher is designed for seamless self-hosting, giving you full control over its operation on your infrastructure. This guide demonstrates how to install and run Reacher on your local computer in under 20 minutes, using a Dockerfile that is provided you as part of the [commercial-license-trial.md](licensing/commercial-license-trial.md "mention").
+Reacher is designed for seamless self-hosting, giving you full control over its operation on your infrastructure. This guide demonstrates how to install and run Reacher on your local computer in under 20 minutes, using the official [Docker image](https://hub.docker.com/r/reacherhq/backend).
## Prerequisites
-* An account on [https://reacher.email](https://reacher.email) (required for the Commercial License Trial and access to the Dockerfile).
* Docker installed on your system (follow the [Docker installation guide](https://docs.docker.com/get-docker/) for your OS).
## Tutorial Scope: Install Reacher on your local computer
Reacher’s stateless architecture enables easy horizontal scaling by deploying multiple containers, each running a Reacher instance for parallel email verifications. However, for simplicity, this tutorial focuses on a local installation. A further section focuses on [scaling-for-production](scaling-for-production/ "mention").
-The provided Dockerfile includes a pre-configured proxy, resolving the common ISP restriction on outgoing requests to port 25 used by Reacher to perform SMTP verifications.
-
-<details>
-
-<summary>Understand the features and limitations of the Commercial License Trial.</summary>
-
-The Dockerfile provided as part of the Commercial License Trial is designed to enable quick setup for email verifications. Below are its key features and limitations:
-
-* **Built-in Proxy Configuration**: we use [**Proxy4Smtp**](https://www.proxy4smtp.com), a 3rd-party proxy with carefully maintained IPs optimized for SMTP verifications. This ensures reliable email verification even in cloud environments with restricted SMTP access. Learn more in [proxies](proxies/ "mention").
-* **Daily Verification Limit**: capped at 60 per minute at **10,000 per day**.
-* **Usage Tracking**: verification results are anonymized and sent back to Reacher, and used to monitor daily usage and detect potential abuse.
-
-You can also read more in [commercial-license-trial.md](licensing/commercial-license-trial.md "mention").
-
-</details>
+{% hint style="warning" %}
+Reacher performs SMTP verifications over port 25. Many ISPs and cloud providers block outgoing requests on port 25, in which case you'll need to configure a proxy, see [proxies](proxies/ "mention").
+{% endhint %}
## Step-by-Step Tutorial
-1. Navigate to the **Commercial License Trial** tab of your Reacher Dashboard ([go there directly](https://app.reacher.email/en/dashboard/commercial_license)). You'll see a command to run Reacher's latest (v0.10) [Docker image](https://hub.docker.com/r/reacherhq/backend):
+1. Run Reacher's latest [Docker image](https://hub.docker.com/r/reacherhq/backend):
```bash
-docker run -e RCH__COMMERCIAL_LICENSE_TRIAL__API_TOKEN=<YOUR_UNIQUE_TOKEN> -p 8080:8080 reacherhq/commercial-license-trial:latest # v0.10
+docker run -p 8080:8080 reacherhq/backend:latest
```
-Replace `<YOUR_UNIQUE_TOKEN>` with your unique API token shown in the dashboard.
-
Expected output:
```bash
@@ -48,11 +33,11 @@ ChromeDriver was started successfully.
2024-09-19T12:58:32.976589Z INFO reacher: Server is listening host=0.0.0.0 port=80
```
-If you see an error message, such as `` Error: missing field `api_token` ``, double-check the `-e RCH__COMMERCIAL_LICENSE_TRIAL__API_TOKEN` flag you passed. If you see other errors, either try [debugging-reacher.md](debugging-reacher.md "mention") or send an email to [[email protected]](https://app.gitbook.com/u/F1LnsqPFtfUEGlcILLswbbp5cgk2 "mention").
+If you see errors, either try [debugging-reacher.md](debugging-reacher.md "mention") or send an email to [[email protected]](https://app.gitbook.com/u/F1LnsqPFtfUEGlcILLswbbp5cgk2 "mention").
Advanced users can also set additional [reacher-configuration-v0.10.md](reacher-configuration-v0.10.md "mention").
-4. Verify an email by running the following command in another terminal.
+2. Verify an email by running the following command in another terminal.
<pre class="language-bash"><code class="lang-bash"><strong>curl -X POST \
</strong> -H'Content-Type: application/json' \
@@ -62,7 +47,7 @@ Advanced users can also set additional [reacher-configuration-v0.10.md](reacher-
Advanced users can pass additional configuration fields to the [v1-check\_email.md](../advanced/openapi/v1-check_email.md "mention") endpoint.
-4. If successful, you'll see JSON object with an `is_reachable` field.
+3. If successful, you'll see JSON object with an `is_reachable` field.
```json
{
diff --git a/docs/self-hosting/licensing/README.md b/docs/self-hosting/licensing/README.md
index e88bf53f..76af7b30 100644
--- a/docs/self-hosting/licensing/README.md
+++ b/docs/self-hosting/licensing/README.md
@@ -1,27 +1,11 @@
---
-description: >-
- Is Reacher open-source? Does it mean it's free? When should you pay for a
- Commercial License?
+description: Is Reacher open-source? Can I use it in my commercial product?
---
# Licensing
## Yes, Reacher is Open-Source
-Reacher is proudly open-source and distributed under the [**AGPL-3.0 license**](https://www.gnu.org/licenses/agpl-3.0.en.html) (GNU Affero General Public License). This license ensures that Reacher’s source code is freely available, and any modifications or improvements made to the code must also be shared under the same license.
+Reacher is open-source and distributed under the [**MIT License**](https://github.com/reacherhq/check-if-email-exists/blob/master/LICENSE.md). You are free to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of Reacher, including as part of proprietary software or commercial services, as long as the copyright notice and license text are included.
-However, companies **cannot use** the open-source version if they plan to integrate Reacher into **proprietary software** or services without sharing their modifications. The AGPL-3.0 requires that if you offer the software as part of a web service, you must make your code (including any modifications) publicly available. For more details, check [GNU’s AGPL-3.0 guide](https://www.gnu.org/licenses/agpl-3.0.en.html).
-
-## Commercial License required for Proprietary applications
-
-The Commercial License allows companies to integrate Reacher into their proprietary software or services without being bound by the open-source license terms (such as making their own code publicly available). By obtaining a Commercial License, businesses can use Reacher with full control over how the software is implemented and distributed within their products.
-
-Check Reacher's [pricing page](https://reacher.email/pricing) to buy a Commercial License, or read the [full terms of the Commercial License](https://github.com/reacherhq/policies/blob/master/license/commercial.en.md).
-
-{% hint style="info" %}
-Both the open-source and Commercial License give you access to the same Reacher software.
-{% endhint %}
-
-## Does Reacher offer a Free Trial?
-
-Yes, Reacher offers a free trial for the Commercial License, see [commercial-license-trial.md](commercial-license-trial.md "mention").
+The full license text is available in the [LICENSE.md](https://github.com/reacherhq/check-if-email-exists/blob/master/LICENSE.md) file of the repository.
diff --git a/docs/self-hosting/licensing/commercial-license-trial.md b/docs/self-hosting/licensing/commercial-license-trial.md
deleted file mode 100644
index ee724c36..00000000
--- a/docs/self-hosting/licensing/commercial-license-trial.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# Commercial License Trial
-
-The Commercial License Trial allows you to test the self-hosted software for a limited period of time, for **internal testing** and **non-commercial purposes**.
-
-## Features and Limitations
-
-As part of the Commercial License Trial, you'll receive a Dockerfile designed to enable quick setup for email verifications. Below are its key features and limitations:
-
-* **Built-in Proxy Configuration**: we embed [**Proxy4Smtp**](https://www.proxy4smtp.com), a 3rd-party proxy with carefully maintained IPs optimized for SMTP verifications. All verifications using the Dockerfile go through this proxy. This ensures reliable email verification even in cloud environments with restricted SMTP access. Learn more in [proxies](../proxies/ "mention").
-* **Daily Verification Limit**: capped at **60 per minute** and **10,000 per day.**
-* **Usage Tracking**: verification results are anonymized and sent back to Reacher, and used to monitor daily usage and detect potential abuse.
-* **For testing purposes only**. The Dockerfile can only be used internally, for testing purposes, and can in no case be used in production environments for commercial applications.
-
-{% hint style="danger" %}
-All abuse of the Commercial License Trial will result in an immediate account ban.
-{% endhint %}
-
-## Get Started
-
-To start your Commercial License Trial, sign up on [https://reacher.email](https://app.reacher.email/en/signup). Then, navigate to the "Commercial License Trial" tab of the Reacher Dashboard ([go there directly](https://app.reacher.email/en/dashboard/commercial_license)) and follow instructions.
-
-## After the Trial
-
-The Commercial License Trial cannot be used for full-scale production use or commercial applications. Once you've tested Reacher extensively, purchase a Commercial License.
-
-Once you purchased the Commercial License, you'll need to perform the two following steps:
-
-1. Replace the Docker image from `reacherhq/commercial-license-trial`to `reacherhq/backend`. This will give you access to an unrestricted Dockerfile to perform unlimited verifications.
-2. (If applicable) Configure proxy setting on the Docker container, via the `RCH__PROXY__*`environment variables. See [proxies](../proxies/ "mention")for more information.
diff --git a/docs/self-hosting/proxies/README.md b/docs/self-hosting/proxies/README.md
index 457fdae8..b092895b 100644
--- a/docs/self-hosting/proxies/README.md
+++ b/docs/self-hosting/proxies/README.md
@@ -23,10 +23,6 @@ Once you've purchased a proxy, run the Docker command (see how in [install.md](.
* `-e RCH__HELLO_NAME=<domain>`: The identifier to use during the "HELO/EHLO" step. It should match a domain name owned by the proxy. Ask your proxy provider about this setting.
* `-e RCH__FROM_EMAIL=<email>`: The email to use during the "MAIL FROM" step. It should be an email from the same domain as the HELLO\_NAME. Ask your proxy provider about this setting.
-{% hint style="info" %}
-If you're using the [commercial-license-trial.md](../licensing/commercial-license-trial.md "mention"), these fields are already populated with the built-in proxy. However, you can overwrite them by passing these flags again, pointing to a proxy of your own choosing.
-{% endhint %}
-
{% hint style="info" %}
For advanced usage, you can configure [multiple-proxies.md](multiple-proxies.md "mention").
{% endhint %}
diff --git a/docs/self-hosting/proxies/multiple-proxies.md b/docs/self-hosting/proxies/multiple-proxies.md
index c2dd9df1..9bbaf401 100644
--- a/docs/self-hosting/proxies/multiple-proxies.md
+++ b/docs/self-hosting/proxies/multiple-proxies.md
@@ -54,7 +54,7 @@ Below is a [Docker Compose](https://docs.docker.com/compose/) file showcasing:
```yaml
services:
worker:
- image: reacherhq/commercial-license-trial:v0.11.0
+ image: reacherhq/backend:v0.11.9
container_name: test
ports:
- "8080:8080"
diff --git a/docs/self-hosting/saas-vs-self-host.md b/docs/self-hosting/saas-vs-self-host.md
index af34d9fc..fadf2176 100644
--- a/docs/self-hosting/saas-vs-self-host.md
+++ b/docs/self-hosting/saas-vs-self-host.md
@@ -11,7 +11,7 @@ Reacher SaaS is the cloud-hosted version of the service, accessible at [https://
Reacher is also available for self-hosting, enabling you to run the service on your own servers. This approach provides full control over the environment and data while leveraging the same verification engine as Reacher SaaS. Reacher is designed to make self-hosting straightforward and efficient.
{% hint style="success" %}
-Reacher's goal is to make Self-Hosting easy. You can [install.md](install.md "mention") as part of your **Commercial License Trial**.
+Reacher's goal is to make Self-Hosting easy. You can [install.md](install.md "mention").
{% endhint %}
## Key Differences
@@ -19,7 +19,7 @@ Reacher's goal is to make Self-Hosting easy. You can [install.md](install.md "me
| Feature | SaaS | Self-Hosting |
| --------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------- |
| **Volume** | Limited to 10k verifications per month | Unlimited verifications |
-| **Cost** | Monthly subscription | Monthly subscription + server costs (lower at scale) + [proxy](proxies/) costs (optional) |
+| **Cost** | Monthly subscription | Free (MIT License) + server costs + [proxy](proxies/) costs (optional) |
| **Setup Time** | Instant | Requires installation and setup |
| **Maintenance** | Fully managed by Reacher | Managed by your IT team |
| **Data Ownership** | Data stored on Reacher servers | Full ownership, no data is sent to Reacher |
diff --git a/docs/self-hosting/scaling-for-production/README.md b/docs/self-hosting/scaling-for-production/README.md
index 0cd80336..2a2726a4 100644
--- a/docs/self-hosting/scaling-for-production/README.md
+++ b/docs/self-hosting/scaling-for-production/README.md
@@ -8,17 +8,7 @@ Reacher's stateless architecture enables efficient horizontal scaling, allowing
Alternative scaling solutions were also explored, chat with [[email protected]](https://app.gitbook.com/u/F1LnsqPFtfUEGlcILLswbbp5cgk2 "mention") if you want to discuss more.
-## Scaling beyond the Commercial License Trial
-
-The documentation in this section mentions the Dockerfile provided as part of the [commercial-license-trial.md](../licensing/commercial-license-trial.md "mention"), which:
-
-* has a built-in proxy,
-* &#x20;limits the number of daily verifications to 10000.
-
-The strategies documented in this section apply both to the Commercial License Trial as well as a high-volume setup beyond this limit. Once you're ready to transition from the former to the latter, you must:
-
-1. **Purchase a Commercial License**. This will grant you access to an unrestricted Dockerfile.
-2. **Purchase 3rd-party proxy IPs**. You will receive configuration details for the proxy to be passed into the unrestricted Dockerfile.
-
-Get in touch with [[email protected]](https://app.gitbook.com/u/F1LnsqPFtfUEGlcILLswbbp5cgk2 "mention") when you're there.
+{% hint style="info" %}
+For a high-volume setup, you will most likely need to purchase 3rd-party proxy IPs, see [proxies](../proxies/ "mention").
+{% endhint %}
diff --git a/docs/self-hosting/scaling-for-production/option-2-rabbitmq-based-queue-architecture.md b/docs/self-hosting/scaling-for-production/option-2-rabbitmq-based-queue-architecture.md
index dbfc9552..52de66b8 100644
--- a/docs/self-hosting/scaling-for-production/option-2-rabbitmq-based-queue-architecture.md
+++ b/docs/self-hosting/scaling-for-production/option-2-rabbitmq-based-queue-architecture.md
@@ -2,9 +2,9 @@
Reacher includes an optional, opinionated queue-based architecture designed to scale efficiently and handle high email verification volumes. This architecture comprises 4 main components and is highly configurable to meet specific business needs.
-<table><thead><tr><th width="183">Component</th><th width="295">Description</th><th>Docker image</th></tr></thead><tbody><tr><td><strong>HTTP server</strong></td><td>Accepts incoming email verification requests, and post them into the queue.</td><td><code>reacherhq/commercial-license-trial</code></td></tr><tr><td><a href="https://rabbitmq.com">RabbitMQ</a></td><td>Reacher uses a reliable, mature and open-source queue implementation.</td><td><code>rabbitmq:4.0-management</code></td></tr><tr><td><strong>Workers</strong></td><td>One or more consumers of the queue, which perform the actual email verification task.</td><td><code>reacherhq/commercial-license-trial</code></td></tr><tr><td><strong>Storage</strong></td><td>A place to store all results, currently only PostgresDB is supported.</td><td><code>postgres:14</code></td></tr></tbody></table>
+<table><thead><tr><th width="183">Component</th><th width="295">Description</th><th>Docker image</th></tr></thead><tbody><tr><td><strong>HTTP server</strong></td><td>Accepts incoming email verification requests, and post them into the queue.</td><td><code>reacherhq/backend</code></td></tr><tr><td><a href="https://rabbitmq.com">RabbitMQ</a></td><td>Reacher uses a reliable, mature and open-source queue implementation.</td><td><code>rabbitmq:4.0-management</code></td></tr><tr><td><strong>Workers</strong></td><td>One or more consumers of the queue, which perform the actual email verification task.</td><td><code>reacherhq/backend</code></td></tr><tr><td><strong>Storage</strong></td><td>A place to store all results, currently only PostgresDB is supported.</td><td><code>postgres:14</code></td></tr></tbody></table>
-Note that Reacher provides the same Docker image `reacherhq/commercial-license-trial` which can act as both a **Worker** and a **HTTP server**.
+Note that Reacher provides the same Docker image `reacherhq/backend` which can act as both a **Worker** and a **HTTP server**.
<figure><img src="../../.gitbook/assets/Screenshot 2024-11-30 at 15.33.27.png" alt=""><figcaption><p>Reacher queue architecture</p></figcaption></figure>
@@ -26,10 +26,6 @@ Since spawning workers on cloud providers doesn't guarantee a reputable IP assig
* `proxy.{host,port}` or `RCH__PROXY__{HOST,PORT}`: Set a proxy to route all SMTP requests through. You can optionally pass in `username` and `password` if required.
-{% hint style="info" %}
-The Dockerfile provided in the Commercial License Trial already has these parameters set up.
-{% endhint %}
-
#### Optional Concurrency and Throttling Parameters
You may also configure the following parameters:
@@ -40,10 +36,6 @@ You may also configure the following parameters:
* `throttle.max_requests_per_minute`: Set to `60`. Limits request spikes to prevent SMTP server flags.
* `throttle.max_requests_per_day`: Set to `10,000`.&#x20;
-{% hint style="info" %}
-The Dockerfile provided in the Commercial License Trial already has these parameters set up.
-{% endhint %}
-
## Understanding the architecture with Docker Compose
We do not recommend using Docker Compose for a high-volume production setup. However, for understanding or learning the architecture, this [`docker_compose.yaml`](../../../rabbitmq/docker-compose.yaml) file can be useful.
diff --git a/sqs/src/main.rs b/sqs/src/main.rs
index 6e9231a6..0c027083 100644
--- a/sqs/src/main.rs
+++ b/sqs/src/main.rs
@@ -2,7 +2,6 @@ use check_if_email_exists::CheckEmailOutput;
use lambda_runtime::{service_fn, Error, LambdaEvent};
use reacher_backend::config::{load_config, BackendConfig};
use reacher_backend::http::CheckEmailRequest;
-use reacher_backend::storage::commercial_license_trial::send_to_reacher;
use reacher_backend::worker::do_work::{
check_email_and_send_result, CheckEmailJobId, CheckEmailTask, TaskWebhook,
};
@@ -95,8 +94,7 @@ async fn handler(event: LambdaEvent<SQSPayload>) -> Result<CheckEmailOutput, Err
}
// TODO:
- // - Refactor storing the result and sending to Reacher, it's duplicated
- // code from the backend.
+ // - Refactor storing the result, it's duplicated code from the backend.
// - Add throttling, again using backend code.
// Store the result.
@@ -105,10 +103,6 @@ async fn handler(event: LambdaEvent<SQSPayload>) -> Result<CheckEmailOutput, Err
.store(task, &worker_output, storage.get_extra())
.await?;
- // If we're in the Commercial License Trial, we also store the
- // result by sending it to back to Reacher.
- send_to_reacher(backend_config, &task.input.to_email, &worker_output).await?;
-
Ok(worker_output?)
}