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.)

123 questions
28
votes
1 answer

Is it safe to use procmail in 2017?

I just discovered that procmail website (http://www.procmail.org/) is down. I did some research about its status and it appears that the development of procmail has been dead since 2001. Even the old procmail maintainer recommends to remove it from…
JooMing
  • 805
  • 7
  • 11
12
votes
6 answers

Is there a way to filter mails in remote IMAP account?

Situation: mail server with IMAP only access. Problem: I want to be able to filter mails (put some mails to various folders, mark them as read and so on). Most new email clients have this ability, but I want a standalone filtering program, as I need…
user13185
6
votes
1 answer

procmail insists in writing to /var/mail in macOS Sierra

I'm trying to configure fetchmail and procmail with a Google account. This is my $HOME/.fetchmailrc: poll imap.gmail.com protocol IMAP user "" is jviotti here password '' folder 'Inbox' keep ssl mda 'procmail' And…
jviotti
  • 173
  • 1
  • 6
6
votes
1 answer

Store and forward mail but change FROM header in forwarded mail

I need a procmail recipe which stores the mail and forwards it to another address. The following works fine: :0c ! addressto@forward.to But..now I need to change the From: header in the mails that are being forwarded, and I know it can probably be…
datadevil
  • 525
  • 1
  • 6
  • 22
4
votes
0 answers

Was Procmail's "dropped F" bug ever fixed? If so, when?

For well over a decade, SpamAssassin has provided a sample procmailrc file that includes the following workaround for a Procmail bug: # Work around procmail bug: any output on stderr will cause the "F" in "From" # to be dropped. This will re-add…
Psychonaut
  • 141
  • 3
4
votes
2 answers

Setting up procmail to ignore auto-responders and bounces

I'm using procmail to receive email messages and then forward them on to a script for handling. Sometimes this will even mean generating an email (for example, forwarding the message to another user, or answering a query). Needless to say, I have…
Jordan Reiter
  • 1,260
  • 4
  • 17
  • 38
4
votes
2 answers

Setting up Procmail Filtering for Spam on Postfix/Courier+MySQL Virtual Users

I've been searching for a resource on how to do this but not having much luck. I am running a working MTA/MUA that is based on Postfix and Courier with MySQL as a backend for virtual users. I based my system on the following…
AJ.
  • 332
  • 3
  • 14
3
votes
1 answer

Procmail recipe, mail owned by root

I'm using a combination of Postfix and Procmail to handle inbound email on one of my servers. Each user has a local account and I've been using the below /usr/local/etc/procmailrc successfully for…
USD Matt
  • 5,321
  • 14
  • 23
3
votes
1 answer

procmailrc - change email subject

I want to change subject for all subscription list emails by adding [BULK] to its. Looks like global /etc/procmailrc file is the best place to do it. But this filter also drops all headers for some emails (my changes separated by…
aranel
  • 81
  • 1
  • 7
3
votes
3 answers

Is it possible to reject certain emails in procmail? [In SMTP session rejects based on email content]

Let's assume a typical setup where procmail is called from sendmail to filter incoming emails into correct mailboxes. Is that done while the incoming SMTP connection to sendmail is still active or is it being done after the email has already been…
Greg
  • 198
  • 10
3
votes
1 answer

Where does an unconfigured procmail put incoming mails?

When restarting my postfix with a slightly wrong config, a few mails that were waiting in the mail-queue were apparently delivered via procmail mail.log.0:Dec 26 00:53:38 h2229778 postfix/local[27243]: DB45A3EF839B: to=, relay=local,…
gmyny
  • 53
  • 3
3
votes
1 answer

Email, forwarded by procmail, rejected by Gmail

EDIT Let's ignore for a while all that I have written below and refrase the question: If you have your own domain name and you want to get email for that domain into your Gmail inbox (not Google Apps), how would YOU do it? Preferably SMTP only,…
Amedee Van Gasse
  • 308
  • 3
  • 18
3
votes
3 answers

Change allowed mail size quota

The email server on my ubuntu machine can only receive mails up to 10 megabytes in size. I would like to change that value, but I'm so blind I can't figure out where to change it. Could not be delivered because of Server refused mail at MAIL FROM -…
Jelle De Loecker
  • 1,055
  • 6
  • 16
  • 29
3
votes
1 answer

Best Practical RT, sorting email into queues automatically using procmail

I'm trying to get incoming e-mail to automatically go directly into whichever queue/ticket they are related to or create a new one if none exist and the right queue e-mail setup in the web interface is used. I will have too many queues to have two…
user52095
  • 31
  • 1
  • 2
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
  • 533
  • 3
  • 15
1
2 3
8 9