title: Localhost SMTP server on Windows Server 2012 R2 Standard not working
body: <p>Newly installed Windows Server 2012 R2 Standard. I set up SMTP server by this tutorial <a href="http://www.vsysad.com/2012/04/setup-and-configure-smtp-server-on-windows-server-2008-r2/" rel="nofollow">http://www.vsysad.com/2012/04/setup-and-configure-smtp-server-on-windows-server-2008-r2/</a> Tested using this powershell command:</p>
  
  <pre><code>Send-MailMessage -SMTPServer localhost -To receiver_mail -From sender_mail -Subject "This is a test email" -Body "Hi Japinator, this is a test email sent via PowerShell"
  </code></pre>
  
  <p>It worked for some time, but accidentally stopped working at the moment. Tried to review tutorial step-by-step - everything is ok. Receiving this error message when testing in powershell:</p>
  
  <pre><code>Send-MailMessage : Unable to connect to the remote server
  At line:1 char:1
  + Send-MailMessage -SMTPServer localhost -To receiver_email -From sender_email ...
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidOperation: (System.Net.Mail.SmtpClient:SmtpClient) [
     ion
      + FullyQualifiedErrorId : SmtpException,Microsoft.PowerShell.Commands.SendMailMessage
  </code></pre>