Question

I need to do mail processing where I manipulate the contents of the mail or invoke a script on the receipt of email, supporting a number of email addresses as the access points. In reading through the MDA agents, procmail appears to be the standard standby, but maildrop has some following too. Wikipedia comments that anyone starting something new should consider maildrop because procmail hasn't been advanced in quite a while.

Are there any solid reasons from features or capabilities that would indicate using one of these over the other?

Was it helpful?

Solution

It is quite difficult to answer. As far as I can see, procmail is very stable and works well. It is not clear (to me) if maildrop can be integrated so easily in .forward like procmail. The good things of procmail are:

  • it is based on pipes, so you can easily add filter using formail+sed+bash
  • it is easy to build a yes/no filter to use with procmail (i.e. a spam processor)
  • do most of the things you need
  • the mailing list is still alive

On the opposite:

  • procmail syntax for dynamic match is complex (the / stuff) and I have found little example
  • documentation is scattered on a lot of howto. This url is good http://pm-doc.sourceforge.net/doc/ but should be edited a bit.

OTHER TIPS

Here is a summary of what I have read in various places:

Maildrop claims to be a "drop-in replacement" for procmail.

Procmail uses an archaic syntax with several unmemorable single-letter commands. Maildrop uses a more powerful, versatile, and readable pattern-action syntax which bears a strong resemblance to that of awk.

Procmail is more widely used than maildrop. Procmail has more examples available on line.

Procmail reads large messages into memory. Maildrop makes use of pipes and temporary files to avoid overloading RAM. Procmail claims to have a very slight speed advantage.

My suggestion: Read the docs for both, and go with the one whose syntax makes more sense to you.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top