inGuide | Digital Marketing, Online Business & WordPress
  • Home
  • Blog
  • Deals
  • Services
  • Forum
    • New Forum
  • Free Resources
    • inSend: Mailwizz
  • Contact
  • Click to open the search input field Click to open the search input field Search
  • Menu Menu
Email Marketing

Installing Let’s Encrypt Free SSL Certificate on iRedMail

lets-encypt-certificate

Installing an SSL certificate on iRedMail, especially Let’s Encrypt is not so straightforward. Therefore, I had to write an article about it. If you have been following the installation of iRedMail, then already know I used the iRedMail installer in my tutorial on iRedMail. So the steps to install an SSL certificate are as follows.

Requesting a free cert from Let’s Encrypt

First of all, we need to install certbot to get a certificate from Let’s Encrypt.

apt install certbot

Next, verify the request process with a dry run. This will not install the certificate but rather verify the DNS records.

certbot certonly --webroot --dry-run -w /var/www/html -d mail.inlearn.in

Next, you will be asked for an email address and to accept tos. Answer that.

Now if everything went smoothly and you didn’t get any error then run the following command to get the certificate.

certbot certonly --webroot -w /var/www/html -d mail.inlearn.in

After successful execution of this command, SSL certificates were stored in the directory /etc/letsencrypt/live/mail.inlearn.in/

Now we need to change the permissions of this directory.

chmod 0644 /etc/letsencrypt/{live,archive}

Install the SSL Certificate for iRedMail

Now we have an SSL certificate ready to put in use. Run the following command to backup existing private keys

mv /etc/ssl/certs/iRedMail.crt{,.bak}   
mv /etc/ssl/private/iRedMail.key{,.bak}

It’s time to create a symbolic link to the Let’s Encrypt files, or in simple words to install the certificate

ln -s /etc/letsencrypt/live/mail.inguide.in/fullchain.pem /etc/ssl/certs/iRedMail.crt
ln -s /etc/letsencrypt/live/mail.inguide.in/privkey.pem /etc/ssl/private/iRedMail.key

Restart the services with the following command

systemctl restart dovecot
systemctl restart postfix
systemctl restart nginx
systemctl restart slapd

Now, go refresh the page to load the new certificate.

Automatically renewing the certificate

Install new crontab with the command:

crontab -e

To type anything inside crontab press A on your keyboard. And then copy the following line

1   3   *   *   *   certbot renew --post-hook '/usr/sbin/service postfix restart; /usr/sbin/service nginx restart; /usr/sbin/service dovecot restart'

After the close the editor with esc + :wq

Conclusion

The brand new Let’s Encrypt SSL is ready on your iRedMail server. You can check it by visiting iRedMail admin, Webmail, etc. Also, you will not receive any warning while submitting emails via SMTP or connecting from popular Email clients like Outlook, Thunderbird, etc.

Let me know in the comments how you install SSL on iredMail.

March 24, 2021/11 Comments/by Dhiraj Rahul
Tags: iredmail
Share this entry
  • Share on Facebook
  • Share on X
  • Share on WhatsApp
  • Share on Pinterest
  • Share on LinkedIn
  • Share on Tumblr
  • Share on Vk
  • Share on Reddit
  • Share by Mail
