I have downloaded and installed hmailserver
. I want to run it on my local machine and want to send email using a local web application which is also running on my local machine. My web application couldn't send email (got error - couldn't connect to mydomain:25
) and thus I thought to first run hmailserver
's diagnostic tool to test things.
But when I run diagnostics on it, I see the error:
Test: Collect server details
hMailServer version: hMailServer 5.6.7-B2425
Database type: MSSQL Compact
Test: Test IPv6
IPv6 support is available in operating system.
Test: Test outbound port
SMTP relayer not in use. Attempting mail.hmailserver.com:25...
Trying to connect to host mail.hmailserver.com...
Trying to connect to TCP/IP address 5.189.183.138 on port 25.
Received: 220 mail.hmailserver.com ESMTP.
Connected successfully.
Test: Test backup directory
ERROR: Backup directory has not been specified.
Test: Test MX records
Trying to resolve MX records for mydomain.com...
ERROR: MX records for domain mydomain.com could not be resolved
Test: Test local connect
Connecting to TCP/IP address in MX records for local domain domain mydomain.com...
ERROR: MX records for local domain mydomain.com could not be resolved
Test: Test message file locations
Relative message paths are stored in the database for all messages.
Test: Test IP range configuration
No problems were found in the IP range configuration.
To be honest, I don't know what MX Record
is and how to set it up. Things I have done so far are:
- Installed hmailserver (obviously!)
- Added a domain (mydomain.com)
- Added an account in mydomain.com (signup@mydomain.com)
- In settings->Protocols ->SMTP, I added localhost in Delivery of email ->Localhostname section
- In
c:\Windows\System32\Drivers\etc\hosts
file, I added entry127.0.0.1 mydomain.com #for play application
- When I run
netstat -a
, I see thathmailserver
is listening onport 25
(I tested it usingnet stop hmailserver
andnet start hmailserver
)Proto Local Address Foreign Address State
TCP 0.0.0.0:25 DESKTOP-6PLQOLJ:0 LISTENING[/list]
Have I made a mistake?