Linux Email: Set up and Run a Small Office Email Server
A simple step-by-step guide to setting up a Linux email server using the most popular free Open Source tools

Packt Publishing


 

HOME > CHAPTER 6

Chapter 6:
Getting Started With Procmail
In this section we will see how a mail filtering system can be set up on the server to handle the repetitive sorting and storing tasks that you would rather not spend your time on every day. Procmail is designed to handle a wide variety of processing and filtering tasks on mail being received by users within the system. Filtering only applies to users who have an account on the system—not to virtual users—and may be applied system wide to all users or individual users may add their own filters. By the end of the chapter you will understand the basics of the filtering process—how to set up the system to perform filtering, and how to perform a number of very simple but extremely useful filtering operations on your own mail. All of which will help you keep on top of all the mail you are already or will soon be receiving.

  • Chapter 6: Getting Started With Procmail
     
    • How can a Filtering System Help Me?
      • Potential Uses for Mail Filtering
        • Filtering and Sorting Mail
        • Forwarding Mail
        • Processing the Mail in an Application
        • Acknowledgements and Out of Office/Vacation Replies
      • File Locking and Integrity
    • Introduction to Procmail
      • Who Wrote It and When
      • What Procmail Is Not Suitable For
      • Versions Used
    • Downloading and Installation
      • Web Site Location
        • Installing and Configuring Procmail
        • Installing Options/Considerations
        • Individual Installation
        • System-Wide Installation
      • Integration with Postfix Mail Service for System-Wide Delivery
        • Create an Alias for System Accounts
        • Add Procmail to the Postfix Configuration
        • Postfix-Provided Environment Variables
    • Basic Operations
      •  Configuration File
        • File Format
        • Configuration File Dissection
    • Analyzing a Simple Rule
      • The Rule Structure
        • Variable Analysis
        • Rule Analysis
    • Creating and Testing a Rule
      • 'Hello World' Example
      • Create rc.testing
      • Perform Static Testing of the Script
      • Configure Procmail to Process rc.testing
      • Testing the Setup
    • Configuration Debugging
      • Check for Typos in the Scripts
      • Look at the Log File for Error Messages
      • Check File and Directory Permissions
      • Turn on Full Logging
      • Taking Steps to Avoid Disasters
    • Understanding E-mail Structure
      • Message Body
      • E-mail Headers
      • Header Structure
      • Official Definitions for Headers
    • Example Rule Sets
      • From Header
      • Return-Path Header
        • Filtering by Return Path
      • To and Cc Headers
        • Filtering by To or Cc
      • Subject Header
        • Filtering by Subject
    • System-Wide Rules
      • System Rule: Remove Exectuables
      • System Rule: Large E-mails
    • Summary

     

 

BOOK DETAILS
  Paperback, 295 pages
Released: July 2005
ISBN: 190481137X
Authors: Alistair McDonald,
Carl Taylor,
Magnus Bäck, David Rusenko, Ralf Hildebrandt, Patrick Ben Koetter     
 
 

TABLE OF CONTENTS

Introduction
1: Linux and E-Mail Basics 
2: Setting Up Postfix
3: Incoming Mail with POP and IMAP
4: Providing Webmail Access   Free Chapter
5: Securing Your Installation  
6: Getting Started with Procmail
7: Advanced Procmail
8: Busting Spam with SpamAssassin
9: Antivirus Protection
10: Backing Up Your System
Index

 




View the book details
on PacktPub.com


 

 

  This website is owned and maintained by Packt Publishing Ltd, 2005. All rights reserved. Terms and Conditions