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.
21
questions with no upvoted or accepted answers
4
votes
0
answers
66
views
Was Procmail's "dropped F" bug ever fixed? If so, when?
For well over a decade, SpamAssassin has provided a sample procmailrc file that includes the following workaround for a Procmail bug:
# Work around procmail bug: any output on stderr will cause the "...
1
vote
0
answers
386
views
smrsh cannot stat procmailrc
I am attempting to use procmail to route email for virtual users into different folders (specifically, I want to deliver to a user's spam folder if spam assassin assigns a high score). The MTA is ...
1
vote
0
answers
531
views
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 ...
1
vote
0
answers
1k
views
rt-mailgate not making tickets with fetchmail and procmail
I'm trying to use my mail so that any mail sent to [email protected] are turned into tickets by RT4.
The process currently breaks down in the send mail step. My server is running fetchmail. The ...
1
vote
1
answer
823
views
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.
...
1
vote
1
answer
2k
views
procmail recipe to forward email is rejected by recipient
This is the first time using procmail and I've got the following recipe,
SENDMAIL=/opt/zimbra/postfix/sbin/sendmail
SHELL=/bin/sh
PATH=$HOME/bin:/usr/bin:/bin:.
MAILDIR=/opt/zimbra/procmail/
DEFAULT=$...
0
votes
0
answers
48
views
Conditionally forwarding incoming mail to a different address
I have a task at hand that would involve grabbing incoming mail from an IMAPS server (Google Workspace), and then redirecting it to another address (for ingesting attachments from emails).
Sadly, I ...
0
votes
1
answer
125
views
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 ...
0
votes
1
answer
184
views
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
0
answers
190
views
have postfix bounce all but procmail related non-delivery notification
Pardon me for reposting on serverfault; I mistakenly posted it originally on stackoverflow before, and was kindly reminded to post here.....
Problem: I experience every now and then non-delivery ...
0
votes
1
answer
54
views
emails from specific user folder to be zipped and forwarded to an external mailbox
What I'm trying to do is to forward all the emails that are stored (moved) into a specific user folder to a predefined email address
e.g.
Any new email stored in /home/mycooluser/mail/spam-mail to ...
0
votes
1
answer
1k
views
How can I setup Procmail to run a script from email subject
I'm setting up a website that allows users fill a form which sends an email to a server. The subject of the email is generated as a server script that I would like to run on the server command line in ...
0
votes
1
answer
119
views
How to avoid getting matched by FROM_DAEMON on promail?
An admin of a service, which is primarily email based, complained that mails from my self-hosted email server gets matched by FROM_DAEMON on their procmail setup which ends up throwing away my emails.
...
0
votes
0
answers
778
views
Sendmail/dovecot/procmail: Maildir permissions
I've just spent several hours in the middle of the night trying to migrate a Maildir setup from Centos 5.6 to Centos 7.2. I found dozens of hits on how to do this, all completely useless - a few gave ...
0
votes
1
answer
1k
views
dovecot /usr/lib/dovecot/deliver fails only for root
After upgrading Ubuntu from 14.04 to 16.04, I can no longer use dovecot's deliver program in procmail for system deliveries as root, because it claims it cannot open the auth-userdb file, even though ...
0
votes
1
answer
676
views
Procmail multipart message / content type
I have a procmailrc file that is collecting some variables from mail headers, then echo'ing those variables into the message body. Like this:
:0bfw
| echo Subject_ "${SUBJECT_}" ; echo From_ "${...
0
votes
0
answers
289
views
Move spam from dovecot public folders
I have set up Dovecot with public folders on a CentOS 6-server, with sendmail and spamassassin. I'm getting a lot of spam in both public folders and in the users inboxes.
I want spamassassin / ...
0
votes
2
answers
110
views
Easiest way to call script for incoming email
On a Ubuntu server, what's the easiest way to run a script (e.g. Python) when an email is received?
Email filters would be good, but not necessary.
0
votes
2
answers
217
views
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
| ...
-1
votes
1
answer
126
views
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 ...
-1
votes
1
answer
269
views
Procmail Postfix issue
Our server is using CENTOS uses postfix:
Nov 1 11:31:52 webserver postfix/smtpd[30424]: 822A91872F: client=unknown[5.133.168.42], sasl_method=PLAIN, [email protected]
Nov 1 11:31:...