[Procmail](http://www.procmail.org/) 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.

learn more… | top users | synonyms

0
votes
2answers
95 views

Easiest way to call script for incoming email

On a Ubuntu server, what's the easiest way to run a script (e.g. Python) when an email is received? Email filters would be good, but not necessary.
0
votes
2answers
140 views

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 | ...
1
vote
1answer
126 views

Fixing intermittent file locking issue in Procmail

Has anyone seen the following issue with procmail file lock timeouts when writing to a mbox file? This occurs every couple of weeks for a user with the following procmailrc: :0 c: #copy all ...
1
vote
1answer
167 views

procmail recipe to filter email to multiple folders

Currently my procmail recipes are as below: FROM_=`formail -c -x"From "| awk '{ print $1 }'` SUBJ_=`formail -c -x"Subject:" | sed -e 's/^[ ]*//g' -e 's/[ ]*$//g'` :0 *^Subject:.*(60) { :0 ...
1
vote
1answer
241 views

controlling what user sendmail runs scripts in aliases

Suppose I have a line like this in my /etc/aliases: foo-bar: "|/etc/smrsh/some_script" some_script is being run as user mail, but I need it to be running as user nobody. I'm using procmail as ...
0
votes
1answer
17 views

Procmail multipart message / content type

I have a procmailrc file that is collecting some variables from mail headers, then echo'ing those variables into the message body. Like this: :0bfw | echo Subject_ "${SUBJECT_}" ; echo From_ ...
0
votes
1answer
313 views

procmail recipe to forward email is rejected by recipient

This is the first time using procmail and I've got the following recipe, SENDMAIL=/opt/zimbra/postfix/sbin/sendmail SHELL=/bin/sh PATH=$HOME/bin:/usr/bin:/bin:. MAILDIR=/opt/zimbra/procmail/ ...
0
votes
1answer
722 views

How to enable maildir in Dovecot deliver with Sendmail local_procmail

There is documentation around on how to make /usr/local/bin/procmail work with delivering to a maildir. However, it is my understanding that it is also possible to avoid procmail altogether, and have ...
0
votes
1answer
1k views

Procmail lock failures and errors while writing

I'm setting up a mail server on an embedded linux system. When sending mail to a local user I get the following error from procmail: procmail: Lock failure on "/home/mail/ktos/.mailspool.lock" ...
-1
votes
1answer
167 views

Procmail Postfix issue

Our server is using CENTOS uses postfix: Nov 1 11:31:52 webserver postfix/smtpd[30424]: 822A91872F: client=unknown[5.133.168.42], sasl_method=PLAIN, sasl_username=ashley@website.co.uk Nov 1 ...
0
votes
0answers
108 views

Move spam from dovecot public folders

I have set up Dovecot with public folders on a CentOS 6-server, with sendmail and spamassassin. I'm getting a lot of spam in both public folders and in the users inboxes. I want spamassassin / ...
0
votes
0answers
188 views

DROPPRIVS=yes & procmail: Program failure (75) of “/usr/lib/dovecot/deliver”

When I set up DROPPRIVS=yes I get in the procmail logfile procmail: Program failure (75) of "/usr/lib/dovecot/deliver" what is procmail trying to tell me ? UPDATE tail -f ...
0
votes
0answers
180 views

Procmail (permission related) - delivery fails: “process exited returning 77”

Procmail fails to deliver any mail to local users. Bounce message I receive is following: Diagnostic-Code: x-pmta;Error running "/usr/bin/procmail -t -Y -d james": process exited returning 77 ...