The fastest way to set up your mail server and send a letter to Gmail.com
![](https://habrastorage.org/getpro/habr/upload_files/483/d55/5d8/483d555d8976e96c98d41fa9e1413d60.png)
In our exciting project BLACKTEMPLE.SPACE we are working on unique user authorization via chatID in Telegram. However, we recently plunged into the exciting world of CHINA. Imagine the mystery and challenge we face: how to provide convenient access to our project in China, where access to Telegram is blocked? Our minds searched for a solution, and this is what we came up with: we decided to implement the web version of our web application directly on Chinese soil, using servers in Hong Kong. What secrets does this unusual strategy hide and what adventures await us on this exciting journey through the digital labyrinth of China? Get ready for an exciting new phase in the life of BLACKTEMPLE.SPACE!
In the world of digital technologies and online services, the true art is to make the authorization process simple and convenient for everyone. We at BLACKTEMPLE.SPACE decided to take on the challenge and offer a unique way of authorization via email – a universal means of communication, available even in distant China! But how can you organize a mail server so that every letter reaches its recipient, bypasses the traps of spam filters, and is protected by dkim and ssl without headaches and magic? Prepare yourself for an exciting journey in the world of email technology, where simplicity and efficiency become the key to user satisfaction and project success. Let's discover together the secrets of how to create a reliable and stress-free email login system that will bring joy and satisfaction to every user, regardless of their location and technical awareness. Immerse yourself in the world of possibilities and discover new horizons in the development of your project!
Installing a mail server without shamans and knowledge
![](https://habrastorage.org/getpro/habr/upload_files/1dd/759/0be/1dd7590beeb939e780525ac6fba50aba.png)
Divine control panel script for everything and everyone – HESTIA-CP
NestiaSP is a kind of convenient thing for creating your own mail server, it’s convenient to configure everything via the Internet, you can add a lot of cool things like anti-spam protection, creating backup copies automatically, and all this is super safe, because there’s always someone there to make sure Everything worked fine for you, and you can use it on different computers, such as Ubuntu or Debian
1. Rent any VDS, most importantly, with a white IP, check the address in spam databases, most importantly, rent from reliable hosters with a good reputation – I would recommend the services of Google Cloud, Amazon, DigitalOcean and others. All these services have one drawback: paying for it with a foreign card and paid traffic over 1TB
But I think each of you already owns an American Express card from Georgia.
minimum requirements:
CPU | 1 core, 64-bit | 4 cores |
Memory | 1 GB (no SpamAssassin and ClamAV) | 4 GB |
Disk | 10 GB HDD | 40 GB SSD |
Operating System | Debian 10, 11 or 12Ubuntu 20.04, 22.04 LTS | Latest Debian Latest Ubuntu LTS |
Installation
**Step 1: Download**
Download the installation script for the latest version:
# Download installation script
wget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh
If the download fails due to an SSL certificate verification error, make sure you have the `ca-certificates` package installed on your system using the following command:
# Install ca-certificates package
apt-get update && apt-get install ca-certificates
**Step 2: Launch**
To begin the installation process, simply run the script and follow the onscreen instructions:
# Run installation script
bash hst-install.sh
Once installation is complete, you will receive a welcome email to the email address you provided (if available) and on-screen instructions on how to log in and access your server
3. Login to the admin panel
![](https://habrastorage.org/getpro/habr/upload_files/bf3/51a/461/bf351a46168565f77cdef12b58c4f35e.png)
Go to the MAIL section
![](https://habrastorage.org/getpro/habr/upload_files/d20/7dd/4d5/d207dd4d57ed55883bd8b16324a3de92.png)
Adding a new mailing address – I forgot to tell you. You need to come up with a domain name, the most important thing is not to register it in suspicious or super new zones like .xxx .xyz .spacecomx and so on, register in the usual net com ru zones and so on. Spam interception systems do not like fresh zones.
![](https://habrastorage.org/getpro/habr/upload_files/144/b9b/df6/144b9bdf624667e87808d818ab7c632b.png)
poke all the jackdaws in the same way.
After creation, go to the domain name settings, namely DNS
Here the system will automatically generate DKIM and other txt records for the DNS domain
![](https://habrastorage.org/getpro/habr/upload_files/d49/086/f41/d49086f411b22dad440b685c86e71ef6.png)
These records must be entered into the DNS of the domain name – naturally at the domain name registrar.
Last point
add a test email
![](https://habrastorage.org/getpro/habr/upload_files/ebd/5de/8bd/ebd5de8bd4793c03333e9bcb420b5ebf.png)
and check it on the mail-tester service
![](https://habrastorage.org/getpro/habr/upload_files/f99/c32/94c/f99c3294cc96ad22988648b2e9f03616.png)
The letter will reach all mail servers including the complex Gmail.com
Good luck everyone!
Support our project @blacktemple_space_bot(telegram)