> ## Documentation Index
> Fetch the complete documentation index at: https://docs.leaderos.net/llms.txt
> Use this file to discover all available pages before exploring further.

# SMTP (Mail)

> Through SMTP, you can use some features such as Email Confirmation, Password Reset, Purchase Emails.

<Warning>
  SMTP settings must be configured to send emails. Otherwise you cannot use features and modules that use the SMTP system.
</Warning>

**The SMTP settings page allows you to configure the parameters necessary for your email sending functionality. Below are the input fields with brief explanations of their purposes:**

* **SMTP Server:** Enter the address of your SMTP (Simple Mail Transfer Protocol) server. This is the server responsible for sending your emails.

* **SMTP Port:** Specify the port number used by your SMTP server. Common values include 25, 587, and 465, depending on the security configuration.

* **SMTP Security (SSL/TLS):**  Choose the security protocol for your SMTP connection. Options include SSL (Secure Sockets Layer) or TLS (Transport Layer Security) to encrypt the communication between your server and the SMTP server.

* **SMTP Sender Email Address:** Provide the email address from which your system will send emails. This is the address that will appear as the sender of the emails.

* **SMTP Username:** Enter the username associated with the SMTP server. This is used to authenticate your server with the SMTP server. Usually, this is the same as the email address.

* **SMTP Password:** Enter the password associated with the SMTP server. This ensures secure access to the SMTP server for sending emails.

* Ensure the accuracy of these settings to enable seamless communication with your SMTP server for effective email delivery.

<Info>
  If you're looking for a free SMTP service compatible with the provided SMTP settings, here are a few recommendations:

  * **LeaderOS Web Hosting SMTP Service (Recommended!)**
  * SendPulse
  * Zoho Mail
  * Yandex Mail
  * Godaddy Email
</Info>

## How can I setup/configure LeaderOS Web Hosting SMTP service?

1. Log in to your cPanel.
   <img src="https://mintcdn.com/leaderos/cH1vXl0bXws0t_ED/images/settings/smtp-email-1.png?fit=max&auto=format&n=cH1vXl0bXws0t_ED&q=85&s=77b5b0f04673ad83ed37af2edc431639" alt="Image" width="2690" height="1102" data-path="images/settings/smtp-email-1.png" />
2. Go to **cPanel > Email > Email Accounts** and click on the **Create** button.
   <img src="https://mintcdn.com/leaderos/cH1vXl0bXws0t_ED/images/settings/smtp-email-2.png?fit=max&auto=format&n=cH1vXl0bXws0t_ED&q=85&s=9b2febe6f2cbca6537a69f519ea94c74" alt="Image" width="2746" height="856" data-path="images/settings/smtp-email-2.png" />
3. Create an email account. For example: [noreply@yourdomain.com](mailto:noreply@yourdomain.com)
   <img src="https://mintcdn.com/leaderos/cH1vXl0bXws0t_ED/images/settings/smtp-email-3.png?fit=max&auto=format&n=cH1vXl0bXws0t_ED&q=85&s=71417d7906fdf12c1518306a998cd218" alt="Image" width="1390" height="1414" data-path="images/settings/smtp-email-3.png" />
4. Go to **Dashboard > Settings > SMTP** and enter SMTP settings.
   <img src="https://mintcdn.com/leaderos/cH1vXl0bXws0t_ED/images/settings/smtp-email-4.png?fit=max&auto=format&n=cH1vXl0bXws0t_ED&q=85&s=163afc7c34ab3b2e2a8e44ee7610803b" alt="Image" width="2074" height="1420" data-path="images/settings/smtp-email-4.png" />
5. You can test the connection by clicking on the "Check Connection" button.
   <img src="https://mintcdn.com/leaderos/cH1vXl0bXws0t_ED/images/settings/smtp-email-5.png?fit=max&auto=format&n=cH1vXl0bXws0t_ED&q=85&s=3b62434bdd2e096b4e6418e1acbcf383" alt="Image" width="1232" height="686" data-path="images/settings/smtp-email-5.png" />

