Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

Build a simple email server for home lab using hMailServer and Thunderbird

Since long time I was looking for very small and  lightweight email server for my lab, here I have hMailServer is to my rescue, it is very lightweight, opensource and free. It is just 4 MB of setup file, easy to setup and configure. Setup is available on https://www.hmailserver.com/, there is not much prerequisite require to install this setup, Just required to install is dot.net 2 and 3.5 beforehand, to install the dotnet you can found instructions on INSTALLING .NET 3.5 FRAMEWORKS ON WINDOWS SERVER 2012 R2. Once you launch the setup it asks for the few of the steps, selecting components, I am selecting all including server and administrative tools, Next for selecting database server type I am using the default one and using built-in database engine (Microsoft SQL Compact). On the hmailserver security, type the password and remember it, This is administration login password. On the last ready to install page, everything looks good and go with the installation.

free email smtp, hmailserver, opensource email server, small email exchange server for testing lab.png

Once hmail server is installed successfully, lunch the administration page, to connect, select the localhost and type the Administrator password to start hmailserver administration.

opensource free hmail email exchange mail server, connect hmail administrator page, administration

Click on the Domains and select Add button, then type your domain name, keep it enabled and save the configuration.

hmailserver administrator, free opensource domain based email server, exchange mail server for home lab.png

Next is crucial step of creating user accounts, expand domains and on the accounts, click Add button, and add addresses with passwords and save the settings.

hmail server administrator, opensource email server mail server free exachange server, email account created in domains of smtp

Next setting is about disabling SMTP authentication when sending email, Why this option is best suited for my labs is I don't want everytime password to be prompted or emails send failing because of no authentication provided. Exapand Settings >> Advanced >> Ip Ranges >> Internet. On Internet uncheck all the check boxes under require SMTP authentication. and save the settings.

Hmailserver advanced settings, ip ranges disable required smtp authentication, email without authentication, home lab smtp, pop3, imap, email mail exchange server

My email server is ready and it is time to test it now, Here I am using and installing opensource email client Thunderbird, It can be downloaded from https://www.thunderbird.net/en-US/. Once it is installed, I will configure user accounts created earlier on hMailServer. On the Local folders, create a new account select Email. Next skip this and use existing email. It popups Mail Account Setup, type user name, Email address and password. Once it successfully connects to hmail servers and finds user accounts, Press done to add users.

thunderbird mail use existing emails from exchange email mail server, opensource free utility tool, configure thunderbird email, hmailserver

It popups another warning message for Mail Account Setup, for Incoming and Outgoing settings, that imap and smtp does not use encryption. I am ok with it as it is lab setup, click I understand this risks and click Done.

hmailserver opensource freeware mail account setup, encyption, thunderbird, exchange server, mail server warning add user accounts

For testing purpose I have added second users, and wrote some emails, sent it, as I see them in received and sent emails successfully.

Thunderbird write email, hmail server opensource exchange free email server write mail test mail.png

Next test is sending email from Microsoft Powershell using below command and again test is successful as shown in ThunderBird mail.

Send-MailMessage -From noreply@vcloud-lab.com -To vkunal@vcloud-lab.com -Subject PowerTest -Body PowershellTest -SmtpServer 192.168.34.11

Hmailserver, opensource free small email exchange server, mail with thunderbird, powershell send-mailmessage demo testing noreply body, smtpserver

Useful Articles
PART 1 : BUILDING AND BUYING GUIDE IDEAS FOR VMWARE LAB
PART 2 : BUILDING AND HARDWARE BUYING GUIDE IDEAS FOR VMWARE LAB
PART 3 : MY VSPHERE LAB CONFIGURATION ON VMWARE WORKSTATION
PART 4 : CONFIGURING VMWARE WORKSTATION NETWORKING IN HOME LAB
PART 5 : CONFIGURING STORAGE IN VMWare WORKSTATION FOR OPTIMAL SPEED
PART 6 : CONFIGURE VMWARE WORKSTATION TO SAVE SSD SPACE AND TIME
PART 7 : CREATING NESTED VMWARE ESXI SERVER VM IN HOMELAB ON VMWARE WORKSTATION
PART 8 : CPU COOLING SOLUTION FOR MY HOME LAB ON VMWARE WORKSTATION

Go Back

Comment

Blog Search

Page Views

1381460

Follow me on Blogarama