11 - Add a webmail frontend

While POP3 and IMAP mail retrieval protocols are the most popular, used with client programs installed on the client computers, while users are on the road, vacation or at home, a web-based e-mail alternate is useful. Below, I used the old SquirrelMail, to avoid major changes for my e-mail clients.

# Install a web frontend for eMail
# portupgrade -Np mail/squirrelmail

# Adjust php.ini, to allow attachments larger than 2MB
Change or set the following /usr/local/etc/php.ini parameters, to taste
upload_max_filesize = 20M
max_input_time = 300
max_execution_time = 150
error_reporting = E_ALL & ~E_NOTICE ~E_DEPRECATED

### Add a definition for the webmail location to the web server
### I'll set the document root to squirellmail root dir. Edit /usr/local/etc/apache22/httpd.conf
DocumentRoot "/usr/local/www/squirrelmail"
<Directory /usr/local/www/squirrelmail>
    AllowOverride AuthConfig
    Order allow,deny
    Allow from all

### Add other plugins for squirrelmail, to taste
portupgrade -Np squirrelmail-timeout_user-plugin squirrelmail-quota_usage-plugin squirrelmail-postfixadmin-plugin

[ this may depend on png, libcheck and other packages, including OpenLDAP client libraries and tools, php53-zlib, php53-iconv, curl, php53-ldap, pecl-APC, php53-SOAP, php53-simplexml, php53-curl, php53-mcrypt, php53-zlib, php53-ctype, php53gd, zend framework etc. It is advisable to uncheck X11 support from graphics/php53-gd configuration dialog if you don't want X11 support.
This will require a restart to the httpd process ]

### Restart apache
service apache22 restart

Configure squirrelmail
cp /usr/local/www/squirrelmail/plugins/quota_usage/config.php.sample /usr/local/www/squirrelmail/plugins/quota_usage/config.php
vi /usr/local/www/squirrelmail/plugins/quota_usage/config.php

cp /usr/local/www/squirrelmail/plugins/postfixadmin/config.php.sample /usr/local/www/squirrelmail/plugins/postfixadmin/config.php
vi /usr/local/www/squirrelmail/plugins/postfixadmin/config.php

### Configure squirellmail, remember to enable the desired plugins

cd /usr/local/www/squirellmail/config; ./conf.pl

Prev: Integrate amavisd and postgrey with postfix