Email

procmail – mail delivery agent

Procmail is a mail delivery agent (MDA) or mail filter, a program to process incoming emails on a computer. It is typically invoked from a mail transfer agent (MTA) like Sendmail; 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 your mailbox.

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.

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.

It can be used to create mail-servers, mailing lists, sort your incoming mail into separate folders/files (real convenient when subscribing to one or more mailing lists or for prioritising your mail), preprocess your mail, start any programs upon mail arrival (e.g. to generate different chimes on your workstation for different types of mail) or selectively forward certain incoming mail automatically to someone.

Features include:

  • Small.
  • Very easy to install.
  • Simple to maintain and configure.
  • Event driven (i.e. gets invoked automagically when mail arrives).
  • Does not use any temporary files.
  • Uses standard egrep regular expressions.
  • Poses a very low impact on your system’s resources.
  • Allows for very-easy-to-use yes-no decisions on where the mail should go (can take the size of the mail into consideration).
  • Also allows for neural-net-type weighted scoring of mails.
  • Filters, delivers and forwards mail reliably.
  • Provides a reliable hook for any programs or shell scripts you may wish to start upon mail arrival.
  • Absolutely undeliverable mail.
  • One of the few mailers to perform reliable mailbox locking across NFS as well.
  • Supports five mailfolder standards: single file folders (standard and nonstandard VNIX format), directory folders that contain one file per message, the similar MH directory folders (numbered files), and Maildir directory folders (a multi-directory format that requires no locking).
  • Native support for /var/spool/mail/b/a/bar type mailspools.
  • Provides a mail log file, which logs all mail arrival, shows in summary where it came, what it was about, where it went (what folder) and how long (in bytes) it was.
  • Uses this log file to display a wide range of diagnostic and error messages (if something went wrong).
  • Does not impose any limits on line lengths, mail length (as long as memory permits), or the use of any character (any 8-bit character, including ‘\0’ is allowed) in the mail.
  • Can be used as a local delivery agent with comsat/biff support.
  • Secure system mailbox handling.
  • Provides for a controlled execution of programs and scripts from the aliases file (i.e. under defined user ids).
  • Allows you to painlessly shift the system mailboxes into the users’ home directories.
  • Can be used as a general mailfilter for whole groups of messages (e.g. when called from within sendmail.cf rules).
  • Can act as an LMTP server for reliable multiple recipient delivery.
  • Works with (among others?) sendmail, ZMailer, smail, MMDF, mailsurr, qmail, and Postfix.

Website: www.procmail.org
Support: Documentation
Developer: Philip A. Guenther and others
License: GNU General Public License or Artistic License

Return to Email


Popular series
Free and Open Source SoftwareThe largest compilation of the best free and open source software in the universe. Each article is supplied with a legendary ratings chart helping you to make informed decisions.
ReviewsHundreds of in-depth reviews offering our unbiased and expert opinion on software. We offer helpful and impartial information.
Alternatives to Proprietary SoftwareReplace proprietary software with open source alternatives: Google, Microsoft, Apple, Adobe, IBM, Autodesk, Oracle, Atlassian, Corel, Cisco, Intuit, and SAS.
GamesAwesome Free Linux Games Tools showcases a series of tools that making gaming on Linux a more pleasurable experience. This is a new series.
Artificial intelligence iconMachine Learning explores practical applications of machine learning and deep learning from a Linux perspective. We've written reviews of more than 40 self-hosted apps. All are free and open source.
Guide to LinuxNew to Linux? Read our Linux for Starters series. We start right at the basics and teach you everything you need to know to get started with Linux.
Alternatives to popular CLI tools showcases essential tools that are modern replacements for core Linux utilities.
System ToolsEssential Linux system tools focuses on small, indispensable utilities, useful for system administrators as well as regular users.
ProductivityLinux utilities to maximise your productivity. Small, indispensable tools, useful for anyone running a Linux machine.
AudioSurveys popular streaming services from a Linux perspective: Amazon Music Unlimited, Myuzi, Spotify, Deezer, Tidal.
Saving Money with LinuxSaving Money with Linux looks at how you can reduce your energy bills running Linux.
Home ComputersHome computers became commonplace in the 1980s. Emulate home computers including the Commodore 64, Amiga, Atari ST, ZX81, Amstrad CPC, and ZX Spectrum.
Now and ThenNow and Then examines how promising open source software fared over the years. It can be a bumpy ride.
Linux at HomeLinux at Home looks at a range of home activities where Linux can play its part, making the most of our time at home, keeping active and engaged.
Linux CandyLinux Candy reveals the lighter side of Linux. Have some fun and escape from the daily drudgery.
DockerGetting Started with Docker helps you master Docker, a set of platform as a service products that delivers software in packages called containers.
Android AppsBest Free Android Apps. We showcase free Android apps that are definitely worth downloading. There's a strict eligibility criteria for inclusion in this series.
Programming BooksThese best free books accelerate your learning of every programming language. Learn a new language today!
Programming TutorialsThese free tutorials offer the perfect tonic to our free programming books series.
Linux Around The WorldLinux Around The World showcases usergroups that are relevant to Linux enthusiasts. Great ways to meet up with fellow enthusiasts.
Stars and StripesStars and Stripes is an occasional series looking at the impact of Linux in the USA.
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments