I dont know if you need it now,but i’d love to give you advice.For SSL,you can search acme.sh on GitHub.It’s readme document is very clear and i think you can easily make it.For mail,i dont know which mail program you want to install.Here i list senmail for you.
1) Installation services
sudo apt-get install sendmail
sudo apt-get install mailutils
ps aux grep sendmail
2) Modify the configuration
DAEMON_OPTIONS (`Family = inet, Name = MTA-v4, Port = smtp, Addr = 0.0.0.0 ') dnl
DAEMON_OPTIONS (`Family = inet, Name = MSP-v4, Port = submission, M = Ea, Addr = 0.0.0.0 ') dnl
#Modify Addr = 0.0.0.0 to indicate that you can connect to any server.
mv sendmail.cf backupmail.cf.bak backup
m4 sendmail.mc> sendmail.cf error prompt sendmail-cf is not installed
3) Send a test email
echo "test" | mail -s test ***********@qq.com
#Error My unqualified host name (rivamed) unknown; sleeping for retry
#Sent an e-mail and found that the e-mail was not received. View the log and find that an error was reported. DSN: Service unavailable
#Modify hostname test.com
#Since the mailbox mechanism has been placed in the trash, just add it to the whitelist
Then go for Webmin
sudo apt update
sudo apt install software-properties-common apt-transport-https wget
wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] http://download.webmin.com/download/repository sarge contrib"
sudo apt install webmin
After you install,it will show
Webmin install complete. You can now login to https://your_server_ip_or_hostname:10000/
as root with your root password, or as any user who can use sudo
to run commands as root.
By default, Webmin listens for connections on port 10000 on all network interfaces.
If your server is running a UFW firewall, you need to open the Webmin port.
To allow traffic on port 10000, run the following command:
sudo ufw allow 10000/tcp
Then view your web mail GUI
After you log in, you will be redirected to the Webmin dashboard, which provides basic information about the system.From here, you can start configuring and managing your Ubuntu 18.04 server as needed.
If you still have problems, please continue to reply.