"Unable to locate package" when I try to install squirrelmail on Ubuntu 18.04

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 squirrelmail

Why 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?

2

2 Answers

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- | 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 to use it

2

Let's Take An Advanced Approach to setup squirrelmail rather than using package manager.

  1. Download SquirrelMail from here on the squirrelmail site.
  2. Open Terminal and navigate to Downloads:

    cd Downloads
  3. Unzip downloaded zip file.

    unzip squirrelmail-webmail-1.4.22.zip
  4. Run configure file:

    ./configure

    and configure SquirrelMail as per your preferences.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like