Note: Installing squirrelmail
is not recommended since it is no longer being patched for vulnerabilities and hence would be security risk on an internet facing server, with critical exploits that have still not been patched. A better, more recent replacement that works identically with no problems is roundcube
which is also found in the repositories for easy setup
However, you if for some reason you still do want to install it, you must do it from source as follows. Open up a Terminal ( Ctrl+Alt+T) and follow along
Install a a webserver as well as PHP (sudo apt-get install apache2 php libapache2-mod-php php-mcrypt php-mysql
)
Install an IMAP server
Make a directory on the webserver root by using mkdir /var/www/html/sqmail
Download and extract sqmail by using
wget -qO- https://netix.dl.sourceforge.net/project/squirrelmail/stable/1.4.22/squirrelmail-webmail-1.4.22.tar.gz | tar xz -C /var/www/html/sqmail --strip-components 1 && chown -r www-data /var/www/html/sqmail
Select 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.
Configure sqmail by running /var/www/html/sqmail/configure
Now visit http://localhost/sqmail
to use it
apt search squirrelmail
before theinstall
:P – damadam Jul 24 '18 at 08:54