Free Sample
+ Collection
Code Files

Linux Email: Set up and Run a Small Office Email Server

Alistair McDonald, Carl Taylor, David Rusenko, Magnus Back, Patrick Ben Koetter, Ralf Hildebrandt

There are definite advantages to running your corporate e-mail on Linux. This step-by-step guide explains how easy it is to set up your own e-mail server and implement advanced features.
RRP $23.99
RRP $39.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781904811374
Paperback316 pages

About This Book

  • All the information you need to easily set up your own Linux email server
  • Shows how to provide web access to email, virus and spam protection, and more
  • Techniques to backup and protect your data
  • Applications used include PostFix, Courier, SquirrelMail, SpamAssassin, ProcMail, and ClamAV

Who This Book Is For

This book aimed at 'unofficial' sysadmins in small businesses, who want to set up a Linux-based email server without spending a lot of time becoming expert in the individual applications.

Table of Contents

Chapter 1: Linux and E-Mail Basics
Why Manage your own E-Mail Server?
What you need to Host an E-Mail Server
Sizing the Hardware of your E-Mail Server
Main E-Mail Protocols—SMTP, POP, and IMAP
E-Mail and DNS
Backup Mail Servers
Chapter 2: Setting Up Postfix
Introduction to Postfix
Installation and Basic Configuration
Stopping Spam and Other Unwanted Messages
Virtual Alias Domains and Local Aliases
Troubleshooting Postfix Problems
Chapter 3: Incoming Mail with POP and IMAP
Downloading and Installing Courier-IMAP
Using POP3
Using IMAP
Chapter 4: Providing Webmail Access
The Webmail Solution
The SquirrelMail Webmail Package
SquirrelMail Installation and Configuration
SquirrelMail Plug-Ins
Securing SquirrelMail
Chapter 5: Securing Your Installation
Setting Up a Permanent Authorized Relay for an IP Address or Range of IP Addresses
Cyrus SASL
Testing Cyrus SASL Authentication
Postfix SMTP AUTH Configuration
Enabling Relaying for Authenticated Clients
Securing Plaintext Mechanisms
Dictionary Attacks
Chapter 6: Getting Started with Procmail
How can a Filtering System Help Me?
Introduction to Procmail
Downloading and Installation
Basic Operations
Analyzing a Simple Rule
Creating and Testing a Rule
Configuration Debugging
Understanding E-mail Structure
Example Rule Sets
System-Wide Rules
Chapter 7: Advanced Procmail
Delivering and Non-Delivering Recipes
Ordering of Procmail Recipes
Advanced Recipe Analysis
Regular Expressions
Procmail Macros
Advanced Recipe Examples
Putting it all Together
Chapter 8: Busting Spam with SpamAssassin
Why Filter E-Mail?
SpamAssassin in Detail
Getting SpamAssassin
Using SpamAssassin
Configuring E-Mail Clients
Other SpamAssassin Features
Chapter 9: Antivirus Protection
Introduction to ClamAV
Document Types Supported
Downloading and Installing ClamAV
Downloading, Building, and Installing ClamSMTP
Testing Filtering
Automating Startup and Shutdown
Automating Update of Virus Data
Freshclam Configuration
Monitoring Log Files
Disinfecting Files
Chapter 10: Backing Up Your System
What to Back Up
What not to Back Up

What You Will Learn

  • Setting up and running a Linux-based email server
  • Key information about installing, configuring, and using PostFix, Courier, SquirrelMail, ProcMail, ClamAV, and SpamAssassin
  • Securing and protecting your installation from viruses, spam, intruders, and hardware failure


In Detail

Many businesses want to run their email servers on Linux, but getting started can be complicated. The attractiveness of a free-to-use and robust email service running on Linux can be undermined by the apparent technical challenges involved.  Some of the complexity arises from the fact that an email server consists of several components that must be installed and configured separately, then integrated together. Unlike other approaches that deal with one component at a time, this book gives you a basic knowledge across all the server components, leaving you with a complete working email server for your small business network.

Based entirely on free, Open Source software, you will see how to protect your server from spam and viruses, offer web access for remote access, and secure your installation with regular backups.


Read More