Skip to main content

All Questions

Tagged with
0 votes
1 answer
90 views

In procmail, how can I manipulate a subject line with two MATCH variables?

I am succeeding rewriting my subject line to have a [LIST] prepended to it: :0fhw * ^TO_[^<>@ ]+@example\.com\> * ^Subject:\/.+ | /usr/local/bin/formail -I"Subject: [LIST]$MATCH" ...
user227963's user avatar
0 votes
1 answer
39 views

Split messages from one inbox to another 2 inboxes based on content

is there a way via Postfix and or procmail for example or another software to forward e-mails from one inbox to another 2 inboxes where each message goes either to one inbox or the other based on ...
Alexander Petrov's user avatar
0 votes
1 answer
934 views

How can I set a simple forwarding procmail rule based on FROM?

Using Procmail, I would like to add a rule that dictates: If any email comes from this specific email address, in addition to delivering it locally, also forward it to this other email address. My ...
user227963's user avatar
0 votes
1 answer
699 views

Invoke procmail on spool file using new .procmailrc?

I've recently configured new .procmailrc and .forward files to work with our Postfix mail server. I've tested it with new Emails, and the new .procmailrc is properly filtering and forwarding as ...
Will's user avatar
  • 23
2 votes
2 answers
225 views

procmailrc-Killfile for recipient addresses?

I want to block mails with certain recipient addresses using procmailrc (temporary addresses that now only receive spam). I found a code sample for using a killfile/blacklist, but it only applies to ...
PeterCH's user avatar
  • 21
2 votes
2 answers
5k views

procmail save attachment with received date in filename

Every day we receive an e-mail from e.g. [email protected] with an attachment, the filename is e.g. report.xlsx How can I save the file with the received date? e.g. 20180131_report.xlsx and how can I ...
FaxMax's user avatar
  • 726
0 votes
2 answers
501 views

postfix + procmail -- process serially, not in parallel

Trying to design a system that can filter incoming email messages from a syslog server. Need to drop if they appear to be duplicates (throttle them). Procmail pipes them to a perl script for ...
John Hawley's user avatar
2 votes
2 answers
1k views

Processing/sorting mail from a mailbox-file?

I got a mailbox-file ("Mboxrd") created by getmail, and I'd like to "process" it by sorting mail from various (groups of) senders, and move them to separate mailbox-files (I guess 3-5 for now). ...
Baard Kopperud's user avatar
1 vote
2 answers
2k views

How do you use procmail mda to deliver files to be read by mh?

I'm using fetchmail to download email, and using procmail for delivery as the mda. I'd like them to be delivered for use with mh, but procmail seems to deliver them in a manner that mh doesn't ...
Angelo's user avatar
  • 1,969
3 votes
1 answer
747 views

Procmail does not continue processing untill recipe is finished

Related question reference here Below is my procmail recipe which works fantastic ... :0bf * ^Subject.*register$ | /usr/bin/php -f /root/data/scripts/register.php However, the recipe/script above ...
Danny's user avatar
  • 175
6 votes
2 answers
8k views

How to create Procmail filter that checks both headers and body

I'm trying to create a Procmail rule based on all of From, Subject and a string in the body: :0 B: * ^From:.*[email protected].* * ^Subject:.*fixed string in the subject line.* * .*fixed string in the ...
fooquency's user avatar
  • 196
2 votes
0 answers
73 views

how to prevent procmail listening to the world [closed]

This is part of a larger effort to try and ensure my server is not infected and spamming the internet with spam emails I had a friend take a look at the server and he said "Your procmail is open to ...
arcanine's user avatar
  • 131
1 vote
2 answers
63 views

Procmail to recognize e-mails which were already copied into a folder

I am working at a place where e-mails are sent to multiple groups very often, which means that e-mails will be filtered into random directories, even in mid-thread if a new group is added to the ...
vermokus's user avatar
0 votes
1 answer
2k views

Auto-Reply to Messages Sent to Mailing List

Background and Current Situation I inherited a CentOS 5.7 box running Mailman 2.1.9 housing a series of legacy mailing lists. I've been working on moving these lists to other services like Exchange ...
jak119's user avatar
  • 3
1 vote
0 answers
106 views

procmail and libnotify: how to display emails received? [duplicate]

I am trying to get procmail to work with libnotify (notify-send). My .procmailrc has a couple of recipes, which just essentially filter mails into different folders.. nothing fancy. Most of my ...
ConfusedRecipe's user avatar

15 30 50 per page