HOW TO SETUP SMTP SERVER IN LOCALHOST?

How To Setup Smtp Server In Localhost?

“Are you wondering How To Setup Smtp Server In Localhost ?” If so, continue reading this page to know more about the same.

SMTP or Simple Mail Transfer Protocol is a communication protocol that helps you send emails over the internet. The SMTP server settings vary based on the email service you’re using. You can use these settings to configure your email account with email clients like Outlook.

“Is it possible to create my own SMTP server in localhost?”

If you are brooding over the above question, the answer is YES! You can set up your own SMTP server in localhost using the server tool designed for the same.

Continue reading this page to know more about the same.

Setting Up The Smtp Server In Localhost (windows)

In the following step-by-step instructions, we will show you how to set up the SMTP server in localhost using hMailServer.

Why hMailServer?

This server tool is developed for Microsoft Windows and used by many companies, governments, ISPs, etc. It is pretty easy to use compared to other servers. You can install this server like any other application that you install on your Windows computer.

Downloading And Installing The Smtp Server

As the first step of setting up the SMTP in localhost, download hMailServer for your Windows computer.

  • step 1:Visit the hMailServer’s official support page.
  • step 2:Download the latest version of the server’s installer file for Windows from the opened page.
  • step 3:Once the installer file is downloaded, open it.
  • step 4:Install hMailServer by following the prompts displayed on the screen.
  • step 5:When prompted, choose the "Use built-in database engine" or "Use external database engine" option on the Select database server type screen.
  • step 6:Click Next.
  • step 7:Set up a password for hMailServer when prompted.
  • step 8:Finally, click the Install button.
  • step 9:When prompted, type the password you created for the server in the given field of the hMailServer password dialog box.
  • step 10:Once hMailServer is installed, the hMailServer Database Setup screen will open.
  • step 11:Click Next.
  • step 12:Choose Create a new hMailServer database > Next > My SQL.
  • step 13:Now, the “Enter server connection information” window will open.
  • step 14:Type the database URL in the “Database server address” field.
  • step 15:Similarly, type the database’s port, database name, and authentication information in the given fields.
  • step 16:Click Next > Next > Next.
  • step 17:Now, if you receive the error message saying the libmysql.dll file is missing, download and install the libmysql.dll file on your computer for smtp in localhost.
  • step 18:After doing that, click the Next button again on the Finish screen.
  • step 19:If the database setup is done, the “The wizard has completed. Press Close to exit the wizard” message will be displayed on the Completed screen.
  • step 20:Click Finish on the Completing the hMailServer Setup Wizard screen.

Connecting Localhost To The Hmailserver

Secondly, to connect the localhost to the server, create a domain name and an account.

  • step 1:Open the hMailServer tool installed on your computer.
  • step 2:Now, the Connect dialog box prompting you to connect the server to the localhost will open.
  • step 3:Choose the localhost (your computer or network name) and click Connect.
  • step 4:Now, click the “Add domain” button on the Getting Started screen.
  • step 5:Click on the General tab if necessary.
  • step 6:Type the domain name of your desire in the Domain field of localhost smtp server. (For example, for smtpserver.com. “smtpserver” is the name).
  • step 7:Click Save.
  • step 8:Now, you can see the domain name you’ve created under the Domains section on the top left-hand side of the screen.
  • step 9:Click on the Accounts option under your domain name.
  • step 10:Now, the Accounts window will open on your right-hand side of the screen.
  • step 11:Click Add to create an account under the created domain.
  • step 12:Type the account name in the Address field. (For example, “welcome1” is the account name).
  • step 13:After entering the details, click Save.
  • step 14:Return to the Accounts window and click Add again if you want to add one more account.

Note :

Consider, your

  • step 1:Domain name is smtpserver.com
  • step 2:Account name is welcome1@smtpserver.com

Using An Email Client

Thirdly, use an email client to finish the localhost smtp server setup. For example, in this section, we have taken the Thunderbird email client.

  • Step 1:Download and install the Thunderbird email client on your computer if you haven’t done it yet.
  • Step 2:Open the email client.
  • Step 3:Go to the Account Settings tab.
  • Step 4:Click on the Account Actions option in the bottom-left corner of the screen.
  • Step 5:Select the Add Mail Account option from the menu list.
  • Step 6:Type the credentials of the account that you have created under the domain as discussed below.
  • Step 7:Your name: smtpserver
  • Step 8:Email address: welcome1@smtpserver
  • Step 9:Leave the password field blank.
  • Step 10:Click on the Configure manually button on the Set Up Your Existing Address screen.
  • Step 11:Now, type localhost in the Server fields under the IMAP and SMTP sections.
  • Step 12:Click Retest > Done.
  • Step 13:Now, you can see your localhost account in the top-left corner of the screen.

Congratulations! You have successfully set up the SMTP server in localhost.

Contact us if you need real-time technical assistance in setting up the SMTP server in localhost. For more email related queries like How To Setup Smtp Server In Localhost Call our tech experts.

Related Links:

How to Change your email

How To Change Your Email?

To change the email address, open the Email application.

How to Recover Email

How To Recover Email?

Emails that you have deleted will be in the trash..

How to Archive Emails

How To Archive Emails?

To archive the emails first, sign into the Gmail account.

How To Unarchive Emails

How To Unarchive Emails?

First, log into the account and extend the side tab..