title: SMTP server using hmailserver. Host cannot be resolved to a type
body: <p>I am trying to create a local SMTP server. I configured everything according to this: <a href="https://medium.com/@coffmans/setup-your-own-simple-smtp-server-how-to-c9159cfc7934" rel="nofollow noreferrer">Link to set-up hmailserver</a></p>
  <p>After that, I ran my diagnostics thing and it said host(in my case, noreply@bufferoverflow.com) cannot be resolved. I googled and read the documentation and question section of hmailserver <a href="https://www.hmailserver.com/forum/viewtopic.php?t=19484" rel="nofollow noreferrer">Docs</a> and found that I am missing a DNS configuration on my machine.</p>
  <p>I followed this article to set-up the DNS ip to name: <a href="https://helpdeskgeek.com/networking/edit-hosts-file/" rel="nofollow noreferrer">How to add ip domain mapping in windows</a></p>
  <blockquote>
  <p>127.0.0.1 bufferoverflow.com</p>
  </blockquote>
  <p>on my</p>
  <blockquote>
  <p>C:\Windows\System32\drivers\etc&gt;notepad hosts.ics</p>
  </blockquote>
  <p>It still said host cannot be resolved to a type. I tried to see if the port was actually open and listening. So I did this command in CMD:</p>
  <blockquote>
  <p>netstat -a</p>
  </blockquote>
  <p>It's listening. I doubled checked everything but coudn't found where I was going wrong. I created a simple nodejs server and hosted it on port 80 at localhost and typed &quot;bufferoverflow.com&quot; in my browser it opened 127.0.0.1 aka localhost which is because it has an ip domain mapping I have given.</p>
  <p>Now I am lost as why the hostname can't be resolved. My DNS is cool. Everthing is configured as docs says and the port is also open and listening. Please help me.</p>