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

134 questions
28
votes
2 answers

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
  • 865
14
votes
7 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
  • 545
5
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…
4
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,411
  • 18
  • 26
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…
4
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
  • 208
4
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
  • 63
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.
  • 352
4
votes
1 answer

How to make clamassassin prepend the X-Virus-* headers instead of appending them?

The email virus filter wrapper for ClamAV, clamassassin, appends its headers to the message headers. X-Virus-Status: No X-Virus-Checker-Version: clamassassin 1.2.4 with clamscan / ClamAV 1.0.3/27134/Mon Dec 25 11:40:06 2023 It would be better that…
Esa Jokinen
  • 52,963
  • 3
  • 95
  • 151
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
  • 221
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,…
3
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
  • 623
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 -…
1
2 3
8 9