Questions tagged [procmail]

Procmail is a powerful Mail Delivery Agent (MDA) capable of sorting and filtering mail based on rulesets called recipes. It's rather *nix-centric, terse, mature, and proven. However, it is now unmaintained.

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

172 questions
1
vote
2 answers

procmail and delivering to an IMAP server?

I run my own mail server. It uses procmail to filter incoming mail, which is then stored in maildirs and gets served out my MUA using IMAP. I've got about 1.5GB of email is 135000 inodes. This all works very nicely. However, I'd rather like to stop…
David Given
  • 13,277
  • 9
  • 76
  • 123
1
vote
1 answer

How to make scalable backend postfix server solution?

Here is the problem I am facing with. We are having a postfix server that needs to parse emails forwarded from some user's account and extract some data from it. Usually there are around 200 emails per user. We have tested it with 5 users and this…
Mladen
  • 25,578
  • 11
  • 39
  • 48
1
vote
1 answer

procmail is not executing scripts correctly

I'm having a strange issue with running scripts (perl and ruby failing) from incoming mail locally delivered by procmail. The system is CentOS 5.5 with postfix as my mailer, then a .forward set up to send email on to procmail. The .procmailrc and…
Chris
  • 50
  • 6
1
vote
1 answer

Configure procmail to match an external email address list when filtering emails

My fetchmail scripts retrieves emails from an email box and puts them into a file, called mario, and dumps it into my /var/mail/ folder. I am trying to set up a procmail script to process mario; by processing, this is what I mean: the procmail…
someuser
  • 13
  • 5
1
vote
1 answer

postfix - access to incoming mail info inside of python script

I use postfix for mail server and use procmail for doing some stuff like extracting attachments and create directory for every message and send all data to another server. This is my postfix config : # See /usr/share/postfix/main.cf.dist for a…
alireza
  • 1,173
  • 4
  • 19
  • 40
1
vote
1 answer

How to put some text into procmail forwarded e-mail?

For a couple of days, I've been trying to write procmail script. I want to forward messages, and inject some text into message contents. What I want to accomplish : someone send me e-mail, with word "weather" in the subject email is forwarded to…
Marek MW
  • 11
  • 1
1
vote
1 answer

Despite X-Spam-Status Scores above Required Spam isn't sorted out of mbox

I'm trying to run my mbox file through spamassassin with: formail -s procmail ~/procmail.rc < mbox Despite what I think looks like a proper procmail rc file & an ok spamassassin local.cf the mail that gets scored higher than my 'required' is not…
ComfortMoose
  • 113
  • 7
1
vote
1 answer

Maildrop: Filter mail by Date: header

I'm using getmail + maildrop + mutt + msmtp chain with messages stored in Maildir. Very big inbox bothers me, so i wanted to organize mail by date like that: Maildir |-2010.11->all messages with "Date: *, * Nov 2010 *" |-2010.12->same as…
Mirzhan Irkegulov
  • 17,660
  • 12
  • 105
  • 166
1
vote
1 answer

How to decode a base64-encoded email subject string using a Procmail recipe?

This is a simple Procmail recipe to filter emails depending on subject: :0 * ^Subject: .*Content to filter $HOME/Maildir/.INBOX.My_filtered_folder/ The above very simple Procmail recipe works without problems. But some emails have Base64 encoded…
Monty
  • 11
  • 3
1
vote
1 answer

procmail does not save emails in maildir/new

Procmail saves all new emails directly at the desired maildir folder instead of the maildir/new. My .procmailrc is the…
Marinos K
  • 1,779
  • 16
  • 39
1
vote
3 answers

POP3 email to MySQL database? What options do I have?

Ok..... basically what I'm trying to do is setup something that will handle all incoming mail on a certain POP3 email address, pass all the relevant data to a PHP script, which will then parse the data & insert it into a MySQL database. Now I have…
Brett
  • 19,449
  • 54
  • 157
  • 290
1
vote
2 answers

Move emails with procmail if it matches from sender

as im using different email clients to read/send my mails i want to setup procmail to move my emails to a the folder which is normally done by Thunderbird filter feature. I know that i can do it by using the following code for procmail in my email…
NovumCoder
  • 4,349
  • 9
  • 43
  • 58
1
vote
1 answer

Procmail match 4 numbers only in email address

How can I make Procmail match an email address which always has 4 numbers in it? e.g. 1234@mydomain.com I have read that procmail does not support the modern extended regular expression implementations of repetition, such as…
Paul Littlefield
  • 163
  • 1
  • 10
1
vote
1 answer

Spark Email Processing

We are developing a big data solution in which one requirement is to process incoming emails. The technology stack is not finalized yet but mostly we might go with Sendmail as MTA and Procmail as MDA. We are open to any other very efficient…
1
vote
2 answers

procmail giving "no match" on content-type

I am trying to have procmail decode a base64 encoded attachment. To begin with I am following a simple recipe, found here:…
Ole HM
  • 13
  • 4
1 2
3
11 12