FREE MEETING: KEY TRENDS AND RISKS IN NFT GAMES– REGISTER

  • Blog
  • About us
  • Contact Us
  • Newsletter
Reading: Ultimate Guide: Setup Mail Server on CloudPanel Ubuntu 2025
Share
HTW Logo Daymode HTW Logo Nightmode
  • BOOKMARKS
  • AI
  • Computing
  • Mobile
  • Gaming
    • NYT Games
    • Roblox Codes
    • GTA
  • How-To
  • Entertainment
    • Amazon Prime
    • Netflix
  • Gadget
  • News
Reading: Ultimate Guide: Setup Mail Server on CloudPanel Ubuntu 2025
Share
Font ResizerAa
HashTechWaveHashTechWave
Search
  • Artificial Intelligence
  • Automobile
  • Computing
  • Entertainment
  • Gadget
  • How-To
  • Gaming
    • Roblox Codes
    • NYT Games
  • Mobile
  • News
Have an existing account? Sign In
Follow US
© Foxiz News Network. Ruby Design Company. All Rights Reserved.
SMTP Mail Server Install Guide - Hashtechwave
HashTechWave > Blog > Computing > Ultimate Guide: Setup Mail Server on CloudPanel Ubuntu 2025
ComputingHow-To

Ultimate Guide: Setup Mail Server on CloudPanel Ubuntu 2025

Syed Safwan Abbas - CEO
Last updated: January 3, 2025 4:55 pm
Syed Safwan Abbas
Syed Safwan Abbas - CEO
BySyed Safwan Abbas
Tech Editor
Syed Safwan Abbas is a senior full-stack developer and the founder of HashTechWave. With over a decade of hands-on coding experience and a deep interest in...
Follow:
- Tech Editor
Published: July 24, 2024
Share

In today’s digital market, having a reliable and secure mail server is very important for any small business, large enterprise or even just for individuals who want private email solutions. Similarly, if you are tired of unreliable old-school email services that have limited storage and bunch of irrelevant ads, then a self-hosted email server is final solution. Your own SMTP Mail Server will offer more control, privacy and customization that third-party services can’t match.

Contents
  • What Do We Need Before Installing Custom Mail Server?
    • 1. CloudPanel:
    • 2. VPS Server with Ubuntu
    • 3. DNS Configuration and Reverse DNS
  • Ready to Get Cooking? Installing MailCow Mail Server on CloudPanel
    • 1. Login SSH as root
    • 2. Disable PostFix if installed
    • 3. Install Docker on Ubuntu
    • 4. Fetch MailCow GitHub Repo
    • 4. Setup Ports and Bindings
    • Starting Up Mailcow Mail Server
  • Conclusion

We will walkthrough by setting up Mailcow which is powerful and open-source mail server compatible with CloudPanel which itself, is a user-friendly web hosting control panel running on Ubuntu 20.04 (or later). Even with no prior experience, you will be sending and receiving emails from your own domain in no time. By the end of this article, anyone who followed upon this guide will have a fully functional mail server.

What Do We Need Before Installing Custom Mail Server?

very good dish requires some decent ingredients, and setting up your own email server is no different! To get started, you’ll need these key elements:

1. CloudPanel:

This is the foundation of your email server, acting as your kitchen. CloudPanel is a user-friendly web hosting control panel that simplifies server management for Ubuntu. If you don’t already have CloudPanel installed, head over to their official documentation for step-by-step instructions: CloudPanel Installation Guide

- Advertisement -

2. VPS Server with Ubuntu

To run a mail server efficiently, your VPS should meet the following minimum requirements

  • RAM: 2GB (4GB recommended for better performance)
  • CPU: 2 cores (4 cores for optimal performance)
  • Storage: 20GB (SSD recommended for faster I/O)
  • Operating System: Ubuntu 22.04 (or Latest Ubuntu 24.04)

These specifications ensure that your server can handle the mail server’s load without performance issues. But another hurdle is the knowledge of service provider that you are using, here is basic summary:

