Troubleshooting hMailServer Email Delivery in a Home Lab

August 10, 2026 3 answers
Asked by soup before salad
I'm building an IT support home lab to practice networking, ticketing systems, Microsoft 365 administration, Active Directory, and Group Policy. My lab has two simulated branch offices with several departments in each, and I recently tried setting up hMailServer as a free Windows-based mail server. I created two accounts, [email protected] and [email protected], but messages sent between them fail. I configured IMAP on port 143 for incoming mail and SMTP on port 25 for outgoing mail. I'm still learning mail-server configuration and would like to understand what might be wrong with my setup. Could the problem be related to the IP bindings, firewall, SMTP authentication, or the use of the .local domain? Also, are there any better free mail-server applications for practicing in a home lab?

Answers

!read the legend
The `.local` domain can work for an isolated lab, but it isnโ€™t a normal public mail domain and can cause confusion because itโ€™s commonly used for local name resolution. For practice, use a reserved internal domain such as `lab.test` or a subdomain of a domain you control. hMailServer is still useful for learning SMTP, IMAP, DNS, and mail flow, though itโ€™s fairly old. MailEnable Standard or a Linux-based option such as Mail-in-a-Box could be alternatives, but hMailServer is probably simpler if your lab is Windows-focused.

Jovial: Changing the domain alone wonโ€™t fix a connection failure. Iโ€™d first verify the port test, firewall rules, bindings, and hMailServer logs, then switch away from `.local` if name resolution or client configuration remains troublesome.

Reply to this answer
soft serve critic
Start by confirming that hMailServer is actually listening on the expected address and port. From another Windows machine, run `Test-NetConnection -ComputerName 192.168.56.10 -Port 25`. If that fails, check the server IP, Windows Firewall, and hMailServerโ€™s IP binding settings. On the mail-server computer, `netstat -ano` can show whether anything is listening on port 25. Also check the hMailServer logs for the exact SMTP error instead of relying only on the client message.
Reply to this answer
_27 neutral tones
Review the IP ranges under hMailServerโ€™s SMTP settings. If the server is only configured for 127.0.0.1 or localhost, other devices on your lab network wonโ€™t be able to connect. Add the correct lab subnet and make sure the serverโ€™s network adapter has the expected address. For local testing, SMTP authentication and the account credentials also need to be configured consistently in the mail client.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions