To run squirrelmail, you should add PHP support to your apache, have IMAP server installed and configured. Create attach-dir and data-dir outside the webtree (e.g. in /var), then run chown www:nogroup and chmod 730 for them. For configuration run ${PREFIX}/htdocs/squirrelmail/configure.