DigitalOceanKnown for its simplicity and scalability.
AWSOffers a wide range of services and high availability.
LinodeCost-effective with good performance
VultrOffers a balance between cost and performance.
HostingerCheaper but Performance is good (Hostinger is used in this guide)
VPS Service Providers Summary

If You are new to VPS Hosting then Here’s the Complete Guide that will clear all your doubts: What is a VPS and How It Helps?

- Advertisement -

Note: CloudPanel Installation For VPS Hosting from Hostinger

You can navigate to your VPS Manager > Settings > OS & Panel. From there, select OS with Panel and Select CloudPanel with Ubuntu

Buy Hostinger VPS Plan & Get Discount 20% with Best Performance at Cheaper rates

3. DNS Configuration and Reverse DNS

It is highly recommended to make sure Pointer (PTR) record of your VPS Server IP Address matches the Fully Qualified Domain Name (FQDN) for mailcow host. This is set usually at VPS settings provided by vps hosting provider that you leased the IP Address from. For Hostinger here is the method and almost it is same for other hosting providers as well:

- Advertisement -
Hostinger SMTP Mail Server - reverse dns
Follow Steps to Open up PTR Records configuration on Hostinger

Process is similar on almost every hostinger provider and as shown in figure where Hostinger VPS is configured to change it’s PTR Record for Reverse DNS.

hostinger mail server - reverse dns with ptr changed
Replace PTR Record with FQDN

Ready to Get Cooking? Installing MailCow Mail Server on CloudPanel

Once you’ve gathered essential ingredients, you’re ready to move on to the further steps but before proceeding the installation of MailCow, as we have to configure Reverse DNS Record in Hostinger hPanel then we firstly login to CloudPanel that you installed with help of guide above to add Site and choose reverse proxy on the hostname that we created. for example host.example.com with Reverse Proxy URL as https://127.0.0.1:7443.

Reverse Proxy - Hashtechwave
Reverse Proxy

After setting up Reverse proxy, install SSL Certificate from above menu and generate new Let’s Encrypt Certificate

- Advertisement -

1. Login SSH as root

Now comes the main part of Mail Server Installation for which we created all pathway from start but first of all we need to connect to VPS terminal using SSH which is provided by every Hostinger provider with credentials.

2. Disable PostFix if installed

Most of time by default with CloudPanel on Ubuntu, PostFix is installed which need to be disable for smooth installation process so for that we will verify installation of postfix mail server and if any, then we will delete it on the spot using following command:

- Advertisement -
systemctl stop postfix && systemctl disable postfix

3. Install Docker on Ubuntu

MailCow mail server is the dockerized version containing multiple services required to create an efficient SMTP Mail Server. Here is the command to install Docker with Docker-Compose plugin on your VPS server having Ubuntu Linux installed:

curl -sSL https://get.docker.com/ | CHANNEL=stable sh && apt install docker-compose-plugin

4. Fetch MailCow GitHub Repo

MailCow having a huge community that works regularly for improvements and for that you need to fetch latest release from creators.

- Advertisement -

Install Git on Ubuntu

If you are new to Ubuntu and never installed Git before then, you need to run sudo apt install git inside your terminal to firsly install Git on your machine.

Hoping you have Git installed then execute following commands one-by-one to pull latest Mail Cow release from Github.

cd /opt/mailcow-dockerized
git clone https://github.com/mailcow/mailcow-dockerized

make sure you are in directory /opt/mailcow-dockerized, then run following command in same terminal

./generate_config.sh
mail server hostname
After executing generate config bash file

During configuration you have to set the Mail server hostname (FQDN), e.g., host.domain.com or mail.domain.com that you earlier configured in PTR record.

4. Setup Ports and Bindings

This step is last, now we are one step behind the completion of our mail server. Change the values for HTTP_PORT, HTTP_BIND, HTTPS_PORT, HTTPS_BIND from mailcow.conf file using following command:

nano /opt/mailcow-dockerized/mailcow.conf

