SquirrelMail for Webmail AfNOG 2013 Scalable Internet Services (SS-E) Presented by Michuki Mwangi Lusaka, Zambia (Original Materials by Joelja)

Slides:



Advertisements
Similar presentations
1 Dynamic DNS. 2 Module - Dynamic DNS ♦ Overview The domain names and IP addresses of hosts and the devices may change for many reasons. This module focuses.
Advertisements

HTTPS/SSL Oleh: Idris Winarno. Persiapan Pastikan repository debian # vim /etc/apt/sources.list deb etch main contrib non-freehttp://kebo.vlsm.org/debian.
Dan Fleck.  WAMP – Windows Apache MySQL PHP -  LAMP – Linux Apache MySQL PHP ◦ There are.
1 Web Servers / Deployment Alastair Dawes Original by Bhupinder Reehal.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
Chapter Apache Installation on Linux. Acknowledgement The contribution made by Darrin Morison is acknowledged.
Apache ssl Objectives Contents Practical Summary Setup Apache + ssl
Apache Web Server Quick and Dirty Steve Gibbard for SANOG 16 (Originally by Joel Jaeggli for AfNOG 2007) ‏
Server Upgrade From UW to Cyrus. What is an IMAP Server? Provides access to your mail messages stored on the mail server Requires authentication.
1 Configuring Web services (Week 15, Monday 4/17/2006) © Abdou Illia, Spring 2006.
Web Servers How do our requests for resources on the Internet get handled? Can they be located anywhere? Global?
Chapter Apache Installation in Linux- Mandrake. Acknowledgment The following information has been obtained directly from
Configuring a Web Server. Overview  Understand how a Web server works  Install IIS (Internet Information Services) and Apache Web servers  Examine.
SquirrelMail for Webmail AfNOG 2012 Scalable Internet Services (SS-E) Presented by Michuki Mwangi Serrekunda, Gambia (Original Materials by Joelja)
APACHE SERVER By Innovationframes.com »
Windows Server 2008 Chapter 8 Last Update
Hands-On Microsoft Windows Server 2008 Chapter 8 Managing Windows Server 2008 Network Services.
Securing LAMP: Linux, Apache, MySQL and PHP Track 2 Workshop PacNOG 7 July 1, 2010 Pago Pago, American Samoa.
Mozilla Thunderbird Roderick Bautista Cheryl Knott Gyeong Lee Lee Raynes Kelly Santos.
Linux Operations and Administration
Managing Client Access
Module 4 Managing Client Access. Module Overview Configuring the Client Access Server Role Configuring Client Access Services for Outlook Clients Configuring.
Implementing POP3 and IMAP4 Using Dovecot
August 25, SSO with Microsoft Active Directory Presented by: Craig Larrabee.
Microsoft Windows 2003 Server. Client/Server Environment Many client computers connect to a server.
Configuring a Web Server. Overview Overview of IIS Preparing for an IIS Installation Installing IIS Configuring a Web Site Administering IIS Troubleshooting.
Apache Server The Apache Server Apache is a WWW server that implements the HTTP protocol. Apache runs as a daemon. This means that it is a resident.
An introduction to Apache. Different Types of Web Servers Apache is the default web server for may Unix servers. IIS is Microsoft’s default web server.
1 HTML (Set Up Public Folder) Some material on these slides is taken directly from
Dovecot – server for pop and imap AfNOG CHIX Blantyre, Malawi October - November, 2011 (Materials developed by Joel Jaeggli For AfNOG)‏
Network Management Tool Amy Auburger. 2 Product Overview Made by Ipswitch Affordable alternative to expensive & complicated Network Management Systems.
1 Apache and Virtual Sites and SSL Dorcas Muthoni.
Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess AFNOG 11 Kigali, Rwanda May 2010 Dorcas Muthoni Courtesy: Hervey Allen.
Hands On Networking Network Applications Ram P Rustagi, ISE Dept Kundan Kumar, MCA Dept Manini Sahoor, MCA Dept Ravi Teja, MCA Dept Sourav.
1 Electronic Messaging Module - Electronic Messaging ♦ Overview Electronic messaging helps you exchange messages with other computer users anywhere in.
Proxy Server PROXY SERVER. What is a Web Proxy? Proxy Server A proxy is a host which relays web access requests from clients Used when clients do not.
Module 6: Managing Client Access. Overview Implementing Client Access Servers Implementing Client Access Features Implementing Outlook Web Access Introduction.
Apache Web Server Quick and Dirty for AfNOG 2015 (Originally by Joel Jaeggli for AfNOG 2007) ‏
Cosc 4750 Configuring httpd, Mysql, And Samba. defaults By default httpd demean will startup and work User directories are turned off Default directory.
Apache Web Server Quick and Dirty Evelyn NAMARA for AfNOG 2014 (Originally by Joel Jaeggli for AfNOG 2007) ‏
Apache Web Server Quick and Dirty Ayitey Bulley for AfNOG 2011 (Originally by Joel Jaeggli for AfNOG 2007) ‏
1 Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess AFNOG X Cairo, Egypt May 2009 Hervey Allen.
Apache Web Server Quick and Dirty Kevin G. Chege for AfNOG 2013 (Originally by Joel Jaeggli for AfNOG 2007) ‏
Multi-Domain Hosting Hosting multiple domains on one server using Apache John Beckett 1/16/2013.
Apache with SSL and php Apache with ssl support should be the basic platform for providing web services... There are several different implementations.
Implementing POP3 and IMAP4 Using Dovecot AfNOG 2012 Scalable Internet Services (SS-E) Serrekunda, Gambia Presented by Michuki Mwangi (Built on materials.
WAMP Windows Apache MySQL and PHP i.e. “WAMP”. Why WAMP? WampServer is a Windows web development environment. It allows you to create and test web pages.
Scaling Dovecot using Mysql and Virtual Users AfNOG 2013 Scalable Internet Services (SS-E) Lusaka, Zambia Presented by Michuki Mwangi.
Web Server Administration Chapter 6 Configuring a Web Server.
TOPIC 7.0 LINUX SERVICES AND CONFIGURATION. ROOT USER Root user is called “super user” because it has power far beyond those of mortal user. As root,
1 Web Server Administration Chapter 8 Providing Services.
Linux Operations and Administration Chapter Twelve Configuring a Mail Server.
SquirrelMail for Webmail Quick and Dirty Michuki Mwangi for AfNOG 2010.
LINUXCHIX WEBMAIL. Software run by an ISP or online service that provides access to send, receive, and review using only your Web browser. Users.
Multi-Domain Hosting CPTE 212 “Missing Slides” for 1/22/2015 John Beckett.
VIRTUAL SERVERS Chapter 7. 2 OVERVIEW Exchange Server 2003 virtual servers Virtual servers in a clustering environment Creating additional virtual servers.
Building Your Own Website Using:. Install & configure LAMP. Download WordPress and run it as a local website on your Raspberry Pi. Configure WordPress.
Web Server Administration Chapter 6 Configuring a Web Server.
Implementing POP3 and IMAP4 Using Dovecot AfNOG 2016 Scalable Internet Services (SS-E) Gaborone, Botswana Presented by Michuki Mwangi (Built on materials.
Apache Configuration. Application Install IBM HTTP Server is Apache.
Web and Proxy Server.
Apache with SSL building from source
Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess
SquirrelMail for Webmail
Unix System Administration
Unix System Administration
(Originally by Joel Jaeggli for AfNOG 2007)‏
Dovecot – server for pop and imap
IIS.
Web Servers / Deployment
Presentation transcript:

SquirrelMail for Webmail AfNOG 2013 Scalable Internet Services (SS-E) Presented by Michuki Mwangi Lusaka, Zambia (Original Materials by Joelja)

What is Webmail? Webmail provides a web-based (HTTP) Mail User Agent (Front end) to access s This makes webmail available anywhere which is practical for most users. Use the default http port 80 but can ran on other user 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 Sqwebmail.

Background Started in 1998 by two brothers Luke and Nathan Ehresman Named after squirrels for their agility It supports IMAP and SMTP protocols and can be setup to support a wide range of MTA and implementations Its written in PHP

Why Squirrelmail Squirrelmail is stable and scales well in most environments Continues to have features support in plugins including password change and server-side filters Its fast with options header caching and supports server side indexing – works well with Dovecot and Cyrus IMAP It has a light interface due to php Additional resources would be required to make it scale for large scale implementations

Summary on Apache In configuring apache the main file is /usr/local/etc/apache22/httpd.conf Uncommenting all the required includes are done here This file is also responsible for loading library module e.g php Additional system wide configurations are done here. More specific configs should be done in includes files Virtual-hosts are defined in the /usr/local/etc/apache22/extra/httpd-vhosts.conf Installation of Squirrelmail will require PHP to be preinstalled. Make install should add this as a dependancy (remember to select Apache support/module)

Installing Squirrelmail (skip this) Squirrelmail is installed from ports $ cd /usr/ports/mail/squirrelmail $ make install clean PHP must have been installed and working for Squirrelmail to work If PHP was not installed, the it will be installed as a dependency. Remember to select Apache module support on PHP options.

Installing from Source The following should be done as Root; Untar the Squirrelmail Source file located in the “afnog” home directory tar –xvf squirrelmail _0429-SVN.stable.tar Copy the “squirrelmail” directory to the web root directory; cd squirrelmail.stable cp –R squirrelmail /usr/local/www/ Create the data and attachment directories mkdir -p /var/squirrelmail/data mkdir –p /var/squirrelmail/attachment Set the file permissions on the directories cd /var chown –R www:www squirrelmail

Configuring Squirrelmail SquirrelMail has its own configure options $ cd /usr/local/www/squirrelmail/ $./configure

1. Organizational Preferences

2. Server Settings Select 2 for Server settings and 1 to change domain. Domain is “XXX.bogus.gh”

2 a. Set Predefined IMAP Servers  Select A for option to set the type of Server  Type “dovecot” and press enter  Press S to save and R to return to previous menu

4. General Options From the main menu Press 4 to go to “General Options” Select option 1 for Data Directory Type the path of the data directory created earlier i.e /var/squirrelmail/data Press enter Press option 2 for Attachments Directory Type the path of the attachments directory created earlier i.e /var/squirrelmail/attachment Press “s” to save and “r” to return to main menu

Other Squirrelmail Options Folder options: - directory default features and behavior of squirrelmail General Options: - Server side activities and optimizations Themes : - Look and Feel Addressbook : - Create or configure LDAP AB Plugins: - Install additional plugin features Database: - Define database for AddrBook Languages: - Change Languages

Configuring Squirrelmail as Apache Virtual-Host Squirrelmail is a web-mail service First step is to do the virtual hosts on apache. Edit /usr/local/etc/apache22/extra/httpd- vhosts.conf and add the following lines. ServerAdmin DocumentRoot /usr/local/www/squirrelmail ServerName webmail.XXXX.bogus.gh ErrorLog /var/log/mail-error_log CustomLog /var/log/mail-access_log common

Configuring – Apache Second Step step is to enable directory access on apache; vi /usr/local/etc/apache22/Includes/squirrelmail.conf add the following in the new file; Options Indexes FollowSymLinks AllowOveride None Order allow,deny Allow from all Save the file and close Restart apache $ apachectl restart

DNS Entry for Webmail A Resource Record for “webmail” subdomain should be created in your DNS Servers Edit /etc/namedb/master/XXX.bogus.gh Add an Address Record (A) and (AAAA) for webmail.XXX.bogus.gh pointing to the IPv4 and IPv6 addresses assigned to the PC/virtual machine Update the serial number and restart Bind – rndc reload

Accessing Webmail Open the browser as per the configuration it should be Logon using the system username and password (user afnog/pass afnog)

Happy Webmailing

Additional Information

SSL Mod-rewrite for Squirrelmail Squirrelmail is a web-mail service as such for security reasons its important to use secure access https Since we require and want to force everyone to go through an SSL interface we set it up as follows; ServerName webmail.XXX.bogus.gh RewriteEngine on RewriteCond %{HTTPS} ^off$ RewriteCond %{HTTP_HOST} (.*) RewriteRule ^(.*)/? [L,R] CAVEAT: SSL does not work in Name Based Virtual Hosting environment only in an IP Based Virtual Hosting. On a shared server it will generate name warnings