Simple mail server with webmail

Simple mail server by using postfix MTA, dovecot IMAP + SASL and SquirrelMail webmail. This guide is for getting basic mail server working in small amount of time. You can always add more features later.

postfix MTA
Remove ssmtp. (Blocks postfix)

Install postfix. Enable use flags : dovecot-sasl ipv6 pam ssl

Configure postfix.

Edit aliases. Redirect root mails to webmaster, add line "root: webmaster"

Generate aliases database.

Redirect root mails to webmaster. Add line : "webmaster@localhost"

Check for errors.

Start postfix.

Check /var/log/mail.log for errors.

dovecot IMAP, POP & SASL
Install dovecot. Enable use flags : bzip2 ipv6 maildir pam ssl zlib

Configure dovecot.

Start dovecot.

SquirrelMail webmail
Change dir to webserver root.

Unpack squirrelmail.

Configure squirrelmail.

Create data dirs and set permissions.

Debug squirrelmail by opening url : http://example.com/squirrelmail-webmail-1.4.22/src/configtest.php

You can access webmail by opening url : http://example.com/squirrelmail-webmail-1.4.22/. Everything should be working now.