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

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

129 questions
2
votes
2 answers

What is the purpose of -a "$EXTENSION" in the procmail / postfix integration?

The suggested integration method for procmail into postfix recommends the following: mailbox_command = /some/where/procmail -a "$EXTENSION" All it says about $EXTENSION is EXTENSION The optional address extension. What is passing this to…
rrauenza
  • 555
  • 3
  • 16
2
votes
1 answer

Procmail Filtering From and Body

I have a script generated e-mail which comes in hourly. I do not need to see it except under certain conditions, and so I just want it filtered to its own mailbox. The message comes from cron, and I want to be careful not to filter out other cron…
David
  • 43
  • 3
2
votes
1 answer

Sane Spam Strategy

Right now I'm using spamd to score spam and then procmail to put it in user's .Spam Maildir folder and then manually running sa-learn on .LearnAsSpam and .LearnAsHam and then also manually just deleting everything in those folders. Clearly there…
squarewav
  • 121
  • 3
2
votes
1 answer

Comparison of methods to send Postfix emails to Procmail

I want to begin using Procmail in order to perform filtering on specific accounts in virtual domains as received by Postfix on my Centos 7 server. In various articles it seems that there are two common ways to direct the Postfix emails to…
r.j.bumble
  • 45
  • 1
  • 6
2
votes
1 answer

Need linux milter solution to log email body into database

We exchange emails with various clients and vendors. I am trying to implement a solution where all the email communications between our rep and the client or vendor is saved in our database so in our admin system we have a record of the…
Thom
  • 35
  • 6
2
votes
1 answer

Decrypt incoming pgp mail with procmail

Currently I have a running Postfix server which delivers incoming mail through procmail. That works fine but now I want to decrypt any incoming mail which is encrypted with pgp automatically. So I have created a procmail rule to trigger gnupg. This…
user2626702
  • 113
  • 2
  • 2
  • 9
2
votes
3 answers

how to configure postfix to send local mail to another local server?

I have a pair of mail servers that are comprised mainly of Postfix, Procmail and Cyrus-IMAP and they both work fine. The IMAP servers are configured in a simple master/replica pair. All 'normal' mail is accepted by the master's Postfix which…
starfry
  • 591
  • 1
  • 7
  • 13
2
votes
1 answer

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 sendmail's local_procmail FEATURE call…
cnst
  • 13,848
  • 9
  • 54
  • 76
2
votes
1 answer

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 fwh | formail | (echo "$FROM_"; echo "$SUBJ_";) …
user119720
  • 390
  • 4
  • 6
  • 20
2
votes
2 answers

Spam daily report on servers using sendmail

we'd like to implement a daily spam report to our users like Dreamhost does. Basically we need to send a daily mail (at midnight for example) to inform a single user of all the emails currently in his spam folder with the related score to let them…
Simone Magnaschi
2
votes
2 answers

How to create default subfolders using procmail with Maildir (and postfix) that work with MUA's?

I have a procmail setup and want to have a Spam folder that works with MUA's. I found this tutorial http://www.cyberciti.biz/faq/how-do-i-move-spam-mail-to-spam-folder/ but it doesn't work as expected. I want to be able to open a mail client and see…
user101130
2
votes
3 answers

Postfix + procmail - delivery fails because "can't create user output file" - on CentOS 6.2

I verified that my postfix installation / relaying setup worked. Now I am having trouble with procmail. I have it wired to postfix with the following command: mailbox_command = /usr/bin/procmail -f -a "$USER" I have nothing in my procmail config…
tacos_tacos_tacos
  • 3,250
  • 18
  • 63
  • 100
2
votes
2 answers

fetchmail/sendmail/procmail alternative

is there a program out there that can download mail from an imap account to a local machine for local reading with a program like mutt? I'm finding the whole fetchmail/sendmail/procmail pipeline setup to be a bit much, but I still want to use the…
Chris H
  • 133
  • 1
  • 4
2
votes
2 answers

Postfix - don't generate "unknown user" bounces if message is Spam

We receive a a lot of spam addressed to (random) non-existing users. This causes postfix to generate "unknown user" bounces to the fake sender. As a workaround I use a catch-all to redirect any mail to myself and manually forward mail in cause of…
FabianW
  • 21
  • 1
  • 3
2
votes
1 answer

Postfix .procmailrc mail bounce loops

I tried to search and find similar topics but I couldn't find anything that quite addresses my issue. Basically, I help administer a server for a student group, and most users forward their mail off to some other address via .procmailrc. This is all…
Ibrahim
  • 394
  • 5
  • 12
1
2
3
8 9