Questions tagged [procmail]

Procmail is a versatile mail delivery agent (MDA) for Unix-like systems. If features a simple language for articulating delivery rules (aka recipes) to sort, forward, manipulate, and otherwise process incoming email messages.

Procmail was created in the early 1990s by Stephen R. van den Berg. After his involvement waned, Philip Guenther took over as maintainer, and published some new versions at http://procmail.org/. However, this site is now dead, and as of 2010, Guenther recommends users to switch to alternative tools such as maildrop.

In spite of its age and security issues, Procmail remains popular in some environments.

Resources

(Copied from Stack Overflow's procmail tag info page.)

32 questions
5
votes
2 answers

automatically encrypt and decrypt emails using gnupg (gpgrelay for unix)

My point of view related to email security is: whenever possible emails should be protected with PGP/GPG while transporting, but it doesn't have sense to store encrypted emails in local mailbox (this doesn't add to security but make complicated…
Powerman
  • 173
3
votes
1 answer

Are file access times not properly maintained in Mac OS X?

I'm trying to determine how file access times are maintained by default in Mac OS X, as I'm trying to diagnose some odd behaviour I'm seeing in a new MBP Unibody (running Snow Leopard, 10.6.2): The symptoms (drilling down to the specific behaviour…
Ether
  • 1,187
3
votes
1 answer

How to flag (mark) email as important with procmail

How to flag (mark) an email which matches a rule as important (press F in mutt will flag email as important). So how to write this in procmail recipe ? If procmail can not flag email as important, then is there any other solution to do this with a…
3
votes
1 answer

Procmail recipe that will execute a script without affecting delivery?

How do I write a procmail recipe that executes a shell script without affecting delivery?(in this case, something that sends me a DM via Twitter) I don't want to affect further processing of the message - it should continue on its way and the…
outcassed
  • 131
3
votes
2 answers

How can I convert HTML emails to plain text with fetchmail?

I recently set up an email gateway for our bug tracker, which was originally intended as a way for streamline error reporting from our server software. I told my colleagues about it, and they were also happy to have this feature, but I was…
2
votes
1 answer

How can I write a procmail recipe to execute script without affecting the original message

I want to use procmail to trigger a script to run when a certain email message is encountered but I do not want to change, alter, or prevent delivery of the original message. Will this procmail recipe work? :0 fw * ^From:…
2
votes
4 answers

How do I set up a email whitelist using only procmailrc to protect my kids from unwanted email?

How do I set up a email whitelist using only procmailrc to protect my kids from unwanted email? I currently us the OS parental controls, but that is only good for the computer it is enabled on. I understand that as my kids grow up, they'll figure…
hanleyp
  • 6,625
2
votes
1 answer

Bulk delete text/html parts of email messages

I would like to reduce the size of my mail archive by deleting text/html parts of multipart/alternative messages. I can do this individually in mutt by opening each message, but it gets tedious. Is there a way to do it in bulk? Any or all three of…
2
votes
1 answer

Regular expressions in procmail

I have a problem with backscatter to randomly generated fake-from-adresses on a domain with a catchall. The fake-alias is using a scheme, using egrep with the regexp ^To:.*.[A-Z].[a-z].*[A-Z].[a-z].*[0-9]{2,5}@example.org.* in my maildir lists all…
Christian
  • 201
1
vote
1 answer

"Procmail" component of getmail - spamassassin - procmail - mu4e

I'm a newbie trying to work out the following mail solution on a laptop where I'm the only user: getmail - spamassassin - procmail - mu4e (an emacs mail program) Right now I'm succeeding at getmail - mu4e With my former…
1
vote
1 answer

How do I extract and sort image attachment from emails?

Here is what I was thinking of: I want to create a Raspberry Pi Picture-frame (DPF) for my grandma, but with basic email support. Emails can be sent by six family members and will be received daily by fetchmail/procmail. This already works! In…
Markus
  • 269
1
vote
2 answers

Play a sound when mutt has new mail?

I'm using mutt for my mail, usually put on the 2nd monitor with some other windows. Because I'm not monitoring that monitor I often miss the new mails. I want mutt to play a sound (or use Growl) to notify me on new mails. Anyone know about a hook or…
cringe
  • 273
1
vote
1 answer

Organize Email by Date Using procmail

I would like to organize all incoming email into the following directory structure based on the date of the email: ROOT --+-- YYYYMMDD --+-- HH --+-- mm --+-- YYYYMMDD-HHmmSS-000001 | | | | | | …
kjloh
  • 11
1
vote
1 answer

procmail recipe not working right for automatically stripping incoming attachments

In following-up my previous question, I am trying to use munpack in an automated fashion. I'm trying to do this with procmail. > cat .procmailrc :0 | sleep 5 ; munpack /var/spool/mail/testmail ; sleep 5 /dev/null However, this doesn't do…
warren
  • 10,322
1
vote
2 answers

detect spam from random domain names in header, in .procmailrc

Spam from a well-known organization that sells large lots of knockoffs of everything from drones to roombas uses random domains in the From:, Message-ID:, and Reply-To: fields, all different, without even a common trailing xyz.com. (Nonspam mail…
1
2 3