How to setup a simple email server to send and receive email in localhost in Ubuntu? : <p>I am using Ubuntu 16.04 LTS. I would like to setup a simple email server in my box, to test email sending and receiving capabilities of my application. I am looking for a simple-to-setup solution, which enable this capability. My expectations are;</p>

<ol>
<li>Two email IDs <code>sender@localhost</code> and <code>receiver@localhost</code></li>
<li>Emails should be configurable in email clients like Thunderbird</li>
<li>Should work without Internet connection</li>
</ol>

<p>A detailed, beginner level answer on how to setup or a beginner level tutorial link will be greatly helpful.</p>

<p>Thank you.</p>
