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

Lightest weight MTA to forward all mail to script

I need to forward *@domain.com to a script. I know the EXIM way and the PROCMAIL way. Is there a lighter way? Any experiences? Which one is the fastest if I JUST WANT it to delivery emails to script? (no pop accounts, nothing else) (I knew qmail but…
naiad
  • 201
  • 2
  • 7
0
votes
1 answer

procmail issue - splitting delivery of one address based on destination domain

I use procmail to handle some serverside mail processing. I am trying to setup one email address on a server that support multiple domains (in the example below, domain.net and domain.com). I want mail sent to user@domain.net to go to bob and mail…
warren
  • 18,369
  • 23
  • 84
  • 135
0
votes
2 answers

Filtering semi-solicited spam

While traditional UCE (get rich quick, enlarge your body parts, Nigerian barristers) are handled adequately, I'm still receiving a lot of not quite unsolicited spam. This is typically from commercial services forwarding "invites" from my "friends"…
Ketil
  • 51
  • 1
  • 1
0
votes
2 answers

Organize Email by Date Using procmail

I would like to organize all incoming email into the following directory structure based on the date of the email: ROOT --+-- YYYYMMDD --+-- HH --+-- mm --+-- YYYYMMDD-HHmmSS-000001 | | | | | | …
kjloh
  • 117
  • 2
  • 4
  • 7
0
votes
1 answer

procmail: processing old mail

I finished tunning my .procmailrc, now I want to process all the mails I have in my Inbox. How can I do that?
anders
  • 235
  • 2
  • 10
0
votes
1 answer

Procmail Mailing List (With Access Control)

This seems like it should be fairly easy to do, but I've run into a few problems. I've added a cron job to parse all users whose UID is greater than 500: ## This checks if the passwd file has been updated, and generates ## the .forward file from all…
bradlis7
  • 353
  • 1
  • 5
  • 17
0
votes
0 answers

How do I solve procmail: Error while writing to "/home//Maildir"

I use Virtualmin to manage my server. I have somehow screwed up the configuration and mail is not being delivered to my mail boxes. I'm desperate to solve this as my mail server is toast. My tail /var/log/procmail.log shows procmail: Program…
MGibbons
  • 21
  • 2
0
votes
1 answer

Postfix should tempfail mail back to queue when local delivery fails

I'm running postfix on Debian 11, together with procmail as lda. Some users have a ~/.procmailrc which calls an external program, parsing the mail and doing things accordingly. This works as expected, as long as nothing goes wrong. Goal definition I…
PoC
  • 236
  • 1
  • 8
0
votes
1 answer

Why is procmail saving my emails with a format like .{x}AA1?

I'm simply trying to save all incoming emails to a folder so that I can have a watchdog script comb through and parse the attachments in various ways as changes happen to the folder. We'll call this specific folder "incoming_emails". I've configured…
0
votes
2 answers

Using procmail to remove backdated spam

I started getting spam backdated by a few years. Is there an easy way to detect and divert these to /dev/null using procmail?
bugmenot77
0
votes
1 answer

procmail's logging helped me get one account's .procmailrc working, but two other accounts don't work and don't log); having difficulty diagnosing

As a site that has a number of users who are "technologically challenged", and as the system mangler, it's fallen on me to solve the spam problem for us all. So, SpamAssassin's doing a fine job of identifying the spam, now it's just a matter of…
Richard T
  • 1,206
  • 12
  • 29
0
votes
1 answer

Is it possible to redirect (not forward) email in procmail?

I am using the following rule to forward email in .procmailrc # in .procmailrc * ^Subject.*something ! another@gmail.example The filtering and forwarding part works as intended. However, the email received by another@gmail.example has my local…
knightrider
  • 113
  • 1
  • 4
0
votes
1 answer

How do i pass virtual usernames from postfix to procmail?

I'm trying to move spam mails to the junk folder automatically with a procmailrc file. Right now I've got postfix running with virtualmail, storing mailbox-settings etc in mysql: virtual_alias_maps =…
0
votes
1 answer

Procmail autoresponse to a single sender (or few ones)

I've been looking some similar examples and slight changes to them to perform that but unsuccessfully. This is the first recipe at $HOME/.procmailrc of the user "me". Mail is received by user@domain.tld but the auto response is not sent. Centos 7,…
0
votes
1 answer

How to filter and deliver a message in Procmail

I rewrite the subject line for certain incoming mails depending on TO: field: :0fhw * ! ^TO_user@domain\.com\> * ^TO_[^<>@ ]+@domain\.com\> * ^Subject:\/.+ | /usr/local/bin/formail -I"Subject: [SPAM]$MATCH" The above code (from my earlier question…
user227963
  • 209
  • 1
  • 2
  • 11
1 2 3
8
9