ມີຂັນຕອນດັ່ງນີ້:
1.
apt-get update -y
2.
hostnamectl set-hostname mail.websitefortesting.com
3.
vim /etc/hosts 45.56.112.153 mail.websitefortesting.com mail
4.
wget https://github.com/iredmail/iRedMail/archive/1.4.0.tar.gz
5.
tar -xvzf 1.4.0.tar.gz
6.
cd iRedMail-1.4.0 chmod +x iRedMail.sh ./iRedMail.sh
7.
yes, next, ngixn next, [mariadb] next, [put domain next, [passwd] next, select the component and click Next
8.
y, y
9.
reboot now
The Lets Encrypt certificate created are created under /etc/letsencrypt/live/
Change permission for above directory to 0644 so other applications can access them.
$ sudo chmod 0755 /etc/letsencrypt/{live,archive}
Move the existing iRedmail certificates as done before and then create a symbolic link:
$ sudo ln -s /etc/letsencrypt/live/yourdomain/fullchain.pem /etc/pki/tls/certs/iRedMail.crt $ sudo ln -s /etc/letsencrypt/live/yourdomain/privkey.pem /etc/pki/tls/private/iRedMail.key
arc: https://linoxide.com/how-to-install-iredmail-server-on-ubuntu-20-04/