Free Sample
+ Collection
Code Files

Linux Email

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

Set up, maintain, and secure a small office email server
RRP $26.99
RRP $44.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 139781847198648
Paperback376 pages

About This Book

  • Covers all the information you need to easily set up your own Linux email server
  • Learn how to provide web access to email, virus and spam protection, and more
  • Thoroughly covers open source tools like PostFix, Courier, SpamAssassin, and ProcMail
  • A step-by-step approach where the reader is taken through examples with ample screenshots and clear explanations to facilitate learning

Who This Book Is For

This book is aimed at technically confident users and new and part-time system administrators 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. Basic knowledge of Linux is expected.

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
Choosing between 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 plugins
Securing SquirrelMail
Chapter 5: Securing Your Installation
Configuring Postfix network maps
Cyrus SASL
Testing Cyrus SASL authentication
Configuring Postfix SMTP AUTH
Enabling relaying for authenticated clients
Securing plaintext mechanisms
Dictionary attacks
Chapter 6: Getting Started with Procmail
Introduction to Procmail
How can a filtering system help me?
Downloading and installing Procmail
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
Advanced recipe analysis
Regular expressions
Advanced recipes
Procmail Module Library
Putting it all together
Chapter 8: Busting Spam with SpamAssassin
Why filter e-mail
Introduction to SpamAssassin
Downloading and installing SpamAssassin
Using SpamAssassin
Configuring e-mail clients
Customizing SpamAssassin
Other SpamAssassin features
Chapter 9: Antivirus Protection
Introduction to ClamAV
Document types supported
Downloading and installing ClamAV
Editing the config files
Post installation testing
Introduction to ClamSMTP
Testing e-mail filtering
Automating update of virus data
Automating startup and shutdown
Monitoring log files
Disinfecting files
Chapter 10: Backing Up Your System
Backup options
What to back up
What not to back up
Backing up users' e-mail
Backing up configurations and logs
Automating backups
Verifying restoration procedures

What You Will Learn

You will:

  • Install Postfix mail transfer agent and set up an environment to send and receive email messages
  • Implement the two standard email retrieval protocol services – POP3 and IMAP – for your mail server using Courier-IMAP
  • Configure an easy-to-use open source email client – Mozilla Thunderbird – on your system
  • Install and maintain an efficient webmail solution for your clients with SquirrelMail
  • Prevent usernames and passwords from being sent in plain text, instead encrypting them to avoid eavesdroppers from intercepting valid account details
  • Configure relay permissions for static as well as dynamic IP addresses, and protect your Postfix server from relay abuse
  • Create mail filters, sort your incoming mail into separate folders, pre-process your mail, start any programs upon mail arrival and selectively forward certain incoming mail automatically to someone using Procmail
  • Automatically filter all the mails for spam by integrating SpamAssassin with your mail server
  • Secure your mail server by configuring an email virus scanning system with Clam AV
  • Create an ongoing scheduled backup to recover from catastrophic loss of service in case of a major hardware or software malfunction

In Detail

Many businesses want to run their email servers on Linux for greater control and flexibility of corporate communications, 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.

This book gives you just what you need to know to set up and maintain an email server. Unlike other approaches that deal with one component at a time, this book delivers a step-by-step approach across all the server components, leaving you with a complete working email server for your small business network.

Starting with a discussion on why you should even consider hosting your own email server, the book covers setting up the mail server. We then move on to look at providing web access, so that users can access their email out of the office. After this we look at the features you'll want to add to improve email productivity: virus protection, spam detection, and automatic email processing. Finally we look at an essential maintenance task: backups.

Written by professional Linux administrators, the book is aimed at technically confident users and new and part-time system administrators. The emphasis is on simple, practical and reliable guidance.

Based entirely on free, Open Source software, this book will show you how to set up and manage your email server easily.


Read More