<Warning>
  If you are using an external DNS service, like Cloudflare, you must add DKIM, SPF and MX records. [How to add DKIM and SPF records to Cloudflare?](/settings/smtp#how-to-add-dkim-and-spf-records-to-cloudflare)
</Warning>

### LeaderOS Web Hosting SMTP Values:

* **SMTP Server:** Your cPanel hostname. `(Example cpanel-de-c1.leaderos.net)`
* **SMTP Port:** `465`
* **SMTP Security:** `SSL`
* **SMTP Sender Email Address:** The Email address you created. `(Example noreply@yourdomain.com)`
* **SMTP Username:** The same email as the "Sender Email Address". `(Example noreply@yourdomain.com)`
* **SMTP Password:** The password you set for the email account.

### How to add DKIM and SPF records to Cloudflare?

1. Login to your cPanel.
   <img src="https://mintcdn.com/leaderos/cH1vXl0bXws0t_ED/images/settings/smtp-1.png?fit=max&auto=format&n=cH1vXl0bXws0t_ED&q=85&s=79a7a9bca8dea6a98e529eb12bc5f6a4" alt="Image" width="2646" height="1900" data-path="images/settings/smtp-1.png" />

2. Go to **cPanel > Domains > Zone Editor > Manage**
   <img src="https://mintcdn.com/leaderos/cH1vXl0bXws0t_ED/images/settings/smtp-2.png?fit=max&auto=format&n=cH1vXl0bXws0t_ED&q=85&s=a5e0a870d308ad5039f4240c3b70e7a3" alt="Image" width="2734" height="908" data-path="images/settings/smtp-2.png" />

3. Find and copy the SPF record. The SPF value starts with **"v=spf1"**.
   <img src="https://mintcdn.com/leaderos/cH1vXl0bXws0t_ED/images/settings/smtp-3.png?fit=max&auto=format&n=cH1vXl0bXws0t_ED&q=85&s=cfac70a2b9732200681d870494a1e76a" alt="Image" width="2486" height="1120" data-path="images/settings/smtp-3.png" />

4. Find and copy the DKIM record. The DKIM value starts with **"v=DKIM1;"**.
   <img src="https://mintcdn.com/leaderos/cH1vXl0bXws0t_ED/images/settings/smtp-4.png?fit=max&auto=format&n=cH1vXl0bXws0t_ED&q=85&s=68d92b50fd479f24ac9425c06c8956e2" alt="Image" width="2748" height="794" data-path="images/settings/smtp-4.png" />

5. Go to **Cloudflare > DNS** and add **SPF, DKIM and MX** records by clicking on the **Add Record** button.

   **To add SPF record:**

   * Type: TXT
   * Name: @
   * Content: SPF value you copied.

   <img src="https://mintcdn.com/leaderos/cH1vXl0bXws0t_ED/images/settings/smtp-cf-1.png?fit=max&auto=format&n=cH1vXl0bXws0t_ED&q=85&s=f744b18e54f8e0e416e952877f923a2e" alt="Image" width="2600" height="1550" data-path="images/settings/smtp-cf-1.png" />

   **To add DKIM record:**

   * Type: TXT
   * Name: default.\_domainkey
   * Content: DKIM value you copied.

   <img src="https://mintcdn.com/leaderos/cH1vXl0bXws0t_ED/images/settings/smtp-cf-2.png?fit=max&auto=format&n=cH1vXl0bXws0t_ED&q=85&s=a334012b4872afd34eff52275ddd6e50" alt="Image" width="2596" height="1654" data-path="images/settings/smtp-cf-2.png" />

   **To add MX record:**

   * Type: MX
   * Name: @
   * Content: Your cpanel hostname. `(Example cpanel-de-c1.leaderos.net)`

   <img src="https://mintcdn.com/leaderos/cH1vXl0bXws0t_ED/images/settings/smtp-cf-3.png?fit=max&auto=format&n=cH1vXl0bXws0t_ED&q=85&s=fa115020ae8eae317ee91b7677da9f1f" alt="Image" width="2590" height="1276" data-path="images/settings/smtp-cf-3.png" />

6. Your DNS records should look like this.
   <img src="https://mintcdn.com/leaderos/cH1vXl0bXws0t_ED/images/settings/smtp-cf-4.png?fit=max&auto=format&n=cH1vXl0bXws0t_ED&q=85&s=e0538b3deefd2931e81e73e2ad5ba450" alt="Image" width="2586" height="852" data-path="images/settings/smtp-cf-4.png" />
