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.

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

procmailrc recipe: turn on VERBOSE conditionally?

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
128 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
195 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
69 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
482 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
36 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
2answers
468 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
62 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
749 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
268 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
334 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
529 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
186 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 ...
3
votes
1answer
453 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 '<...
0
votes
1answer
1k 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
662 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
44 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
46 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 "...
0
votes
1answer
580 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
458 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
667 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
364 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 ...
1
vote
3answers
831 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
513 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(/...
2
votes
1answer
244 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
656 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
345 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
778 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
537 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
57 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
205 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
816 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
415 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
558 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
556 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 ...
0
votes
1answer
479 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
267 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
1k 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
423 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
446 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: @...
1
vote
2answers
594 views

Fixing intermittent file locking issue in Procmail

Has anyone seen the following issue with procmail file lock timeouts when writing to a mbox file? This occurs every couple of weeks for a user with the following procmailrc: :0 c: #copy all ...
2
votes
1answer
1k views

Decrypt incoming pgp mail with procmail

Currently I have a running Postfix server which delivers incoming mail through procmail. That works fine but now I want to decrypt any incoming mail which is encrypted with pgp automatically. So I ...
0
votes
2answers
910 views

Procmail - Replace From with text from within email

I am trying to use Procmail to filter through mail that goes to my ticket channel in WHMCS. It works fine as far as piping goes. But emails from the Zopim live chat module on the site need filtering ...
0
votes
1answer
2k views

Procmail to delete mail from senders

I'm looking to delete all mail addressed from "root@", where the address could originate from any domain. Am I right in thinking the line below would achieve this? [using sendmail] :0 * ^From.root* /...
1
vote
2answers
1k views

Configuring Postfix, Spamassassin and Procmail to put spam in a dedicated folder

I'm not sure if SF is the good place for that, so sorry if it's not the case. I'm administrating a Debian server for our company's emails and I'm trying to have the emails flagged as spam by ...
1
vote
1answer
2k views

How to use procmail to get a message into a variable

I'm trying to get changes logged by our RANCID install to be logged and sent to an internal comms broadcasting system we have. I can talk to this directly via netcat, for example this will work: echo ...