Topic: Connection refused on fresh install
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.3
- Deployed with iRedMail Easy or the downloadable installer? downloadable
- Linux/BSD distribution name and version: Debian 11.7 CLI
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I'm getting connection refused when I try to access mail.mydomain.com/mail using a LAN machine.
The environment: it's a Windows Server running a local AD (ad.mydomain.com), it has a static internal IP and a static public IP. This machine is the network DHCP server. The firewall is on for domain, private and public networks. On Hyper-V, it has a Virtual Switch. There I set up a virtual Debian 11.7 CLI fresh install for iRedMail.
The router has the following open ports (TCP only): 25, 80, 465, 587 and 993.
First thing I did at the Debian machine was to set a static IP:
/etc/network/interfaces
*****
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface ens18 inet static
address "machine static IP"
netmask 255.255.255.0
gateway "router IP"
dns-nameservers "Windows Server IP"
*****
The Debian machine has:
- internet connection
- ports open
- nftables correctly setup (iRedMail final setup step)
- /etc/hostname → mail
- /etc/hosts → 127.0.0.1 mail.mydomain.com localhost
telnet portquiz.net 25 connects just fine.
Before the CLI machine, I had the exact same setup with GUI. There I used Firefox and I could access roundcubemail just fine. The connection was refused when I accessed it with the Windows Server machine. Not much changed after I replaced it with a CLI one.
I already spent three days trying to figure out what is wrong. What am I missing?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.