Skip to main content
Microsoft
separator
https://catalogartifact.azureedge.net/publicartifacts/cloudimg1647283583153.hmailserver-windows-server-067d0d69-f07f-4e40-b41a-e190f4bdadff/image2_logolarge.png

hMailServer on Windows Server 2025

by cloudimg

Your own SMTP, IMAP and POP3 mail server with TLS on every port, on Windows Server 2025.

What you get

hMailServer is an open source mail server for Windows: SMTP for sending and receiving, IMAP and POP3 for mailboxes, with domains, accounts, aliases, distribution lists, anti-spam and anti-virus hooks, all managed in its own administrator console. This image is Microsoft's Windows Server 2025 Datacenter image for Azure (Desktop Experience, Generation 2, x64), updated with Windows Update at build until nothing was pending, with hMailServer 5.7.2 from the project's release and MariaDB Server 11.4 LTS as its database, each checked against its published checksum.

  • A supported database. hMailServer stores its accounts and message index in MariaDB 11.4 LTS (supported to May 2029), listening on the server itself only, instead of the embedded database its setup would otherwise install, which its maker no longer supports.
  • TLS on every port. SMTP 25 offers STARTTLS; submission 587, IMAP 143 and POP3 110 require it; SMTPS 465, IMAPS 993 and POP3S 995 are TLS from the start. Only TLS 1.2 and 1.3 are on, and passwords are accepted only over TLS.
  • Its own secrets on every VM. At first boot each VM makes its own TLS certificate and key, its own hMailServer administrator password and its own MariaDB passwords, written to C:\ProgramData\hmailserver-credentials.txt, which only administrators can read. None of these ship in the image.
  • Not an open relay. Mail to other domains is accepted only from signed-in users, failed sign-ins are banned automatically, and no mail domain or account ships: you add your own.
  • Checked on two fresh VMs before release. Every image version is deployed twice, as a Standard VM on a SCSI disk size and as a Trusted Launch VM on an NVMe disk size with accelerated networking, and checked: Windows activated, Microsoft Defender Antivirus and Windows Firewall on, no build account, password or file left behind, a message sent and read back over TLS, relaying refused, each VM's own certificate on every mail port from outside, and a Remote Desktop sign-in with Network Level Authentication.
  • Generation 2 with Trusted Launch, NVMe and accelerated networking. Deploy it as a standard or a Trusted Launch VM, on sizes with SCSI or NVMe disks.

Getting started

Deploy the VM with your own administrator name and password. In the network security group allow TCP 3389 from your own address range only, and the mail ports you will use (25, 587, 465, 993, 995, and 143 and 110 if you need them). Connect with Remote Desktop, read the administrator password in C:\ProgramData\hmailserver-credentials.txt, open hMailServer Administrator from the desktop, add your domain and accounts, then point your domain's MX record at the VM. Azure blocks outbound port 25 on most subscriptions, so send outgoing mail through an authenticated smart host on port 587. The cloudimg user guide covers each step, including replacing the self-signed certificate with your own.

Licensing

The Windows Server licence is included in the Azure VM price and billed by Microsoft. cloudimg's hourly charge ($0.04 per vCPU per hour) covers only cloudimg's additions: the installation and first-boot setup, the updates and checks at build, the packaging, the guide and support. hMailServer is open source under the GNU Affero General Public License v3 and MariaDB Server under the GNU General Public License v2, with no licence fee; their licence files and a source offer are in C:\Program Files\hMailServer and C:\Program Files\MariaDB 11.4.

Support

cloudimg's support team is on hand 24 hours a day by email (support@cloudimg.co.uk), with a guaranteed response within 24 hours, for this image: deployment, Remote Desktop sign-in, hMailServer's setup and Windows updates. You can also reach us at https://www.cloudimg.co.uk/support.

hMailServer and MariaDB are open source projects; cloudimg is not affiliated with or endorsed by the hMailServer project or the MariaDB Foundation. Microsoft and Windows Server are trademarks of the Microsoft group of companies. cloudimg is not affiliated with or endorsed by Microsoft.

At a glance

https://catalogartifact.azureedge.net/publicartifacts/cloudimg1647283583153.hmailserver-windows-server-067d0d69-f07f-4e40-b41a-e190f4bdadff/image4_screenshot01.png
https://catalogartifact.azureedge.net/publicartifacts/cloudimg1647283583153.hmailserver-windows-server-067d0d69-f07f-4e40-b41a-e190f4bdadff/image7_screenshot02.png
https://catalogartifact.azureedge.net/publicartifacts/cloudimg1647283583153.hmailserver-windows-server-067d0d69-f07f-4e40-b41a-e190f4bdadff/image0_screenshot03.png
https://catalogartifact.azureedge.net/publicartifacts/cloudimg1647283583153.hmailserver-windows-server-067d0d69-f07f-4e40-b41a-e190f4bdadff/image6_screenshot04.png
English (United Kingdom)
Your Privacy Choices Opt-Out Icon Your Privacy Choices
Consumer Health Privacy Sitemap Contact Us Privacy & Cookies Terms of Use About our ads Manage cookies