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
4 answers

Stopping incoming spam with sendmail

I am having an issue due to a "smart" sysadmin that made some choices while I was away for two months: Spam. I manage probably close to 10,000 web/mail sites. He decided to allow all mail to everyone of those domains go to /dev/null if the user did…
ThatGuy
  • 293
  • 1
  • 2
  • 9
0
votes
2 answers

Using spamassassin as an external filter for a web forum

Has anyone tried anything like this? My plan is to do something like this: When a forum post is submitted, instead of immediately saving it to the database, send an e-mail to a reserved account. The e-mail account is configured to use procmail and…
finnw
  • 115
  • 1
  • 5
0
votes
1 answer

Please give me an anti-spam mail measure recipe

How can I configure Procmail and SpamAssassin to catch spam?
freddiefujiwra
  • 1,667
  • 5
  • 25
  • 34
0
votes
1 answer

Dynamic procmail filters

i need procmail to place incoming mail into specific folder depending on some set of rules. I know how i can accomplish this, but i need to write static set of rules in a specific file. What i really need is to configure procmail to use rules stored…
WombaT
  • 157
  • 1
  • 9
0
votes
1 answer

prevent procmail from adding Return-path

I'm storing and forwarding (to google apps) emails using the following procmail recipe: # set vars USERNAME=local_username LOCALPART=realemaillocalpart :0 # Avoid email loops * ! ^X-Loop: ${USERNAME}@domain\.nl { :0c: #Preserve a copy of the…
datadevil
  • 535
  • 1
  • 7
  • 22
0
votes
3 answers

Perform an exact match on the email address in From: header using procmail

I have found a lot of examples for procmail to match on the From: header with wilcards, but I'd like to do an exact match, in order to prevent From:.*jgordon@example.com matching both jgordon@example.com and bjgordon@example.com Is this possible,…
datadevil
  • 535
  • 1
  • 7
  • 22
0
votes
1 answer

Passing at-sign character to procmail in virtusertable

The FAQ tip at http://www.sendmail.org/faq/section3#3.29 seems to rely on the fact that the following entry in virtusertable: @domain.com user+%1 will cause $1 in the .procmailrc config, e.g.: ENV_TO=$1 to have the value "xyz" if email received…
Andz
  • 101
  • 2
0
votes
1 answer

spamassassin via procmail: .procmailrc moves spam messages, but /etc/procmailrc doesn't

I am trying this example to set up spamassassin via procmail globally. It successfully adds the X-Spam headers, but it does not move messages to the spam mboxes. However, using this example locally, at each user's .procmailrc file, does work…
ezequiel-garzon
  • 577
  • 2
  • 7
  • 16
0
votes
1 answer

Taking mail header order in consideration when filtering

My incoming mail server is checking SPF and adds a line in the headers accordingly. However sometimes previous servers are adding similar headers so there is multiple Received-SPF headers. Received-SPF: Softfail... Received: from ... Received: by…
hultqvist
  • 761
  • 5
  • 13
0
votes
1 answer

Assistance needed with a global procmailrc file

Possible Duplicate: Assistance needed with a global procmailrc file Creating a global procmailrc file that forwards to an Exchange server ++++++++++++++++++++++++++++++++++++++++ Please close, as this now a…
0
votes
2 answers

Creating a global procmailrc file that forwards to an Exchange server

I need to forward all messages received on one server to another server (Exchange box). I know how to forward for an individual, but I am unable to forward for all addresses to their respective destination. The usernames are all the same, as is…
0
votes
1 answer

procmail deliver to cyrus imap

i am downloading mail using fetchmail and delivering it to local unix account, the users .procmailrc file stores the mail in Maildir format and also delivers it to cyrus…
krisdigitx
  • 629
  • 3
  • 18
  • 30
0
votes
2 answers

Easiest way to call script for incoming email

On a Ubuntu server, what's the easiest way to run a script (e.g. Python) when an email is received? Email filters would be good, but not necessary.
summatix
  • 225
  • 1
  • 3
  • 6
0
votes
1 answer

Centos Directadmin Dovecot Exim, Forward Email From a Different Email Address

I am trying to set up a Facebook group so anyone can send email to a specific address and this gets forwarded to our groups address and so is posted in the group. However unfortunately if you just forward the email the from address is incorrect as…
Pez Cuckow
  • 525
  • 3
  • 8
  • 22
0
votes
1 answer

procmail dovecot, mail client see change only when quit and reopen

I have a filter in .procmailrc to organize mail in a folder. But I use dovecot as LDA, and it doesn't update until I quit the client. I read that I need to proceed mail through deliver as explain here : http://wiki.dovecot.org/procmail So in…
1 2 3
8 9