I tried this command sudo apt-get install squirrelmail and got this output
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package squirrelmailWhy does this happen? How can I install squirrelmail?
I am using Ubuntu 18.04.
I saw a similar question with no answers: How can I install Squirrelmail in Ubuntu?
22 Answers
Note: Installing
squirrelmailis 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 isroundcubewhich 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/sqmailDownload and extract sqmail by using
wget -qO- | tar xz -C /var/www/html/sqmail --strip-components 1 && chown -r www-data /var/www/html/sqmailSelect 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 to use it
2Let's Take An Advanced Approach to setup squirrelmail rather than using package manager.
- Download SquirrelMail from here on the squirrelmail site.
Open Terminal and navigate to Downloads:
cd DownloadsUnzip downloaded zip file.
unzip squirrelmail-webmail-1.4.22.zipRun configure file:
./configureand configure SquirrelMail as per your preferences.