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
0
votes
1 answer

procmail rewrite subject line if email recipient user fails match test

I have a local procmail user "bob". If an email arrives and matches bob@domain.com, then no action should be taken. However, if an email arrives and is [anything_else]@domain.com then I would like to rewrite the subject line to insert "[spam]" at…
user227963
  • 209
  • 1
  • 2
  • 11
0
votes
1 answer

Can Procmail be configured to get rid of mail after it is passed to a script?

I have Postfix installed and configured to pass mail to Procmail. I have Procmail configured to pass the email to a Python script. I also notice that Procmail is placing a copy of the same email into a file at /var/spool/mail/. I don't…
Dave
  • 155
  • 1
  • 1
  • 6
0
votes
1 answer

How to pass original recipient by Postfix to Procmail

Is there a way to identify the original recipient of the email, in procmail and not via header? The recipient can be in Bcc and can also be in one of the To / Cc and I am looking for how to get the email address of the recipient. I found that if…
0
votes
0 answers

have postfix bounce all but procmail related non-delivery notification

Pardon me for reposting on serverfault; I mistakenly posted it originally on stackoverflow before, and was kindly reminded to post here..... Problem: I experience every now and then non-delivery messages being sent out when procmail fails. Any…
luke
  • 33
  • 5
-1
votes
1 answer

Procmail recipe - If no dkim signature then forward to .spam

Having read through the documentation at http://pm-doc.sourceforge.net/doc/ i cannot find an answer. I want to use procmail to place mail without dkim into user's spam folder. I have found many articles about dkim filtering, none of which explain…
Derple
  • 121
  • 7
-1
votes
2 answers

Log INCOMING mail to server

I have a mailbox on my server, mailbot, that is working fine. Mail to mailbot@example.com works and per the procmailrc file, sends back an autoresponder text file. But I should be able to send to mailbot+12345@example.com and it should also be…
Eric
  • 1,127
  • 3
  • 13
  • 24
-1
votes
3 answers

Procmail or/and dovecot?

At my class project I'm asked to install and configure a mail service, to do that I have to : Install and configure postfix Install and configure Procmail Configure postfix authentification with SASL Integrate OpenLDAP to postfix But actually I'm…
rednaks
  • 107
  • 1
  • 2
-1
votes
1 answer

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 11:31:52 webserver postfix/cleanup[30427]: 822A91872F:…
Blucreation
-1
votes
1 answer

filter body of incoming email in procmail

I've encountered some problem when configuring my linux machine. We are configuring fetchmail and procmail in order to receive the email from the external mail server.The problem start when we want to get the body content of the email by using…
user119720
  • 390
  • 4
  • 6
  • 20
1 2 3
8
9