I can't connect to my email with Outlook

SYSTEM INFORMATION
OS type and version Ubuntu 24.04
Webmin version 2.303
Virtualmin version 7.30.8
Webserver version Proxmox
Related packages SUGGESTED

Hello…

I’m moving my websites to two new servers and so I’ve installed Virtualmin on both of them. I used Proxmox Virtualization software to create two installations of Ubuntu 24.04

Everything about them is the same. The email on one of them is working GREAT! On the other one it seems to have intermittent connectivity issues.

The email worked well when I first installed everything and after creating a few websites it’s having problems connecting to Outlook or Thunderbird or any email viewer outside of the website.

I installed roundcube and it works with no problem. I can also view the mail through Usermin with no problem. I just can’t connect the IMAP

I can connect SMTP but only on port 25 rather than 587.

I’ve checked to see if the ports are in the firewall and everything is fine there.

Do you have any suggestions for a fix?

Dan Lewis

Yes, but which firewall? Virtualmin’s firewall is pre-configured for mail, so it cannot be a cause for the problem. By default, the Proxmox VE firewall allows access to the web interface (port 8006), SSH (port 22), and SPICE proxy (port 3128) from the local network, but blocks all other traffic. Additionally, your service provider might have its own firewall which can be configured through their control panel.

It seems to me that there is a firewall somewhere that has port 25 open but not 587 and 465 or 993.

My setting with thunderbird

Check the servers mail log file for the error when trying to connect.

Imap settings

I’ve scanned the ports on my IP address two times and here is what is open

074.050.069.148 21 22 25 53 80 443 2222 10000

It doesn’t have 587 or 993 available although I do have them open on the Virtualmin firewall

Here is a screenshot of my firewall settings.

The hosting people say they have no other firewall turned on and I checked their settings and indeed they have none.

So I stopped the firewall and I scanned the ports again and I found every port I had open.

074.050.069.148 21 22 25 53 80 110 143 443 465 587 993 995 2222 10000

Obviously the culprit is the firewall!

Is there a way to remove it and then reinstall it? Clearly something must have installed improperly

Dan Lewis

Is there a way to remove it and then reinstall it?
Do not do that, its not a way fix issues.

That screenshot looks fine.
Maybe check fail2ban and see if the IP got blocked due to failed login.

1 Like

Fail2ban has not been running. I did activate it this morning to see if that has an effect. How would you suggest I fix the firewall issue? I certainly don’t want to run the website without it!

Dan Lewis

You might have two competing firewalls. ?

Check here to see what is running.


Firewald is the Virtualmin firewall that is what the interface controls.

image
Since same use the same basic service, but may be adding different rules at different times, stopping it will stop BOTH services.

You MIGHT be looking for pve-firewall

I’m glad you brought up all that information about Proxmox! I’m really new at that software as I’ve used VMware previously.

I used Proxmox because it was free and people online said that it used less of the server’s resources than did VMware. Plus VMware doesn’t work with older hardware.

In any case I had seen that there is a datacenter firewall, a server firewall and a firewall for each instance. So there are three levels. Since I’m using an IP address that is different from the Proxmox access IP then I need to look at the server firewall which seems to control all the servers.

That firewall doesn’t seem to be blocking anything but I turned it off anyway to be sure.

The firewall on the instance is also turned off.

The ports were still blocked!

So I restarted the firewall on Virtualmin a couple times and then I went in and specifically configured post 587 and port 993 as individual ports to be open to the firewall and I think that did the trick!

So in order to have my email browser connect to the Virtualmin instance I completely turned off the firewall then I was able to connect my email browser. After it was connected I turned the firewall back on and my email browser still seemed to be connected as I’m receiving email!

Since I have four other server instances configured within this Proxmox installation and they are having no problems connecting to email or web servers I really believe the issue is indeed the firewall in Virtualmin. But If I’ve solved the problem by tinkering around then GREAT!!! I’m still not sure what I did to make it work… but I’m glad it does.

The Proxmox datacenter firewall is now back on… the server firewall is on and the individual instance firewall is off. On the instance level I’m depending on the Virtualmin firewall. Everything seems to be working now and I just ran an external port scan which does show that all the correct exposed ports are open!

This is a lot more complicated than just setting up a regular Virtualmin website!!! I think it will be worth it in the end as this offers me a ton of flexibility with the overall configuration.

Thanks for your feedback! After working with this for days trying to get everything to work it’s easy to get confused and forget what I did and didn’t do… PLUS someone like you is always bringing up points to consider that I never even knew existed!!!

I appreciate your help…

Until the next problem!

Dan Lewis

I’m glad you brought up all that information about Proxmox! I’m really new at that software as I’ve used VMware previously.

I used Proxmox because it was free and people online said that it used less of the server’s resources than did VMware. Plus VMware doesn’t work with older hardware.

In any case I had seen that there is a datacenter firewall, a server firewall and a firewall for each instance. So there are three levels. Since I’m using an IP address that is different from the Proxmox access IP then I need to look at the server firewall which seems to control all the servers.

That firewall doesn’t seem to be blocking anything but I turned it off anyway to be sure.

The firewall on the instance is also turned off.

The ports were still blocked!

So I restarted the firewall on Virtualmin a couple times and then I went in and specifically configured post 587 and port 993 as individual ports to be open to the firewall and I think that did the trick!

So in order to have my email browser connect to the Virtualmin instance I completely turned off the firewall then I was able to connect my email browser. After it was connected I turned the firewall back on and my email browser still seemed to be connected as I’m receiving email!

Since I have four other server instances configured within this Proxmox installation and they are having no problems connecting to email or web servers I really believe the issue is indeed the firewall in Virtualmin. But If I’ve solved the problem by tinkering around then GREAT!!! I’m still not sure what I did to make it work… but I’m glad it does.

The Proxmox datacenter firewall is now back on… the server firewall