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, because it blocks Postfix:

Install. Enable dovecot-sasl, ipv6, pam and ssl USE flags. See also the Postfix article.

Configure Postfix.

Edit aliases to redirect root mails to webmaster:

Generate aliases database:

Redirect root mails to webmaster:

Check for errors:

Start Postfix:

Check for errors:

dovecot IMAP, POP & SASL
Install. 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.