|
|
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.
- 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
- To and Cc Headers
- Subject Header
System-Wide Rules
- System Rule: Remove Exectuables
- System Rule: Large E-mails
Summary
|
 |
|
 |
| |
Paperback,
295 pages
Released: July 2005
ISBN: 190481137X
Authors: Alistair McDonald,
Carl Taylor, Magnus Bäck, David Rusenko, Ralf
Hildebrandt, Patrick Ben Koetter |
|
|
|
|
|
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
|
 |