Text editor will appear where you have to change above four variables according to following port numbers:

  • HTTP_PORT=7080
  • HTTP_BIND=127.0.0.1
  • HTTPS_PORT=7443
  • HTTPS_BIND=127.0.0.1

after changing press Ctrl+O to save files.

Starting Up Mailcow Mail Server

If you have followed along above steps, then Congratulate yourself. Now you only have to start Mailcow dockerize container with help of following command only:

cd /opt/mailcow-dockerized/ && docker compose pull && docker compose up -d

More Read

WSL feature image - hashtechwave
What is WSL? How to install Linux on Windows in 2025 Full Guide
How to Repair or Upgrade Gear and Weapons in STALKER 2: Heart of Chornobyl
Is Samsung Galaxy Book 4 Edge Worth Buying? Technical Review
Moltbot & Mac Mini Guide: This Duo Is Taking Over AI (2026)
SSD vs RAM: Which Upgrade is Best for MacBook Air M2 in 2025

Conclusion

Installation of the best Mail Server on your VPS with CloudPanel installed on Ubuntu 22.04 or later versions is pretty straightforward. Following this guide step by step, you now have a very reliable and efficient mail server set up, properly configured, and with measures against most security threats. This server will maintain its integrity and performance provided that it is regularly updated and monitored.

We encourage you to go through the whole guide. In case of some issues or if you have questions, please leave a comment. We’re here to help if you need professional assistance—our team will make sure your mail server is set up and running well.

Thank you for following this guide, and happy emailing!

TAGGED:GuidesMail ServerReviewVPS Servers

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
Subscription Form

By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Email Copy Link Print
Share
Syed Safwan Abbas - CEO
BySyed Safwan Abbas
Tech Editor
Follow:
Syed Safwan Abbas is a senior full-stack developer and the founder of HashTechWave. With over a decade of hands-on coding experience and a deep interest in emerging technologies, he leads the platform's coverage of digital trends, smart tools, and developer news. Outside his work, he’s an active tech community contributor and a casual PUBG competitor.
Previous Article INFINIX GT20 PRO Infinix GT20 Pro: Gamer on a Budget? Detailed Tech Review
Next Article Meta quest 3 - hashtechwave Meta Quest 3 Blends Virtual and Real Worlds with Meta AI

Follow US

Find US on Socials
Facebook Twitter Instagram
Subscribe to our newsletter

Get Newest Articles Instantly!

Subscription Form

Popular News
Roblox Garden Horizons Codes (February 2026)
Roblox Garden Horizons Codes (February 2026)
Google Gemini AI Music Generator Create Free AI Songs
Google Gemini AI Music Generator is out: How to Create Free AI Songs
NYT Strands game #722 puzzle - Feb 23, 2026
NYT Strands Today Hints, Spangram & Answers For Feb 23, 2026 (Game #722)

Follow Us on Socials

We use social media to react to breaking news, update supporters and share information

Twitter Linkedin Whatsapp Threads Instagram
HTW Logo Daymode HTW Logo Nightmode

Delivers trusted tech news, gaming guides, Roblox updates, and digital insights for everyday readers.

Hot News
Roblox Garden Horizons Codes (February 2026)
Google Gemini AI Music Generator is out: How to Create Free AI Songs
Complete List of All Brainrots in Survive Lava for Brainrots
WhatsApp’s New Group Message History: How to Share Recent Chats with New Members
Vivo V70 Elite Review (2026): The 6500mAh Camera Powerhouse Disrupting Pakistan’s Mid-Range Market

Subscribe to our newsletter

You can be the first to find out the latest news and tips about trading, markets...

Subscription Form

Legal

  • Cookies Policy
  • Disclaimer
  • Privacy Policy
  • Terms and Condition

Company

  • Editorial Policy
  • Submit PR or Sponsored Article
  • About Us
  • Contact Us
© HashTechMedia Network. HashTechWave. All Rights Reserved.
Join Us!
Subscribe to our newsletter and never miss our latest news, podcasts etc..
Subscription Form

Zero spam, Unsubscribe at any time.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?