Skip to content

How to Setup a Local Only Email Server (on Windows and ubuntu)

  • by

An email server can be defined as a computer that has mail transfer agent functions. This mail gets exchanged between the email servers that run special software built around the standardized protocols that handle messages and their varied content.

An email server gets the mail from the other MTA, Mail User Agent, or the Mail Submission agent, which comes with transmission details that have been defined by SMTP. If MTA gets the mail and the recipient is not yet hosted locally, then the mail automatically gets forwarded to another MTA.

MTA adds a received trace header at the top of the message header every time such a thing happens. This, therefore, shows that all MTA that had previously been handle the messages before they got to the recipient inbox. This feature thus allows the administrators to see if the optimal path was taken.

The email has become a very fundamental part of many organizations and companies today. The approach is to use the online service for the email services. However, the alternative is to deploy the email server on your networks. This will help manage all aspects related to email sending, storing, and receiving emails.

Advantages of Email Servers

  • Every person gets to have their business-related inbox
  • Only those authorized people can send or receive an email
  • It gets to filter the spam before it clutters up in the inbox
  • Emails can be archived or stored so that they can meet the legal requirement which most companies should adhere to
  • Every inbox is eligible for quota limit allocation
  • Can set up a shared calendar

Disadvantages of email server

  • To have email servers, one needs technical expertise to manage it
  • Remote email service can be more cost-effective, especially for a small organization

Tips to Setup a Local Only Email Server (Windows Only)

1 – Install hMailServer

Start by downloading the hmailServer from this link

In the setup, you will get internal db files. Engine, select it.

Start the menu with the hmailserver service and the administration program with you on your windows.

.2 – Create a Domain

  • In this step, start by opening the hMailServer administration program.
  • Go to Domains and then press on add domain.
  • Where a domain name is, you can give a fake domain for testing. Then use hMailServer usually works with a fully qualified domain; hence @localhost is not applicable.
  • Ensure your domain name (localhost) is added to the host file.


3 – Changing the Name of your Server

  • Go to expand settings, then to protocols, then SMTP, and finally the delivery of email.
  • At the Hostname, put in the localhost.
  • Then check if the TCP port is 25

4 – Account Creating.

  • Go to the Domains on the created domain, click it, click on the accounts, and add the account.
  • At the address, create your account name, for example (Mike), then place a password
  • Then change administration level to server.

5 – Configure the catch-all address

  • To enable this, use any email address that ends with your fake domain, for example,; however, when testing the systems, any address can be used since all will be redirected back to
  • Lastly, open the Domains, click on your domain, open the advanced tab, and fill in that field for catch-all address using the account you created in step 4.

6 – Configuring the Email client 

  • When at windows, use the Windows live email. (
  • And don’t forget that you can also use any email client.
  • During configuration, the incoming server is the POP3, and the username should be the full email address such as, and its passwords should be a law text.
  • The SMTP server and POP3 are the local hosts.
  • The outgoing server usually doesn’t need any authentication.
  • At no time, the hMailServer Administration application and the email client be used at the same time. Learn more about setting up a Local Only Email Server (Windows Only) here.

How to Set Up Your Email Server

 Having free programs enables you to have back privacy and also control. If you love privacy and are looking for a better alternative to a popular webmail provider like Outlook, Gmail, and Yahoo, you are lucky. You can now learn how to put up your email server and escape the email scanning these providers perform on their million users. You get to enjoy a safer and private environment for all your emails.

Unlike Apple, Microsoft, and Google server farms, private email servers live within your space. This, therefore, helps you to set up your disk drive. Also, you get to fully control how to access your emails, how they are stored and managed.

What You’ll Need to Set Up a Personal Email Server

  • You will need a computer whose hand drive got enough capacity. This will act as your new email server.
  • You will also need to have a domain name for your email server, which will set up the email addresses.
  • You will need a high-speed and reliable internet connection.
  • For running the server, you will need an operating system like Linux and windows. 
  • You will also need software programs such as antivirus protection, Mail Enable for sorting out and routing the emails, and spam filter such as Spam Assassin.
  • Lastly, you will need to streamline the setup process.

  Set Up a Personal Email Server:

  •  Step 1; click start, then Control Panel, double click add or remove programs.
  • Step 2; click Add or Remove windows components that are on the left pane of the window. Push in the application server found in the Components list, then click details.
  • Step3; go to Internet Information Services (IIS) button from the sub-components of the Application Server list the press details.
  • Step 4; lastly, select the check box next to the SMTP service from the subcomponents of the Internet Information Services list, then click Ok. Then complete the process by clicking Next, then finish.
  • The good news is that once the email server is set up and the email client can access it on your LAN., there you have it, an email server complete solution.

How to Make Your Email Server on Windows PC for Free in LAN | hMailServer [Full Tutorial]

When it comes to building your server on your Windows PC, there is no need to buy the domain to create a server on your LAN. This guide will take you to step on how you can easily install, configure hMailServer on your LAN in any operating system for windows. Click here for the complete guide.

 how to Build Your Email Server on Ubuntu

Why would you want to run your email server? Maybe you have a website that requires you to send emails to users, or you probably want to be storing your emails for your security and privacy. However, coming up with an email server can be very hard since there are many software components that you must install and configure well.

However, it is advisable to be careful with the virtual private server provider that is most suitable for your email hosting. 

H2 Steps to Set Up Email Server On Ubuntu

Step 1 – Hostnames configuring

Step 2 – Modifying the host file. Ensure the Hostname has been associated with the IP address for the server so that you can edit the hosting file by using Nano editor.

Step 3: Start creating glue records for the server.

Step 4 –On your instance, install the Mail-in-a box

Step 5 – Configure the Mail-in-a box account

Step 6 – Send the test Email

Step 7 –Finally, install the SSL

For more guidance and on how to install Postfix, click here