TecMint published a tutorial about setting up a complete mail server with Postifx and SquirrelMail on Ubuntu or Debian.
How to Setup a Complete Mail Server (Postfix) using 'SquirrelMail' (Webmail) on Ubuntu/Debian
Creating a mail server on Linux powered machines can be one of the most essential things that every system administrator needs to do while configuring the servers for the first time, if you don’t know what it means; it’s simple, if you have a website like “example.com”, you can create an email account like “username@example.com” to use it to send/receive emails easily instead of using services like Hotmail, Gmail, Yahoo Mail, etc.
How to Setup a Complete Mail Server (Postfix) using 'SquirrelMail' (Webmail) on Ubuntu/Debian