https://inguide.in/wp-content/uploads/2021/03/Secure-Server-amico.png 2000 2000 Dhiraj Rahul https://inguide.in/wp-content/uploads/2021/02/inguide_logo_red_340_156-300x138.png Dhiraj Rahul2021-03-24 07:36:342024-02-09 08:45:26Installing Let’s Encrypt Free SSL Certificate on iRedMail
You might also like
smtp-server-iredmail Build SMTP server with iRedMail on Ubuntu 22.04 in Simple Steps
smtp-server-iredmail 17 Popular Free & Paid Mail Transfer Agents
11 replies
  1. Michael Archer
    Michael Archer says:
    April 27, 2021 at 2:25 am

    How about using Cloudflare SSL rather than use lets encrypt. I think it’s better to protect the site via cloudflare.

    helpful information btw. setup my own email server for 20 domains now.

    Reply
    • Dhiraj Rahul
      Dhiraj Rahul says:
      April 28, 2021 at 3:00 pm

      Well, I haven’t thought about using Cloudflare. But thanks for the information, I will check if we can use Cloudflare SSL.

      Reply
  2. Andy
    Andy says:
    October 9, 2021 at 6:24 am

    Please do you have a tutorial like this one for installing let’s encrypt on PowerMTA?

    Reply
    • Dhiraj Rahul
      Dhiraj Rahul says:
      October 10, 2021 at 2:00 am

      Noted

      Reply
  3. Ales
    Ales says:
    November 29, 2021 at 7:54 am

    I have problem whit command :

    certbot certonly –webroot –dry-run -w /var/www/html -d mail.inguide.in
    Results:
    ive
    root@mail:/home/ally# certbot certonly –webroot –dry-run -w /var/www/html -d mail.diplomaout.live
    Saving debug log to /var/log/letsencrypt/letsencrypt.log
    Plugins selected: Authenticator webroot, Installer None
    Obtaining a new certificate
    Performing the following challenges:
    http-01 challenge for mail.diplomaout.live
    Using the webroot path /var/www/html for all unmatched domains.
    Waiting for verification…
    Challenge failed for domain mail.diplomaout.live
    http-01 challenge for mail.diplomaout.live
    Cleaning up challenges
    Some challenges have failed.

    IMPORTANT NOTES:
    – The following errors were reported by the server:

    Domain: mail.diplomaout.live
    Type: connection
    Detail: Fetching
    http://mail.diplomaout.live/.well-known/acme-challenge/YALAnjbgtjH5FXFj8qqRbNK8R2miQkz2LqyapkysOak:
    Timeout during connect (likely firewall problem)

    To fix these errors, please make sure that your domain name was
    entered correctly and the DNS A/AAAA record(s) for that domain
    contain(s) the right IP address. Additionally, please check that
    your computer has a publicly routable IP address and that no
    firewalls are preventing the server from communicating with the
    client. If you’re using the webroot plugin, you should also verify
    that you are serving files from the webroot path you provided.
    root@mail:/home/ally#

    What to do, can you help please ?
    Thx
    Ally
    [email protected]

    Reply
    • Eka Wibisono
      Eka Wibisono says:
      January 31, 2023 at 9:16 pm

      Please open your Firewall

      Reply
  4. calistus
    calistus says:
    December 8, 2021 at 6:46 am

    How could I add SSL to postal while trying to validate my nailwizz server using credentials from my postal this is the error message I got that my SSL has expired

    Cannot send the confirmation email using the data you provided.

    Here is a transcript of the error message:
    cURL error 60: SSL certificate problem: certificate has expired

    what should I do sir?

    Reply
    • Dhiraj Rahul
      Dhiraj Rahul says:
      December 8, 2021 at 12:22 pm

      Ask your questions in the right place. If you are SSL is not enabled on postal don’t use “HTTPS” in API on Mailwizz. Simply use “http”

      Reply
  5. Ajin
    Ajin says:
    February 28, 2022 at 8:17 am

    HI, letsencrypt working well for for web page but its showing warning for smtp and imap ports while configuring on outlook and other mailboxes also, any fixes or this..

    Reply
  6. Jurijs
    Jurijs says:
    November 3, 2022 at 6:06 pm

    my mail server crashed after your setup. so can be what it is not actual anymore?

    Reply
    • Jurijs
      Jurijs says:
      November 3, 2022 at 6:23 pm

      sorry. my fault. accidentally pressed wrong button in domain directory. sorry.

      Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply Cancel reply

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

Table of Contents

Search Search

Recent Posts

  • Install Mattermost on Ubuntu/Debian
  • 17 Popular Free & Paid Mail Transfer Agents
  • Top 10 VPN Service Providers & Why!!
  • 15 Best Canva Alternatives for Graphic Design [Free & Paid]
  • 12 Best third-party SEO tools for your website
  • Best NFT Marketplace For Beginners
  • Best WordPress ad management plugin
  • What is Domain Name System blacklist (DNSBL)?
  • Introduction to the Basics of Linux
  • What is Proxy Server?

Categories

  • Chat & Collaboration
  • Domain
  • Email Marketing
  • Email Service
  • Graphic Design
  • Hosting
  • Learning Management System
  • Linux
  • Miscellaneous
  • Proxy
  • Search Engine Optimization
  • SMS
  • SMTP server
  • WooCommerce
  • Wordpress
  • WP Security
