SlideShare a Scribd company logo
SquirrelMail for webmail
Linux
Linux is an open-source software operating systems
built around the Linux kernel. Linux is developed by
Linus Torvalds.
It was his project in 1991 which he took himself for
personal enhancement of skills.
The first version of Linux was introduced on
September 17, 1991, and it is developed in GNU/GPL public license.
Some of the most popular and mainstream Linux distributions are Arch
Linux, CentOS, Debian and Raspbian, Fedora, Gentoo Linux, Linux Mint,
Mageia, openSUSE, Ubuntu and so on.
What is Webmail?
 Webmail provides a web-based (HTTP) Mail User Agent
(Front-end) to access emails.
 This makes webmail available anywhere which is practical
for most users.
 Use the default HTTP port 80 but can ran on other users
defined ports.
 Webmail systems will access the mail server using
IMAP4(s), POP3(s). Some read the files directly from the
mailbox stored in Maildir format e.g Squirrelmail.
System Architecture of Mail Server
MUA – Mail User Agent UDP – User Datagram Protocol
MTA – Mail Transport Agent SMTP – Simple Mail Transfer Protocol
DNS – Domain Name Server POP – Post Office Protocol
IMAP – Intenet Mail Access Protocol
SquirrelMail
Started in 1998 by two brothers Luke and Nathan Ehresman.
It supports IMAP and SMTP protocols and can be set up to
support a wide range of MTA and implementations.
Continues to have features support in plugins including
password change and server-side filters.
It has a light interface because it’s written in PHP.
Pre-requirements
To configure SquirrelMail the pre-requirements are-
 SMTP server(Postfix)
