Putting it all together

We have covered a wide range of topics in this chapter, which we can now pull together. The following examples use each of the techniques shown in this chapter and are commonly used for e-mail processing. I hope that you find it useful in creating your own mail filtering strategy.

Creating a structure to base your own rules upon

Grouping related aspects of the Procmail rules and configuration will make your installation easier to maintain and less likely to create problems when making changes.

Within the main Procmail directory, create individual files following a consistent naming convention such as rc.main, rc.spam, rc.lists, and so on. Then include each of these into your main .procmailrc file as follows.

#This obtains ...

Get Linux E-mail now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.