Question

Please help me install an SSL certificate, Webmin, and mailboxes

Posted December 19, 2019 262 views
Apache

Hi,

I’m wondering if you could install an SSL certificate and Webmin for me, as well as getting my mail working properly on my Apache server.

I spent days a couple years ago, and finally got a single email account working, which I simply forward to a PHP script. Now I need to install an SSL certificate, but I can’t do that without being able to access emails from “postmaster@datagarrison.net”. I worked on this for several hours today, and could not do it. I then tried installing Webmin, but no one seems to be able to do this at DigitOcean with Ubuntu 16.04, which is the version I have.

I paid for and initiated the SSL certificate at NameCheap.com, and so already generated the CSR on my server. But I cannot access the auto-generated email sent to postmaster, so can’t complete the SSL activation.

I’d be willing to pay to have you do all this, if necessary.

Best regards,

Tom
774-392-0856
stalcupt@gmail.com

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi Tom,

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

Vi /etc/mail/sendmail.mc

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.

cd /etc/mail

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

/etc/mail/local-host-names

127.0.0.1 localhost

127.0.0.1 {hostname}

#Same /etc/hosts

127.0.0.1 localhost

127.0.0.1 {hostname}

#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
https://your_server_ip_or_hostname:10000/
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.

Kind regards,
Shiroka

edited by MattIPv4
Submit an Answer