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

Copyright

Credits

About the Authors

Introduction

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

Summary

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

Summary

Incoming Mail with POP and IMAP

Downloading and Installing Courier-IMAP

Using POP3

Using IMAP

Summary

Providing Webmail Access

The Webmail Solution

The SquirrelMail Webmail Package

SquirrelMail Installation and Configuration

SquirrelMail Plug-Ins

Securing SquirrelMail

Summary

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

Testing SMTP AUTH

Enabling Relaying for Authenticated Clients

Securing Plaintext Mechanisms

Dictionary Attacks

Summary

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

Summary

Advanced Procmail

Delivering and Non-Delivering Recipes

Ordering of Procmail Recipes

Formail

Advanced Recipe Analysis

Regular Expressions

Procmail Macros

Advanced Recipe Examples

Putting it all Together

Summary

Busting Spam with SpamAssassin

Why Filter E-Mail?

SpamAssassin in Detail

Getting SpamAssassin

Using SpamAssassin

Configuring E-Mail Clients

Customization

Other SpamAssassin Features

Summary

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

Summary

Backing Up Your System

What to Back Up

What not to Back Up

E-Mail

Configurations

Summary