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.

Filter by
Sorted by
Tagged with
0
votes
1answer
36 views

Can Procmail be configured to get rid of mail after it is passed to a script?

I have Postfix installed and configured to pass mail to Procmail. I have Procmail configured to pass the email to a Python script. I also notice that Procmail is placing a copy of the same email into ...
0
votes
1answer
83 views

How to pass original recipient by Postfix to Procmail

Is there a way to identify the original recipient of the email, in procmail and not via header? The recipient can be in Bcc and can also be in one of the To / Cc and I am looking for how to get the ...
0
votes
0answers
63 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 ...
-1
votes
1answer
120 views

Procmail recipe - If no dkim signature then forward to .spam

Having read through the documentation at http://pm-doc.sourceforge.net/doc/ i cannot find an answer. I want to use procmail to place mail without dkim into user's spam folder. I have found many ...
-1
votes
2answers
142 views

Log INCOMING mail to server

I have a mailbox on my server, mailbot, that is working fine. Mail to mailbot@example.com works and per the procmailrc file, sends back an autoresponder text file. But I should be able to send to ...
1
vote
0answers
177 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 ...
0
votes
1answer
71 views

procmailrc recipe: turn on VERBOSE conditionally? [closed]

I would like a recipe for my procmailrc file to turn on VERBOSE only if an e-mail came in from one (and only one) particular e-mail address. My procmail spam filter is way too long (and old) and ...
0
votes
2answers
254 views

Why this email wasn't delivered by Postfix/Dovecot/Procmail?

During that day sender sent four other emails after this one. All of them were delivered as usual. These are the lines of maillog corresponding to that email that was not delivered to recipient. ...
1
vote
1answer
522 views

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 ...
1
vote
1answer
279 views

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: ...
0
votes
1answer
1k views

Procmail variables and recipe syntax

I'm trying to understand the procmailrc syntax. From documentation that I've read, I can set my own variables using VARNAME=value and then use them elsewhere by refering to $VARNAME I also understand ...
0
votes
1answer
40 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 ...
1
vote
2answers
878 views

What is the purpose of -a “$EXTENSION” in the procmail / postfix integration?

The suggested integration method for procmail into postfix recommends the following: mailbox_command = /some/where/procmail -a "$EXTENSION" All it says about $EXTENSION is EXTENSION The ...
0
votes
1answer
77 views

Setup a mail server on debian ONLY to redirect them to a parser script [closed]

