O'Reilly logo

Linux E-mail by Ralf Hildebrandt, Patrick Ben Koetter, Magnus Back, Ian Haycox, David Rusenko, Carl Taylor, Alistair McDonald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required