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

172 questions
0
votes
2 answers

sendmail lda parameter for full recipients address

Using this: define('LOCAL_MAILER_ARGS', 'procmail -t -Yo -a $h -d $u') in my sendmail mc gives a procmail LOGNAME like user instead of user@domain.com using define('LOCAL_MAILER_ARGS', 'procmail -t -Yo -a $h -d $u@$h') gives…
Jimmy Koerting
  • 1,231
  • 1
  • 14
  • 27
0
votes
1 answer

Procmail: Forwarding email dynamically

I want to use procmail to forward all incoming email to an email address. Normally I would just do this: :0 ! email@domain.com BUT: In this case I don't know the receiver. Insteasd, the receiver is calculated by a PHP script based on the incoming…
0
votes
1 answer

fetchmail forwarding to gmail via procmail - what is happening?

I've set up fetchmail with the following configuration poll my.exchange.server protocol IMAP user "my_name" password "my_pass" smtpname "my_gmail_account@gmail.com" ssl keep no rewrite mda "/usr/bin/procmail -f %F -d…
TimmyJ
  • 928
  • 1
  • 11
  • 22
0
votes
2 answers

PROCMAIL:: How do I get a perl script to execute AFTER having the mail delivered to the MBox

I'm on a Red Hat installation. What I'm running into is that: The perl script looks into the mailbox using Modules to look for message #0 or the delieved mail but it isn't there yet. If I make a COPY of the mail using the C flag I still get the…
BostonMacOSX
  • 1,369
  • 2
  • 17
  • 38
0
votes
2 answers

Mutt and Maildir format + procmail sorting

1.) I'm a little confused about my Mutt configuration. I'm successfully using fetchmail and procmail to download and then sort all my messages in the "Maildir" format into the $HOME/Maildir/ which looks as follows: $HOME/Maildir/ -work (cur, new,…
0
votes
1 answer

strange behaviour of procmail when piping content to c++ executable

I have a working procmail config. this is the rc.filters : :0 w :a.lock * ^From:(.*\<)?(try@gmail\.com)\> | $HOME/executable/a.out this file compiles and works, procmail delivers the mail, and the executable writes the content to the output…
Stasv
  • 115
  • 1
  • 10
0
votes
1 answer

Procmail sends an extra email

I use procmail to forward certain 'From' to a Gmail account /home/user/.procmailrc :0c * !^FROM_MAILER * ^From: .*aaa | bbb | ccc.* ! ^X-Loop: user@gmail\.com | formail -k -X "From:" -X "Subject:" \ -I "To: user@gmail.com" \ -I "X-Loop:…
dstonek
  • 945
  • 1
  • 20
  • 33
0
votes
1 answer

Creating SMTP Account and Receiving mail using PHP

I was wondering if during the time of my User Registration for my site, I can create an SMTP account something like : username@mydomain.com for that user using PHP? And also, some method of receiving/fetching the mails using PHP into my DB so that…
Sankalp Singha
  • 4,461
  • 5
  • 39
  • 58
0
votes
1 answer

Multiple line processing by SED to change incoming e-mail sender and keep their e-mail within bugzilla comments

I am using Bugzilla also to process publicly reported bugs. But I do not want to create account for anybody who may send a bug report. It is easily done by changing the From SMTP header. But of course I would like to keep the Sender e-mail to be…
0
votes
1 answer

Cleaning a text-mail after/before a procmail process in order to have a print of that mail

I've to clean some mails in order to print only their body with procmail : :0: # printing mail with bb in the subject to bbprinter * ^Subject:.*bb | lpr -Pbbprinter How should I make that ? Any idea-help welcome
dbourrion
  • 19
  • 3
0
votes
1 answer

inject an email into another user's procmail

I use a second account to archive mailing lists and make my business email remotely available via pop3. I have it working now with a procmail rule that copies to the second email address. Doing it this way causes the email to be reprocessed by…
0
votes
0 answers

Procmail, Plancake, and MySQL working together

I've got a script running when a certain email address receives an email, procmail pipes to a PHP script, which is then parsed by Plancake, not many problems there. I've got an if statement on strpos, depending on if the body contains a certain…
dcclassics
  • 896
  • 1
  • 12
  • 38
0
votes
1 answer

Procmail setup, to execute PHP script

I've got a procmail setup working pretty well, seems to be executing my PHP script no problem when it receives an email. Here is an example of the .procmailrc file: #BEGIN PROCMAIL SCRIPT FOR MAIL…
dcclassics
  • 896
  • 1
  • 12
  • 38
0
votes
1 answer

Procmail split mailing list answer

The common ethicete about mailing lists is to answer to a human, and CC the mailing list, like this: To: help-volounter@dev.full Cc: some-program@mailing-list.com Subject: Re: Describtion of the problem Problem is that I get two copies of such…
KAction
  • 1,977
  • 15
  • 31
0
votes
2 answers

How do I use Procmail with PHP?

I'm trying to use procmail to send emails to a PHP script so the script will check a MySQL database and edit the subject line based on the sender email. I believe I've got a working procmail to do this: :0: * ^To:.*@barrett.com !…