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

123 questions
1
vote
1 answer

Procmail script for autoreplier with constraints

How would I set up procmail so it replies to all emails with a standard message, provided the emails: Have the word "AAA" in the subject Have the word "BBB" in the text Do not have the words "CCC" or "DDD" in the text
user36547
  • 111
  • 2
1
vote
1 answer

Procmail not execute shell command

i need launch a script when receive an email with specific subject, i've try fetchmail + procmail, this my configuration .fetchmailrc set no bouncemail defaults: antispam -1 batchlimit 100 poll imap.googlemail.com protocol IMAP auth…
hellb0y77
  • 955
  • 5
  • 11
  • 21
1
vote
1 answer

How do you match a forwarded gmail address with procmail

When Gmail forwards an email to an external address, it apparently inserts the forwarded address into the FROM line. So an email being forwarded to username@school.edu by username@gmail.com becomes: username+caf_=username=school.edu@gmail.com I'm…
1
vote
0 answers

Dovecot/sendmail migration from system to virtual users

I have a production mailing system in place. The initial setup was done with system users. Each domain has a system user and in the end all mail to the same domain goes to the same account (and later moved to specific folders based on procmail…
1
vote
1 answer

Procmail seems not being executed when fetching emails with fetchmail

I have the following problem: I got a new working PC (Debian testing, codenme: stretch) recently and had to reinstall fetchmail and procmail in order to read my emails with mutt. Now, fetchmail works well as also mutt is doing, only the spool…
relativitaet
1
vote
2 answers

Procmail rules with regexp

here are my procmail recipes: :0 * ^Subject: [JIRA] (EDRV-*) *$ .JIRA.edrive/new :0 * ^Subject: [SPAM] *$ .SPAM/new :0 * ^X-Spam-Status: Yes .SPAM/new :0 * .* new I want to put my messages with [JIRA] (EDRV-XXX) in the subject into the…
Green Root
  • 133
  • 5
1
vote
1 answer

IMAP server can't read (open) mails using fetchmail, procmail & dovecot

I'm trying to setup a mail server ! Everything seems to be ok (after some loooong days) but when I tried to read mail with IMAP server : Apr 18 17:38:48 sd-84941 dovecot: imap(dlp): Error: open(/data/maildir/dlp/cur/1460993401.13028_0.sd-84941:2,)…
partout
  • 21
  • 2
1
vote
2 answers

Procmail and thunderbird: folder/maildir created with root as owner

I have a mailserver configured(spamassassin+procmail+sendmail+dovecot) I want all spam mails redirected to spam folder I set /etc/procmail DEFAULT=/var/spool/mail/$LOGNAME/new ORGMAIL=/var/spool/mail/$LOGNAME MAILDIR=/var/spool/mail/$LOGNAME #…
elbarna
  • 322
  • 3
  • 6
  • 14
1
vote
0 answers

rt-mailgate not making tickets with fetchmail and procmail

I'm trying to use my mail so that any mail sent to support@mydomain.com are turned into tickets by RT4. The process currently breaks down in the send mail step. My server is running fetchmail. The mail is being found by fetchmail, as my…
Tiersis
  • 11
  • 3
1
vote
1 answer

Emails corrupt and a winmail.dat file attachment added for only one mail box

I have one mailbox that's receiving emails from a particular company who use Outlook and all emails sent to that one address are stripped of their proper structure and a winmail.dat file is attached. This is only happening for single mail box on my…
neubreed
  • 11
  • 1
1
vote
1 answer

Comparison of methods to send Postfix emails to Procmail

I want to begin using Procmail in order to perform filtering on specific accounts in virtual domains as received by Postfix on my Centos 7 server. In various articles it seems that there are two common ways to direct the Postfix emails to…
r.j.bumble
  • 35
  • 1
  • 6
1
vote
1 answer

postfix/procmail - preventing duplicate email in procmailrc

I've postfix on my server, I'm using procmail and customized shell script to process incoming emails for one of user accounts on my local domain/machine. (work@domain.com) Everything was just working fine when I had only one recipient in email, but…
atari83
  • 141
  • 4
1
vote
1 answer

Deliver fetchmail messages to two different MDA's

I'm running fetchmail on a AntiSpam server to get messages on user's junk folder to feed SpamAssassin bayesian filtering. It's been running nicely with the -m option in fetchmail to deliver the messages to SpamAssassin sa-learn tool. But I would…
Vinícius Ferrão
  • 5,400
  • 10
  • 52
  • 91
1
vote
1 answer

procmail is ignoring user settings

I use procmail for filtering emails in combination with postfix. procmail is triggered by postfix via the in the main.cf mailbox_command mailbox_command = /usr/bin/procmail -t -a "$EXTENSION" but in the master.cf procmail unix n n - 20 …
Max Muster
  • 297
  • 1
  • 5
  • 26
1
vote
2 answers

Fixing intermittent file locking issue in Procmail

Has anyone seen the following issue with procmail file lock timeouts when writing to a mbox file? This occurs every couple of weeks for a user with the following procmailrc: :0 c: #copy all mail to "bkp" bkp Most of the time, this works…
John H
  • 21
  • 6
1 2
3
8 9