I have a server (example.com) running on Debian that is not configured to receive emails (or at least I've never done any effort to do so). From what I understand I just need to create an MX DNS entry ...
28
votes
1answer
3k views

Is it safe to use procmail in 2017?

I just discovered that procmail website (http://www.procmail.org/) is down. I did some research about its status and it appears that the development of procmail has been dead since 2001. Even the old ...
3
votes
1answer
1k views

Procmail recipe, mail owned by root

I'm using a combination of Postfix and Procmail to handle inbound email on one of my servers. Each user has a local account and I've been using the below /usr/local/etc/procmailrc successfully for ...
1
vote
0answers
399 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 ...
0
votes
1answer
764 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
1answer
933 views

Permission difficulties with NFS-mounted /var/spool/mail for dovecot and procmail

My mail server setup worked for years. Recently I've started experiencing the following problem: Mail setup: sendmail+dovecot+procmail Host file server: CentOS 6.8, NFS exports mail directories to......
0
votes
2answers
284 views

Filter mail recipient by alias matching with sender's domain

I use an alias for each company that I provide an e-mail contact. So, for example, in /etc/aliases somecompany: myuser The address I supply to SomeCompany would be somecompany@mydomain.com If the ...
6
votes
1answer
695 views

procmail insists in writing to /var/mail in macOS Sierra

I'm trying to configure fetchmail and procmail with a Google account. This is my $HOME/.fetchmailrc: poll imap.gmail.com protocol IMAP user "<email>" is jviotti here password '<...
3
votes
1answer
3k views

procmailrc - change email subject

I want to change subject for all subscription list emails by adding [BULK] to its. Looks like global /etc/procmailrc file is the best place to do it. But this filter also drops all headers for some ...
2
votes
1answer
1k views

Procmail Filtering From and Body

I have a script generated e-mail which comes in hourly. I do not need to see it except under certain conditions, and so I just want it filtered to its own mailbox. The message comes from cron, and I ...
0
votes
1answer
67 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. ...
4
votes
0answers
56 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
1answer
2k views

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 ...
0
votes
0answers
611 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 ...
1
vote
2answers
1k views

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 [...
0
votes
1answer
555 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 ...
3
votes
3answers
1k views

Is it possible to reject certain emails in procmail? [In SMTP session rejects based on email content]

Let's assume a typical setup where procmail is called from sendmail to filter incoming emails into correct mailboxes. Is that done while the incoming SMTP connection to sendmail is still active or is ...
1
vote
1answer
698 views

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(/...
3
votes
1answer
517 views

Where does an unconfigured procmail put incoming mails?

When restarting my postfix with a slightly wrong config, a few mails that were waiting in the mail-queue were apparently delivered via procmail mail.log.0:Dec 26 00:53:38 h2229778 postfix/local[27243]...
3
votes
1answer
926 views

Email, forwarded by procmail, rejected by Gmail

EDIT Let's ignore for a while all that I have written below and refrase the question: If you have your own domain name and you want to get email for that domain into your Gmail inbox (not Google Apps)...
1
vote
2answers
496 views

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/...
1
vote
0answers
1k views

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 ...
1
vote
1answer
671 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. ...
2
votes
1answer
59 views

Sane Spam Strategy [closed]

Right now I'm using spamd to score spam and then procmail to put it in user's .Spam Maildir folder and then manually running sa-learn on .LearnAsSpam and .LearnAsHam and then also manually just ...
1
vote
1answer
2k views

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 ...
0
votes
2answers
288 views

Procmail recipe with capturing group

Trying to direct email based on a regex match. I know I can do this: echo | mail -s test1 me-route2 with this recipe: * ^To:.*me-route2\@ :0: /home/me/folder-route2/afile What I'd like to do is ...
1
vote
1answer
1k views

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 ...
0
votes
1answer
544 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
1answer
786 views

Procmail: Inject sender address into the message body

How do I inject the sender's address, or any other header, into the message body using procmail? I've already found how to inject a static string into the message body, which works fine: :0bfw | ...
2
votes
1answer
668 views

Need linux milter solution to log email body into database

We exchange emails with various clients and vendors. I am trying to implement a solution where all the email communications between our rep and the client or vendor is saved in our database so in our ...
1
vote
1answer
596 views

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 ...
0
votes
0answers
277 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
1answer
2k views

Sendmail.mc: alias all incoming e-mails to one account

I need to alias all mail coming from another SMTP server to this one account "myinbox". The system in question is to receive all e-mail on the domain, if that's any help. http://william.shallum.net/...
-1
votes
3answers
2k views

Procmail or/and dovecot? [closed]

At my class project I'm asked to install and configure a mail service, to do that I have to : Install and configure postfix Install and configure Procmail Configure postfix authentification with SASL ...
0
votes
1answer
509 views

check with procmail if a file exists and set a option

I want to check with procmail if a file exists and depending on this set DROPPRIVS=yes if its not true stay with DROPPRIVS=no Why is this not working? :0 w * `test -f $HOME/mail/.procmailrc` ?? 1 { ...
1
vote
1answer
1k views

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 ...
0
votes
2answers
543 views

using sendmail with only non system users

I need to use sendmail without any system users. The only problem that still exists in my configuration is that FEATURE(virtusertable) wants a final systemuser on RHS in my virtusertable like this: @...