You have a home network and you want to run your own email server on one computer at home. You Internet service provider (ISP) has given you a static IP address. The below tutorial assumes that the domain you want to host email for is named mydomain.com
Step 1: Checking the requirements
Before you continue, you should check that your Internet service provider (ISP) allows you to run your own email server at home. You should also check that your ISP has not blocked port 25 for incoming traffic. You also needs to know whether they are blocking outgoing traffic on port 25.
Step 2: Configuring the DNS server
To be able to receive email from other servers, you must set up MX records for your domain. The MX records are entries in the DNS server that tells other computers on the Internet which computer (host name) is hosting the email for your domain.
If you have access to a web interface that lets you modify DNS settings, you can set up your MX records yourself. If you don't have access, you should contact the company that registered your domain and ask them to set up the MX records for your domain.
- Create an A record named mail.something.com.
- Configure the A record mail.something.com so that it points at your computers IP address.
- Add a MX record that has the value mail.something.com for your domain.
Step 3: Changing firewall settings
If you have a firewall (which you hopefully have) you need to modify its settings to allow hMailServer to receive email. Email is normally sent and received on TCP/IP port 25. This means that you must configure your firewall to allow incoming and outgoing traffic on TCP/IP port 25. If you're behind some kind of router, you need to configure the router to forward all traffic on port 25 to the computer where hMailServer is running.
Step 4: Install hMailServer
- Download the latest hMailServer version
- Run through the installation wizard.
- Start hMailServer Administrator.
- Click Add Domain...
- Enter the name of your domain and click Save.
- Click Add account... and add a new email account.
- Go to Settings->Protocols->SMTP and choose the Delivery of email tab.
- In the Host name setting, enter the host name of your computer, in this example something.no-ip.com
Step 5: Configuring outgoing email
If your Internet service provider is blocking outgoing traffic on port 25, hMailServer will not be able to deliver email to other servers since all SMTP servers normally only receives email on port 25. If your ISP is blocking outgoing traffic on port 25, the easiest solution is normally to configure hMailServer to forward all outgoing email through your ISP's SMTP server. To do this, follow these steps:
- Start hMailServer Administrator
- Go to the SMTP setitngs and choose Delivery of email.
- In the SMTP relayer setting, enter the name of your ISP's smtp server, for example smtp.myisp.com.
- If your ISP requires a username / password when sending email through their server, select Server requires authentication and enter the username and password.
Step 6: Configuring your email client
In your email client, add a new account. Enter the following information:
- Hostname - The host name or IP address of the computer where hMailServer runs
- Username - Your full email address. Same as the account address you added in hMailServer Administrator.
- Password - The password you defined in hMailServer Administrator