Popular
  • Postal-smtp-server
    Build Postal SMTP Server & Send Bulk Emails Step by...March 25, 2021 - 5:19 am
  • install-configure-powermta-centos-8
    Install & Configure PowerMTA on CentOS with IP rot...February 15, 2021 - 4:23 am
  • postal-create-SMTP-add-domain-SSL
    Simplest Way to Configure Postal & Create SMTP + Install...March 27, 2021 - 9:20 am
  • Install CyberPanel on Ubuntu and Create WordPress Websi...September 22, 2021 - 10:05 am
  • Create Mail Server on Windows with Open Source hMailSer...June 13, 2021 - 10:15 am
  • zimbra-free-ssl-certificate-install
    How to Install Free SSL Certificate on Zimbra Mail Serv...May 9, 2021 - 2:21 pm
  • install-zimbra-mail-server-on-centos-8
    Install Zimbra Mail Server on CentOS 7/8 Step by StepMay 9, 2021 - 6:05 am
  • Install and Configure MailCow – Best Self Hosted Mail...May 12, 2021 - 10:32 am
  • lets-encypt-certificate
    Installing Let’s Encrypt Free SSL Certificate on ...March 24, 2021 - 7:36 am
  • install-wordpress-cloud-hosting
    Super Easy Way to Install WordPress on Cloud Hosting in...March 30, 2021 - 1:35 am
Comments
  • vikasCannot "Build a new mail server" #3295 On a fresh installation...May 15, 2025 - 1:19 pm by vikas
  • SivaHow can find about aol blocking and know about email inbox...February 26, 2025 - 7:04 pm by Siva
  • RAKESH GUPTAWe want to change our default CentOS Mail Server to something...December 5, 2024 - 7:15 am by RAKESH GUPTA
  • LavisHey, Can you help me to choose good SMTP server between...November 18, 2024 - 11:12 am by Lavis
  • ApostleThis question is never answeredOctober 29, 2024 - 6:19 am by Apostle
Tags
Ahrefs Aol Canva dkim dkim generator dkim powermta dmarc generator easyengine email deliverability free Gmail install docker ubuntu install free ssl zimbra install mailcow install mailwizz install wordpress install wordpress on google install zimbra centos 8 iredmail mailcow Mailu mailu docker compose mailwizz Memberpress MTA open source chat app outlook Plugin Postal postal server postal smtp private chat server rocket.chat SEO smtp server spf generator Talos VPN WooCommerce WordPress wordpress on cloud hosting Yahoo zimbra zimbra mail server zimbra ssl

Follow us on Facebook

X Logo X Logo Followon X

Information

  • About
  • Account
  • Blog
  • Contact
  • Deals
  • List of VPS Hosting that Provides Open Port 25
  • Login
  • Newsletter
  • Privacy Policy
  • Terms of Service
  • Thank You
  • Verify Account

Resources

  • Account
  • Deals
  • Downloads
  • List of VPS Hosting that Provides Open Port 25
  • Login
  • Services
  • Thank You
  • Verify Account

Categories

  • Chat & Collaboration
  • Domain
  • Email Marketing
  • Email Service
  • Graphic Design
  • Hosting
  • Learning Management System
  • Linux
  • Miscellaneous
  • Proxy
  • Search Engine Optimization
  • SMS
  • SMTP server
  • WooCommerce
  • Wordpress
  • WP Security

Archive

  • November 2025
  • July 2023
  • June 2023
  • May 2023
  • January 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • September 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
© Copyright - inGuide | Digital Marketing, Online Business & WordPress
  • Terms of Service
  • Privacy Policy
Link to: Build SMTP server with iRedMail on Ubuntu 22.04 in Simple Steps Link to: Build SMTP server with iRedMail on Ubuntu 22.04 in Simple Steps Build SMTP server with iRedMail on Ubuntu 22.04 in Simple Stepssmtp-server-iredmail Link to: Build Postal SMTP Server & Send Bulk Emails Step by Step on Ubuntu 22.04 Link to: Build Postal SMTP Server & Send Bulk Emails Step by Step on Ubuntu 22.04 Postal-smtp-serverBuild Postal SMTP Server & Send Bulk Emails Step by Step on Ubuntu 22....
Scroll to top Scroll to top Scroll to top