procmail

From Seo Wiki - Search Engine Optimization and Programming Languages
Jump to navigationJump to search

procmail
Original author(s) Stephen R. van den Berg
Developer(s) Philip A. Guenther
Initial release December 7, 1990
Stable release 3.22 / September 10, 2001
Operating system Any Unix-like
Platform Cross-platform
Development status Mothballed
Type Mail filter
License GPL or Artistic License
Website http://www.procmail.org/

Procmail is a mail delivery agent (MDA) capable of sorting incoming mail into various directories and filtering out spam messages. It is widely used on Unix based systems.

Invocation

The procmail mail delivery agent is generally not started from the command line, but is usually invoked by mail delivery subsystems, such as a mail transport agent (like Sendmail or Postfix), or from a mail retrieval agent (such as fetchmail). This makes the mail processing event-driven. The companion-tool formail allows procmail to be used in batch-processing on mail that already is in a user's mailbox.

Recipes

The procmail agent uses recipes, to determine where to deliver the various mail messages.

Elements of a recipe

Each recipe that procmail uses consists of:

  • mode
  • conditions
  • action

Recipes can be conditional or unconditional

Recipes used by procmail can be conditional or unconditional. If the conditions are left out, the recipe is unconditional.

Types of recipes

Procmail has two kinds of recipes:

  • Delivering recipes
  • Non-delivering recipes.

Processing of recipes

Recipes are read from top to bottom. The first delivering recipe terminates the delivery process (unless the mode flag specifies otherwise).

Conditions

Conditions are usually extended regular expressions, although there are other forms of condition also.

Basic Operation

The procmail tool reads mail messages given to it from standard input. The procmail tool will process the recipes before distributing the mail messages into the appropriate mailboxes.

Other Operations

Other common operations carried out with procmail include filtering and sorting of emails into different folders according to keywords in from, to, subject, text of the mail, or sending autoreplies, but more sophisticated operations are also possible.

Spam Filtering

A common practice is to let procmail call an external spam filter program, such as SpamAssassin. This method can allow for spam to be filtered or even deleted.

Further reading

  • Martin McCarthy, The Procmail Companion, Addison-Wesley, S. 256, November 2001, ISBN 0-201-73790-6

External links

Template:Unix-stub

de:Procmail fr:Procmail it:Procmail li:Procmail ru:Procmail

If you like SEOmastering Site, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...