Watch How To Setup an Email Server on VPS - The Complete Tutorial Video
Learn how to set up your own professional email server on a VPS using the easiest step-by-step method. In this tutorial, we’ll use the powerful combination of HestiaCP control panel and Roundcube webmail to quickly create your email server, allowing you to send and receive emails with your own domain.
- Easy Set Up
- Minimum Codes & Commands
- Send and receive emails
Contents
ToggleStep 1: Get a VPS
Use a VPS with open ports suitable for email. The one recommended here works perfectly, select it to avoid errors.
Step 2: Download PuTTY
Download PuTTy and SSH to Your VPS
Step 3: Download Hestia CP
Copy and paste the following command lines to download Hestia CP on your VPS. A control panel helps you manage your websites from your browser.
wget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh Step 4: Install Hestia CP
⚠️ VERY IMPORTANT: Replace panel.yourwebsite.com with your actual domain name. This is the address you’ll use to access the control panel.
bash hst-install.sh --port '2096' --hostname 'panel.yourwebsite.com' Step 5: Add Mail Domain
Set up your domain for email inside Hestia.
Step 6: Create Email Account
Make a mailbox like admin@yourdomain.
Step 7: Enable DKIM & SSL
Turn on DKIM and Let's Encrypt for secure mail.
Step 8: Access Roundcube
Log into webmail with the email credentials.
Step 9: Test Email Functionality
Send and receive to confirm everything works.
Contents
° 00:00 Introduction
° 00:39 Getting a VPS and Choosing Configuration
° 02:36 Receiving and Saving VPS Login Details
° 03:26 Downloading and Installing PuTTY
° 04:18 Connecting to the VPS via PuTTY
° 05:23 Installing the Control Panel
° 05:28 Configuring DNS in Cloudflare
° 06:25 Installing Hestia CP on VPS
° 11:11 Logging into Hestia CP
° 11:59 Creating a New User in Hestia CP
° 12:44 Adding Mail Domain and Creating Email Accounts
° 13:42 Configuring DNS Records for Email
° 16:35 Enabling DKIM, SSL, and Let’s Encrypt
° 17:08 Accessing Roundcube Webmail
° 17:36 Testing Email Sending ° 18:41 Testing Email Receiving
° 19:37 Closing and Outro