Web server(HTTP)
DNS server(BIND)
Dovecot server
SMTP Server
SMTP stands for Simple Mail Transfer Protocol.
The package used is Postfix. By default, Sendmail (/usr/sbin/sendmail) is
the default SMTP program under Red Hat Enterprise Linux.
However, a simpler mail server application called Postfix (/usr/sbin/postfix)
is also available.
Configuring Postfix to accept network connections from hosts other than
the local computer takes only a few minor changes in its configuration file.
Yet for those with more complex needs, Postfix provides a variety of
configuration options, as well as third party add ons that make it a very
versatile and full-featured MTA(Mail Transport Agent).
Configure Postfix
[root@server ~]# yum install postfix
[root@server ~]# vim /etc/postfix/main.cf
myhostname = www.aryman.com ##line no 75 ‐ uncomment and enter
your host name
mydomain = aryman.com ##line no 83 ‐ uncomment and enter your domain
name
myorigin = $mydomain ##line no 99 ‐ uncomment
inet_interfaces = all ##line no 116 ‐ change to all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain #
#line no 164 ‐ add $domain at the end
mynetworks = 192.168.1.200/24, 127.0.0.0/8 ##line no 264 ‐ uncomment and
add your network range
home_mailbox = Maildir/ ##line no 419 ‐ uncomment
[root@server ~]# systemctl start postfix
[root@server ~]# systemctl enable postfix
Web Server
Linux uses the Apache HTTP Server (http://httpd.apache.org/)
for hosting websites. Apache itself does not operate with
websites; it manages virtual hosts, that is web resources
identified either by an IP address or a hostname.
The file /etc/httpd/conf/httpd.conf defines Apache
configuration for all virtual hosts in the system.
fig.
The hierarchy of
web server settings
Configure HTTP Server
[root@server ~]# mv squirrelmail /var/www/html
[root@server ~]# cd /var/www/html/squirrelmail/
[root@server ~]# chown –R apache:apache squirrelmail
[root@server ~]# vim /etc/httpd/conf/httpd.conf
<Directory /var/www/html/squirrelmail>
Options Indexes FollowSymLinks
RewriteEngine On
AllowOverride All
DirectoryIndex index.php
Order allow,deny
Allow from all
</Directory>
[root@server ~]# systemctl restart httpd
[root@server ~]# systemctl enable httpd
Copy all the files of SquirrelMail in /var/www/html/ directory
DNS Server
DNS stands for Domain Name Server. DNS is also know
as nameserver.
DNS associates hostnames with their respective IP addresses,
so that when users want to connect to other machines on
the network, they can refer to them by name, without having to
remember IP addresses.
The package is used to configure DNS is
BIND(Berkeley Internet Name Domain).
Configure DNS
BIND stores its configuration files in the following locations:/etc/named.conf
[root@server ~]# yum install bind
[root@server ~]# vim /etc/named.conf
[root@server ~]# systemctl start named
[root@server ~]# systemctl enable named
Dovecot Server
Dovecot is an open source IMAP and POP3 server for
Linux/UNIX-like systems, written primarily with security in mind.
The primary purpose of dovecot is to act as mail storage server.
The imap-login and pop3-login daemons which implement the
IMAP and POP3 protocols are included in the dovecot package.
The use of IMAP and POP is configured through dovecot; by
default dovecot runs only IMAP.
Configure Dovecot
[root@server ~]# vim /etc/dovecot/dovecot.conf
protocols = imap pop3 lmtp
[root@server ~]# vim /etc/dovecot/conf.d/10‐mail.conf
mail_location = maildir:~/Maildir ##line no 24 ‐ uncomment
[root@server ~]# vim /etc/dovecot/conf.d/10‐auth.conf
disable_plaintext_auth = no ##line no 9 ‐ uncomment and change from yes to no.
auth_mechanisms = plain login ##line no 97 ‐ add the text "login“
[root@server ~]# vim /etc/dovecot/conf.d/10-master.conf
unix_listener auth‐userdb {
#mode = 0600
user = postfix ##line no 83 ‐ uncomment and enter postfix
group = postfix ##line no 84 ‐ uncomment and enter postfix
[root@server ~]# systemctl start dovecot
[root@server ~]# systemctl enable dovecot
Configuring SquirrelMail
SquirrelMail has its own configure options
[root@server ~]# cd /var/www/html/Squirrelmail/config/
[root@server ~]# ./conf.pl
 set organization details by select 1 option in conf.pl
 set general server details by select 2 option in conf.pl
Create user
 Open Web Browser
[root@server ~]# firefox http://www.aryman.com/squirrelmail
or
[root@server ~]# firefox http://192.168.1.200/squirrelmail
The front end of SquirrelMail
 Login by “Gautam” user.
 The inbox of “Gautam” user
 Select a Folders option.
Select Options.
 compose a mail and sent to “shubham” user.
 receive a mail from “gautam” user.
 reply mail from “shubham” user to “gautam” user.
SquirrelMail for webmail
SquirrelMail for webmail

More Related Content

PPTX
UTM (unified threat management)
PPT
Security and Linux Security
PDF
Hyper-V Replica : Plan de Reprise d'Activité avec Windows Server 2012
PDF
Configuring and administrate server
PPT
Port Scanning
PPT
Email Security and Awareness
PDF
Ceh v5 module 14 sql injection
PPT
Phishing
UTM (unified threat management)
Security and Linux Security
Hyper-V Replica : Plan de Reprise d'Activité avec Windows Server 2012
Configuring and administrate server
Port Scanning
Email Security and Awareness
Ceh v5 module 14 sql injection
Phishing

What's hot (20)

PDF
Ceh v5 module 16 virus and worms
PPT
Domain Name System
PPTX
PDF
Port numbers
PDF
Using Active Directory in AWS
PPT
Domain name server
PPTX
Cyber Crime
PDF
Brute Force Attack Security Use Case Guide
PDF
Sécurité des applications web: attaque et défense
PPTX
trojan horse- malware(virus)
PPT
Protocole rip
PDF
FTP - File Transfer Protocol
PDF
Web application security & Testing
PPT
Copyright in Software and Open Source licensing
PDF
Authentification par certificat (clear box)
PPT
Chapter 3 Presentation
PPTX
DoS or DDoS attack
PPTX
Web Security Attacks
PDF
Dns security
PPTX
Open source network forensics and advanced pcap analysis
Ceh v5 module 16 virus and worms
Domain Name System
Port numbers
Using Active Directory in AWS
Domain name server
Cyber Crime
Brute Force Attack Security Use Case Guide
Sécurité des applications web: attaque et défense
trojan horse- malware(virus)
Protocole rip
FTP - File Transfer Protocol
Web application security & Testing
Copyright in Software and Open Source licensing
Authentification par certificat (clear box)
Chapter 3 Presentation
DoS or DDoS attack
Web Security Attacks
Dns security
Open source network forensics and advanced pcap analysis
Ad

Similar to SquirrelMail for webmail (20)

PDF
Mail
PPTX
Mail server on linux
PPT
PDF
mail server
PDF
Basic Linux Configurations
PPTX
Mail server configuration
PPT
Linux corporate-training-in-mumbai
PDF
How to install and configure Postfix Mail Server in Redhat (RHEL) / CentOS Linux
PPS
Linux10 sendmail
PPT
Unix Administration 5
PPT
lecture16&17 installation in kali linux and others.ppt
PPTX
Mail services and mail commands in linux
ODP
7.protocols 2
PPTX
Mail server using Linux(Ubuntu)
PDF
Red_Hat_Enterprise_Linux-9-Deploying_mail_servers-en-US.pdf
PDF
Poppassd setup howto for rhel cent os 5 ‹‹ linux mail server setup and howto ...
PDF
Mail server on Ubuntu Server 12.04 (Postfix, Courier, SSL, SpamAssassin, Clam...
ODP
DIY eMail@Home
PDF
Step by step_linux_guide
Mail
Mail server on linux
mail server
Basic Linux Configurations
Mail server configuration
Linux corporate-training-in-mumbai
How to install and configure Postfix Mail Server in Redhat (RHEL) / CentOS Linux
Linux10 sendmail
Unix Administration 5
lecture16&17 installation in kali linux and others.ppt
Mail services and mail commands in linux
7.protocols 2
Mail server using Linux(Ubuntu)
Red_Hat_Enterprise_Linux-9-Deploying_mail_servers-en-US.pdf
Poppassd setup howto for rhel cent os 5 ‹‹ linux mail server setup and howto ...
Mail server on Ubuntu Server 12.04 (Postfix, Courier, SSL, SpamAssassin, Clam...
DIY eMail@Home
Step by step_linux_guide
Ad

Recently uploaded (20)

PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
cuic standard and advanced reporting.pdf
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Modernizing your data center with Dell and AMD
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
A Presentation on Artificial Intelligence
PDF
Encapsulation theory and applications.pdf
PDF
Electronic commerce courselecture one. Pdf
PPTX
Big Data Technologies - Introduction.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
cuic standard and advanced reporting.pdf
NewMind AI Monthly Chronicles - July 2025
Modernizing your data center with Dell and AMD
Reach Out and Touch Someone: Haptics and Empathic Computing
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Network Security Unit 5.pdf for BCA BBA.
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
The AUB Centre for AI in Media Proposal.docx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
A Presentation on Artificial Intelligence
Encapsulation theory and applications.pdf
Electronic commerce courselecture one. Pdf
Big Data Technologies - Introduction.pptx
20250228 LYD VKU AI Blended-Learning.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
NewMind AI Weekly Chronicles - August'25 Week I

SquirrelMail for webmail

  • 2. Linux Linux is an open-source software operating systems built around the Linux kernel. Linux is developed by Linus Torvalds. It was his project in 1991 which he took himself for personal enhancement of skills. The first version of Linux was introduced on September 17, 1991, and it is developed in GNU/GPL public license. Some of the most popular and mainstream Linux distributions are Arch Linux, CentOS, Debian and Raspbian, Fedora, Gentoo Linux, Linux Mint, Mageia, openSUSE, Ubuntu and so on.
  • 3. What is Webmail?  Webmail provides a web-based (HTTP) Mail User Agent (Front-end) to access emails.  This makes webmail available anywhere which is practical for most users.  Use the default HTTP port 80 but can ran on other users defined ports.  Webmail systems will access the mail server using IMAP4(s), POP3(s). Some read the files directly from the mailbox stored in Maildir format e.g Squirrelmail.
  • 4. System Architecture of Mail Server MUA – Mail User Agent UDP – User Datagram Protocol MTA – Mail Transport Agent SMTP – Simple Mail Transfer Protocol DNS – Domain Name Server POP – Post Office Protocol IMAP – Intenet Mail Access Protocol
  • 5. SquirrelMail Started in 1998 by two brothers Luke and Nathan Ehresman. It supports IMAP and SMTP protocols and can be set up to support a wide range of MTA and implementations. Continues to have features support in plugins including password change and server-side filters. It has a light interface because it’s written in PHP.
  • 6. Pre-requirements To configure SquirrelMail the pre-requirements are-  SMTP server(Postfix) Web server(HTTP) DNS server(BIND) Dovecot server
  • 7. SMTP Server SMTP stands for Simple Mail Transfer Protocol. The package used is Postfix. By default, Sendmail (/usr/sbin/sendmail) is the default SMTP program under Red Hat Enterprise Linux. However, a simpler mail server application called Postfix (/usr/sbin/postfix) is also available. Configuring Postfix to accept network connections from hosts other than the local computer takes only a few minor changes in its configuration file. Yet for those with more complex needs, Postfix provides a variety of configuration options, as well as third party add ons that make it a very versatile and full-featured MTA(Mail Transport Agent).
  • 8. Configure Postfix [root@server ~]# yum install postfix [root@server ~]# vim /etc/postfix/main.cf myhostname = www.aryman.com ##line no 75 ‐ uncomment and enter your host name mydomain = aryman.com ##line no 83 ‐ uncomment and enter your domain name myorigin = $mydomain ##line no 99 ‐ uncomment inet_interfaces = all ##line no 116 ‐ change to all mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain # #line no 164 ‐ add $domain at the end mynetworks = 192.168.1.200/24, 127.0.0.0/8 ##line no 264 ‐ uncomment and add your network range home_mailbox = Maildir/ ##line no 419 ‐ uncomment [root@server ~]# systemctl start postfix [root@server ~]# systemctl enable postfix
  • 9. Web Server Linux uses the Apache HTTP Server (http://httpd.apache.org/) for hosting websites. Apache itself does not operate with websites; it manages virtual hosts, that is web resources identified either by an IP address or a hostname. The file /etc/httpd/conf/httpd.conf defines Apache configuration for all virtual hosts in the system. fig. The hierarchy of web server settings
  • 10. Configure HTTP Server [root@server ~]# mv squirrelmail /var/www/html [root@server ~]# cd /var/www/html/squirrelmail/ [root@server ~]# chown –R apache:apache squirrelmail [root@server ~]# vim /etc/httpd/conf/httpd.conf <Directory /var/www/html/squirrelmail> Options Indexes FollowSymLinks RewriteEngine On AllowOverride All DirectoryIndex index.php Order allow,deny Allow from all </Directory> [root@server ~]# systemctl restart httpd [root@server ~]# systemctl enable httpd Copy all the files of SquirrelMail in /var/www/html/ directory
  • 11. DNS Server DNS stands for Domain Name Server. DNS is also know as nameserver. DNS associates hostnames with their respective IP addresses, so that when users want to connect to other machines on the network, they can refer to them by name, without having to remember IP addresses. The package is used to configure DNS is BIND(Berkeley Internet Name Domain).
  • 12. Configure DNS BIND stores its configuration files in the following locations:/etc/named.conf [root@server ~]# yum install bind [root@server ~]# vim /etc/named.conf [root@server ~]# systemctl start named [root@server ~]# systemctl enable named
  • 13. Dovecot Server Dovecot is an open source IMAP and POP3 server for Linux/UNIX-like systems, written primarily with security in mind. The primary purpose of dovecot is to act as mail storage server. The imap-login and pop3-login daemons which implement the IMAP and POP3 protocols are included in the dovecot package. The use of IMAP and POP is configured through dovecot; by default dovecot runs only IMAP.
  • 14. Configure Dovecot [root@server ~]# vim /etc/dovecot/dovecot.conf protocols = imap pop3 lmtp [root@server ~]# vim /etc/dovecot/conf.d/10‐mail.conf mail_location = maildir:~/Maildir ##line no 24 ‐ uncomment [root@server ~]# vim /etc/dovecot/conf.d/10‐auth.conf disable_plaintext_auth = no ##line no 9 ‐ uncomment and change from yes to no. auth_mechanisms = plain login ##line no 97 ‐ add the text "login“ [root@server ~]# vim /etc/dovecot/conf.d/10-master.conf unix_listener auth‐userdb { #mode = 0600 user = postfix ##line no 83 ‐ uncomment and enter postfix group = postfix ##line no 84 ‐ uncomment and enter postfix [root@server ~]# systemctl start dovecot [root@server ~]# systemctl enable dovecot
  • 15. Configuring SquirrelMail SquirrelMail has its own configure options [root@server ~]# cd /var/www/html/Squirrelmail/config/ [root@server ~]# ./conf.pl
  • 16.  set organization details by select 1 option in conf.pl
  • 17.  set general server details by select 2 option in conf.pl
  • 19.  Open Web Browser [root@server ~]# firefox http://www.aryman.com/squirrelmail or [root@server ~]# firefox http://192.168.1.200/squirrelmail
  • 20. The front end of SquirrelMail
  • 21.  Login by “Gautam” user.
  • 22.  The inbox of “Gautam” user
  • 23.  Select a Folders option.
  • 25.  compose a mail and sent to “shubham” user.
  • 26.  receive a mail from “gautam” user.
  • 27.  reply mail from “shubham” user to “gautam” user.