In the article Install Postal SMTP server on Ubuntu 18.04, I already have discussed steps to install Postal Successfully. Now in this article, I will tell you the commands and steps required to configure Postal, create organizations, add domains, create SMTP etc. Apart from that, I will also discuss the steps required to install SSL certificate. Now, here note that SSL for click tracking is handled by Postal and therefore you don’t have to do anything for that. It’s only the SSL for web ui and SMTP that we are going to install and configure.

Creating First SMTP on postal

First of all login to your Postal and then create your first organization.


Next create your First SMTP server


On next screen fill the details


After you have successfully built the server, it’s time to add a domain.


Next, you will be given set of DNS records to create. So, just create them.

Creating DNS records for Postal

Their is very nice article already written by developers of Postal to create DNS records. But if you follow along, you might get lost and miss mail-tester 10/10 score.

Create the following records

@TXTv=spf1 a mx ~all
rp.mailTXTv=spf1 a mx ~all
spf.mailTXTv=spf1 ip4: ~all
postal-a1b2c3._domainkeyTXTv=DKIM1; t=s; h=sha256; p=MIGfMA0GC…;
_dmarcTXTv=DMARC1; p=reject; sp=reject; rua=mailto:[email protected]

Creating SMTP server

Go to credentials tab and add credentials


After you have created credentials, key will automatically appear which is none other then your SMTP password in case you have selected SMTP from drop down list. Otherwise, it can be used as API key.

Now you can do the testing with several email marketing tools available.

Installing Free SSL on Postal

First to all get the certbot

apt install certbot

To get the SSL certificate execute the following command.

certbot certonly --webroot --webroot-path /opt/postal/app/public --domains

This will procure SSL certificate and store it on your server. Also, Certbot will tell you where the certificate is located. Subsequently, you have to specify the certificate location inside the nginx configuration and postal.yml

Open nginx config file

nano /etc/nginx/sites-available/default

Next edit the already present private certificate to add the following lines to it.

ssl_certificate     /etc/letsencrypt/live/;
ssl_certificate_key /etc/letsencrypt/live/;

After that open the Postal config file postal.yml

nano /opt/postal/config/postal.yml

Then add the following line to it

  tls_enabled: true
  tls_certificate_path: /etc/letsencrypt/live/
  tls_private_key_path: /etc/letsencrypt/live/

Next restart the Nginx to reload the new certificate into the browser.

sudo systemctl reload nginx

Now go to the browser and reload the webpage.

How to Renew SSL Certificate?

As long as you got the certificate from Lets encrypt, Certbot will automatically renew the certificates so you don’t have to worry about replacing them yourself.



Installing and configuring Postal for beginners could be daunting task. But with the help of this and previous article along with video guide, I hope you would be able to install successfully.

2 replies

    Hello sir, thanks for your video that explains how to create Postal SMTP!

    i followed ur Video and everything went Just great till the last part! when i do test sending email
    it failed saying ” soft fail “


Trackbacks & Pingbacks

  1. […] Simplest Way to Configure Postal & Create SMTP + Install SSL Build SMTP server with iRedMail on Ubuntu 20.04 in Simple Steps 11 replies […]

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *