Questions tagged [procmail]
Procmail (http://procmail.org/) 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.
80 questions
1 vote
1 answer
27 views
Configuring Procmail with CRM114
I would like to configure the mail command with procmail in order to filter spam with CRM114 and I cannot seem to find enough information on the subject. I have set up mailx with external mail and ...
0 votes
0 answers
34 views
How to add ",a" flag to the filename delivered in maildir by procmail? [duplicate]
I learned that by adding ",a" to the file name in a maildir, the Evolution software considers the mail as an important message. So I would like to tag some messages using Procmail but ...
0 votes
1 answer
362 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" ...
0 votes
1 answer
1k views
How to use fetchmail with procmail (or maildrop) on a server running sendmail?
I have Amazon Linux instances in AWS EC2. They run sendmail to communicate with each other, and send outgoing mail through a SMARTHOST that is a commercial email provider. No MX records are pointing ...
1 vote
0 answers
75 views
Can procmail intercept incoming messages to a mailing list and modify it before letting it be delivered to the mailboxes of the members of the ML?
I have an email address (a mailing list actually) with a basic procmail setup enabled. Right now, the procmail just dumps incoming emails to fs. I have a use-case where I want to add a custom string ...
0 votes
1 answer
1k 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 ...
2 votes
1 answer
485 views
What is the meaning of %F, %T, and %s in fetchmail's mda option?
Browsing through web pages around the World Wide Web, I often come across ~/.fetchmailrc examples such as: poll mail.example.com port 993 proto imap user "max123" password "...
0 votes
1 answer
225 views
How to get a filename of copied email by procmail and pass it to a script?
I'm trying to execute script when email arrives my server and pass its filename to that script. First part is done, procmail executes script each time an email arrives. Before executing script it ...