• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How To Install SquirrelMail in Ubuntu/Debian

897

To Install Mail Server using SquirrelMail in Ubuntu/Debian

Squirrel mail server is a web interface which is licensed under the GNU General Public License and is programmed in PHP language. In this tutorial we will learn how to install SquirrelMail in Ubuntu/Debian.

Features of SquirrelMail

  • works with POP3 email
  • Allows to create email in plain text formats
  • Blocks external images by default.

Step 1: To Install PHP5 and Apache2

Install PHP5 & Apache2 , before installing ' SquirrelMail' .

user1@linuxhelp:~$ sudo apt-get update
[sudo] password for user1:
Get:1 http://security.ubuntu.com wily-security InRelease [65.9 kB]
Hit http://in.archive.ubuntu.com wily InRelease          
Get:2 http://in.archive.ubuntu.com wily-updates InRelease [65.9 kB]                
Get:3 http://security.ubuntu.com wily-security/main Sources [46.6 kB]
.
.
.
Get:49 http://in.archive.ubuntu.com wily-backports/multiverse Translation-en [28 B]                                                                                                                        
Get:50 http://in.archive.ubuntu.com wily-backports/restricted Translation-en [28 B]                                                                                                                        
Get:51 http://in.archive.ubuntu.com wily-backports/universe Translation-en [1,390 B]                                                                                                                       
Fetched 1,728 kB in 14s (116 kB/s)                                                                                                                                                                         
Reading package lists... Done
user1@linuxhelp:~$ sudo apt-get install apache2 php5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  apache2-bin apache2-data apache2-utils libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0 php5-cli php5-common php5-json php5-readline
.
.
.
Setting up php5 (5.6.11+dfsg-1ubuntu3.3) ...
Processing triggers for libc-bin (2.21-0ubuntu4.1) ...
Processing triggers for systemd (225-1ubuntu9.1) ...
Processing triggers for ureadahead (0.100.0-19) ...

Step 2: To Install Postfix Mail Server

Install Postfix Mail Server, to send and receive mails.

user1@linuxhelp:~$ sudo apt-get install postfix
Reading package lists... Done
Building dependency tree       
Reading state information... Done
.
.
.
Running newaliases
Processing triggers for systemd (225-1ubuntu9.1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.34-2) ...
Processing triggers for libc-bin (2.21-0ubuntu4.1) ...

Now select the default postfix configuration for your server.

default postfix configuration

Select the type of mail configuration and here we are using the ' Internet Site' option.

Internet Site

Enter the domain name for sending and receiving mails.

domain name

After setting FQDN, using the below command to start the Postfix mail server.

user1@linuxhelp:~$ sudo service postfix start

Step 3: To Install Dovecot

Execute the below command to install the Dovecot - a mail delivering agent.

user1@linuxhelp:~$ sudo apt-get install dovecot-imapd dovecot-pop3d
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  dovecot-core liblockfile-bin liblockfile1 lockfile-progs ntpdate
.
.
.
Processing triggers for libc-bin (2.21-0ubuntu4.1) ...
Processing triggers for systemd (225-1ubuntu9.1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for dovecot-core (1:2.2.18-2ubuntu2) ...

Start the Dovecot service by executing the below command.

user1@linuxhelp:~$ sudo service dovecot start

Step 4: To Install SquirrelMail

Install SquirrelMail, by running the following command.

user1@linuxhelp:~$ sudo apt-get install squirrelmail
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  squirrelmail-locales squirrelmail-viewashtml
.
.
.
Setting up squirrelmail-locales (1.4.18-20090526-1) ...
Setting up squirrelmail-viewashtml (3.8-3) ...
Removing plugin view_as_html
Data saved in config.php
Activating plugin view_as_html
Data saved in config.php

To configure SquirrelMail execute the following command.

user1@linuxhelp:~$ sudo squirrelmail-configure


SquirrelMail configuration

In the prompt window, type ' 2' to edit the server settings and type ' 1' to change the domain name.

prompt window

Type ' R' to return to the main page. To configure the general options type ' 4' .

main page

Now type ' 11' to change the setting of ' Allow server-side sorting' to ' true' by typing ' y' . Hit Enter and type ' S' to save the changes that you have made in the configuration file.

configuration file

Copy the default configuration file to the apache2 directory to access the web interface, by using the following command.

user1@linuxhelp:~$ sudo cp /etc/squirrelmail/apache.conf /etc/apache2/sites-available/squirrelmail.conf

Run the following command to enable it.

user1@linuxhelp:~$ sudo a2ensite squirrelmail.conf
Enabling site squirrelmail.

To activate the new configuration, run the following command.

user1@linuxhelp:~$ service apache2 reload

Step 5: To create Mail Users

Create new user by running the following command.

user1@linuxhelp:~$ sudo useradd user2
user1@linuxhelp:~$ sudo passwd user2
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

Create a home folder for the user in ' /var/www/html/myusername' and make it as a default home directory.

user1@linuxhelp:~$ sudo mkdir -p /var/www/html/user2
user1@linuxhelp:~$ sudo usermod -m -d /var/www/html/user2 user2
usermod: directory /var/www/html/user2 exists

Provide full permission to user by running the following command.

user1@linuxhelp:~$ sudo chown -R user2.user2 /var/www/html/user2

After setting permission to the user, Login to the mail.

Squirrel mail login page

Navigate to https://192.168.5.219/squirrelmail to access the squirrelmail. Enter your credentials to Login into Squirrel mail
Squirrelmail login page

Compose mail page

Now start sending your mail.
Compose mail page

Squirrel mail Options

The below screen shot shows various options available in Squirrel mail.
Squirrel mail Options

Tags:
benjamin
Author: 

Comments ( 1 )

riromy
I an unable to go to the Squirrel mail login page what can I do..?
Add a comment

Frequently asked questions ( 5 )

Q

How to check the help in SquirrelMail?

A

By using this command you can find the help

Syntax: "SquirrelMail -h"

Q

Why we use the a2ensite command in this SquirrelMail?

A

Here a2ensite is a script that enables the specified site (which contains a block) within the apache2 configuration.

Q

Why the Mail sent from my sid, but the receiver not able to receive it?

A

Check with your firewall, or else look into your spam folder to find a Mail.

Q

Why are pictures in my HTML e-mails replaced with ugly warning signs in SquirrelMail?

A

This image has been removed for security reasons
Spammers can abuse this to validate your e-mail address.
The sender can know instantly if you have read their e-mail.

Q

What is the command to check the version in SquirrelMail?

A

By this command, you can check the version of the mail server
Syntax: "SquirrelMail --version"

Related Tutorials in How To Install SquirrelMail in Ubuntu/Debian

Related Tutorials in How To Install SquirrelMail in Ubuntu/Debian

How To Install SquirrelMail in Ubuntu/Debian
How To Install SquirrelMail in Ubuntu/Debian
May 3, 2016

Related Forums in How To Install SquirrelMail in Ubuntu/Debian

Related Forums in How To Install SquirrelMail in Ubuntu/Debian

SquirrelMail
sebastian class=
Query SELECT INBOX Reason Given: [SERVERBUG]Internal error
Mar 24, 2017
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help David Lopez Guillen ?
Ayuda urgente instale SSL para servidor Opensuse y ahora no funciona tengo servicio web

hola segui este tutorial para tener un certificado ssl y ahora no se ve mi app en la red, espero alguien pueda ayudarme, tengo M9oodle en3.5 en un servidor open suse y ahora no funciona por favor ayuda.

https://www.linuxhelp.com/how-to-create-ssl-certificate-in-opensuse

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.