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
1
vote
1 answer

Skip Spamassassin for internal mail

SpanAssassin has flagging internal mail between our users as spam, rather than adding our IPs or domains to SpamAssassin's whitelists I thought it would be best to skip SA and ClamAV all together for mail originating from our internal users. I have…
David Stone
  • 111
  • 1
  • 3
1
vote
2 answers

procmail don't execute php script

I have setup a kannel SMS gateway on my FreeBSD 7.2 - the service works great. I'm now trying to setup a email2sms feature. For this i have created a system user called kannel and all mails are forwarded to this user. In the home dir of kannel i…
Phliplip
  • 541
  • 8
  • 22
1
vote
1 answer

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" procmail: Error while writing to…
user58292
1
vote
2 answers

Procmail recipe to block spam faked from domain

I'm getting a high value of spam with the sender faked as my own email address i.e. from name@example.com Now all emails from my domain example.com are sent using a particular server. How can I setup a procmail filter (or other filter) to delete all…
bugmenot77
1
vote
3 answers

Moving automatically spam messages to a folder in Postfix

My problem is that I want to automatically to move spam messages to a folder and not sure how. I have a linux box giving email access. MTA is Postfix, IMAP is Courier. As webmail client I use Squirrelmail. To filter SPAM I use Spamassassin and is…
Oscar Foley
  • 332
  • 4
  • 18
1
vote
1 answer

Procmail not bouncing emails

I have a catch-all email address for my domain, however I want to block certain addresses from receiving mail. Before, I was doing it like this: :0 * ^(X-Original-To): username@example.com /dev/null This works fine, however, the email is silently…
Mike
  • 689
  • 3
  • 9
  • 27
1
vote
1 answer

Procmail: Pipe to Program, Otherwise Return Error to Sender

I'm trying to use procmail to send all messages for a certain domain to RT (Request Tracker). This is more of a question about the .procmailrc file, though. Here's my current .procmailrc file: #Preliminaries SHELL=/bin/sh #Use the…
bradlis7
  • 353
  • 1
  • 5
  • 17
0
votes
1 answer

procmailrc recipe: turn on VERBOSE conditionally?

I would like a recipe for my procmailrc file to turn on VERBOSE only if an e-mail came in from one (and only one) particular e-mail address. My procmail spam filter is way too long (and old) and difficult to go over each individual line.
0
votes
1 answer

User for the procmail log file

I configured exim to deliver local mail via procmail to maildirs in a pretty standard way: (exim4.conf) procmail_pipe: driver = pipe command = /usr/bin/procmail -d $local_part return_path_add delivery_date_add envelope_to_add …
viraptor
  • 1,296
  • 6
  • 21
  • 41
0
votes
2 answers

Why this email wasn't delivered by Postfix/Dovecot/Procmail?

During that day sender sent four other emails after this one. All of them were delivered as usual. These are the lines of maillog corresponding to that email that was not delivered to recipient. Mar 22 06:36:19 host postfix/smtpd[10898]: connect…
dstonek
  • 233
  • 3
  • 10
0
votes
1 answer

Procmail variables and recipe syntax

I'm trying to understand the procmailrc syntax. From documentation that I've read, I can set my own variables using VARNAME=value and then use them elsewhere by refering to $VARNAME I also understand that recipes filter mail input to different…
user1118764
  • 129
  • 1
  • 1
  • 4
0
votes
1 answer

emails from specific user folder to be zipped and forwarded to an external mailbox

What I'm trying to do is to forward all the emails that are stored (moved) into a specific user folder to a predefined email address e.g. Any new email stored in /home/mycooluser/mail/spam-mail to be forwarded spamreport@mycooldomain.com. I'm…
rs232
  • 105
  • 1
  • 10
0
votes
1 answer

Setup a mail server on debian ONLY to redirect them to a parser script

I have a server (example.com) running on Debian that is not configured to receive emails (or at least I've never done any effort to do so). From what I understand I just need to create an MX DNS entry pointing to example.com to be able to receive…
0
votes
1 answer

formail -I "From " what does this do exactly?

the Topic itself asks the Question. What does cat emailsource | formail -I "From " exactly? Does it simply remove all duplicate Froms? The Manpage is a little bit unclear to me.
evildead
  • 892
  • 5
  • 11
0
votes
1 answer

How can I setup Procmail to run a script from email subject

I'm setting up a website that allows users fill a form which sends an email to a server. The subject of the email is generated as a server script that I would like to run on the server command line in order to automate a process. The commands are…
1 2 3
8 9