How to Install Postal Mail Server on Ubuntu 18.04 | 16.04

Install Postal Mail Server on Ubuntu
Install Postal Mail Server on Ubuntu

1. What is Postal Mail Server ?

2.How To Install Postal Mail Server

What is Postal all about?

Postal was developed by aTech Media to serve its own mail processing requirements. It includes everything you need to start sending and receiving emails in your own web apps.

-Send email from your sites and servers

-Run on your own hardware

-Easy to set up with comprehensive docs

-Spam and virus checking

-Message Retention

-IP pools

How To Install Postal Mail Server on Ubuntu

  1. Domain
  2. Vps Server
  3. Software Need
  4. Install Process

1. Domain

When you send emails, you will be sending from an email address like this one:

i recommend to buy high reputation domain.

We have a lot of DOMAIN REGISTRATION PROVIDERS where you can get a domain from like:

Google Domain.

2. Vps Server

The second thing you will need is a VPS server. a public server to install & Setup SMTP.

In My Post i Am Using Digitalocean Vps Server.

Here is a list of some companies:

  1. Host wind.
  2. Contabo.
  3. Interserver.
  4. OVH.
  5. Digital Ocean*
  6. AWS 

3. Software Need


PuTTY is a free and open-source terminal emulator, serial console and network file transfer application.


WinSCP is a free and open-source SFTP, FTP, WebDAV, Amazon S3 and SCP client for Microsoft Windows.


Notepad++ is a text and source code editor for use with Microsoft Windows.

4. Install Process

:-First Create a Vps Server.

  1. Go to Digitalocean And Create A Droplet
digitalocean Droplet

2. Choose an image

digitalocean Choose an image

3.Choose a plan (i am using $10 machine)

digitalocean Choose a plan

4.Choose a hostname

In Hostname Put Your Domain Name. i am Using server is sub domain.

digitalocean Choose a hostname

5.Now Click Create droplet. Few Minutes After You Receive a Email.

digitalocean email

:-Install Postal Mail Server Using Putty

  1. First Open Putty Software And Put Your Server Ip Address.

2. Now Login as Root User And Create New Password. You Not Understand Then Watch My YouTube Video.

root login

3. Now Run This Simple Command line.

hostname -f

sudo hostname
-sudo apt-get update
-sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg \
-curl -fsSL | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
-echo \
  "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
-sudo apt-get update
-sudo apt-get install docker-ce docker-ce-cli
-sudo curl -L "$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
-sudo chmod +x /usr/local/bin/docker-compose
-docker-compose --version

-------xx-------------System utilties--------------------------
apt install git curl jq
-----------------------Git & installation helper repository
-git clone /opt/postal/install
-sudo ln -s /opt/postal/install/bin/postal /usr/bin/postal

---------------------Maria DB
docker run -d \
   --name postal-mariadb \
   -p \
   --restart always \
   -e MARIADB_DATABASE=postal \

docker run -d \
   --name postal-rabbitmq \
   -p \
   --restart always \

--------------------Initializing the database-----------------
postal initialize
postal make-user

postal start

-------------------Installing WEB Client-----------------------
docker run -d \
   --name postal-caddy \
   --restart always \
   --network host \
   -v /opt/postal/config/Caddyfile:/etc/caddy/Caddyfile \
   -v /opt/postal/caddy-data:/data \

5. And this command will ask you to Enter Your Name, Email, and password. so write it down and press Enter.

Postal is Installed

:-Configure Postal SMTP

  1. Run Ip Address On Web Browser. After Skip The Ssl Alert Message
postal Mail server login

2.Now Put Your Username And Password Then Click Login . After Login Create the first organization. Put Any And Click Create organization.

create the first organization

3. Now Build Your First Mail Server. Put Any Name And Select Mode Live Then Click Build Server.

postal mail server

4. Now Add Your Domain Name.

postal mail server add domain

5. Then, Postal will show you the Domain page with the records that you need to configure.

postal mail server spf and dkim

6. You Not Know How To configure SPF And Dkim records Then Watch My Youtube Video.

7. Now Click Credentials And Create Smtp. You Need API Then Select TYPE API.

Postal Mail Server Smtp

8. Simple, Go to SMTPER.NET and enter your server details as follows:[Test Email]

  • SMTP Host: Your Server IP or Domain.
  • Port: 25 or 2525
  • Login: The User You entered in credentials.
  • Password: The User Password.
postal mail server smtp
postal mail server smtp

That’s it! I hope everything was simple and clear. we finish setting up the Free SMTP Server!

Leave a Comment


No comments yet. Why don’t you start the discussion?

Leave a Reply