BASH SCRIPT TO CREATE MAILSERVER

Job ID: 33038391

Budget: $10 – $30 USD

I need a bash script, which would install the following on an Almalinux server:
Nginx & PHP latest stable from almalinux repos
Postfix
Dovecot & Roundcube
MariaDB
certbot
nagios-nrpe to report space left.

Nginx, certbot & PHP:
I would like it to install latest stable and secure version.
Nginx would need to be configured by the script to have the website's hosted. The script should be able to detect proper subdomain and retrieve SSL/TLS cert for this and configure it in Nginx.

Postfix:
Postfix must be setup with custom configurations and the above certs.

Dovecot & Roundcube:
I would like Dovecot and roundcube to be setup too. Both should work with the above certbot

MariaDB
MariaDB can have it's basic setup. Which basically just secures it. The root username and password the script sets just needs to be displayed on screen (and maybe saved to a file in the script's directory).
Related categories: PHP System Admin Linux Nginx Bash Scripting