SquirrelMail

SquirrelMail is a standards-based webmail package written in PHP. It includes built-in pure PHP support for the IMAP and SMTP protocols, and all pages render in pure HTML 4.0 (with no JavaScript required) for maximum compatibility across browsers. It has very few requirements and is very easy to configure and install. SquirrelMail has all the functionality you would want from an email client, including strong MIME support, address books, and folder manipulation.

Prerequisites

  • Web server
  • PHP 4.1.0 or higher
    For better performance, it is recommended that PHP be compiled with gettext support (--with-gettext)
    If you are going to use an LDAP addressbook, PHP needs to be compiled for LDAP (--with-ldap)
  • IMAP server which supports IMAP 4 rev 1.

Installation
Download the latest version of SquirrelMail (1.4.22 at time of writing)

cd /extra/src
wget http://superb-dca2.dl.sourceforge.net/project/squirrelmail/stable/1.4.22/squirrelmail-webmail-1.4.22.tar.gz
tar zxf squirrelmail-webmail-1.4.22.tar.gz

Create a directory to hold the Squirrelmail files. Assuming that we've already installed some mail server related web files in /var/websites/mail we'll put Squirrelmail there:

mkdir -p /var/websites/mail/htdocs
mv squirrelmail-webmail-1.4.22 /var/websites/mail/htdocs/squirrelmail
chown -R nobody:nobody /var/websites/mail/htdocs/squirrelmail

Create a data-dir and attachment dir, outside the webtree (e.g. in /var). The data-dir (for user prefs) should be owned by the user the webserver runs as (e.g. www-data). The attachment dir (for uploading files as attachments) should be file mode 0730 and in the same group as the webserver:

mkdir -p /var/local/squirrelmail/data/ /var/local/squirrelmail/attach/
chgrp nobody /var/local/squirrelmail/data/ /var/local/squirrelmail/attach/
chmod 0730 /var/local/squirrelmail/data/ /var/local/squirrelmail/attach/

Change to the Squirrelmail install directory and run the included config utility:

cd /var/websites/mail/htdocs/squirrelmail/config
./conf.pl

Some of the config options that you will want to change are:

  1. Organization Preferences
      1. Your Name
  2. Server Settings
      1. <domain>
      3. Sendmail or SMTP
           1. Sendmail
           B. Change Sendmail Config
               4.  /var/qmail/bin/sendmail
      A. Update IMAP Settings
          4. IMAP Server: <ip address>
          5. IMAP Port: 993
          7. Secure IMAP (TLS) : true
          8. Server software: dovecot
4. General Options
      10. Allow server thread sort    : true
      11. Allow server-side sorting   : true

Tuning SquirrelMail Performance
http://www.squirrelmail.org/docs/admin/admin-6.html

Credits

Various bits of code, scripts, and procedures were put together with information from John Simpson's qmail.jms1.net website. It's an excellent resource on managing and setting up a Qmail server.

Recent Updates

  • 2 years 2 days ago
  • 2 years 2 days ago
  • 2 years 4 days ago
    php 8.x
  • 2 years 6 days ago
    10.6.7
  • 2 years 1 week ago
    Drop Centos 5/6 stuff