2
Installing Smartermail for Linux on the Cloud
Question asked by Rafael Grecco - 10/7/2024 at 7:19 AM
Answered
Hello!

I installed Smartermail for Linux on an on-premises server using Ubuntu 24. The installation is very simple, and it runs as expected.

However, when I perform the same installation using a cloud server (in my case, OCI - Oracle), the Smartermail web interface does not work.

I believe it has to do with some internal adjustment on the VM, because unlike using an on-premises server with a public IP, the cloud VM uses a private IP with NAT to a public IP. All the firewall and IP routing settings are correct (especially since I run dozens of servers in this same environment, including some Smartermail installations, but on Windows).

The problem is likely some configuration on Linux... I remember having the same issue when I installed an Antispam on Linux, but a specialist made some adjustments to make it work. I'm not a Linux specialist, so I’d like to know if anyone has experienced this and how I can resolve it.

Thank you.

5 Replies

Reply to Thread
0
ALEKSEY ANISIMOV Replied
possibly needs alternative web server? I'm just trying to evaluate and also on Oracle free tier hehe :) yes the web admin doesn't come up immediately
0
ALEKSEY ANISIMOV Replied
there is KB cannot post a link to it - did not try it yet

Configure an Alternative Linux Web Server for SmarterMail

1
Tony Scholz Replied
Employee Post
Tony Scholz System/Network Administrator SmarterTools Inc. www.smartertools.com
0
Rafael Grecco Replied
I tried it but it didn't work for me.

Don't we need to set a DocumentRoot on the .conf file of smartermail's site on apache2? It's missing from the KB article.
2
Rafael Grecco Replied
Marked As Answer
Ok, I got it working. It has nothing to do with the webserver, we can use the Smartermail's default webserver.

We just have to enter the following commands to make the web interface work (either Smartermail's default webserver or apache/nginx):

sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 80 -j ACCEPT
sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 443 -j ACCEPT
sudo netfilter-persistent save

EDIT: Also run the commands above for each port you want to have access to the internet, like 25 for SMTP

Reply to Thread