Re: procmailrc to match body

Juliani Moon <[email protected]> Mon, 2 Feb 2015 15:35:43 -0600
Newsgroups gmane.mail.procmail
Message-ID <CAE83F4DYvQV5q+vtcLGqQqSpeAfBCZW6Pm0=DCf28PxSy3kkgA@mail.gmail.com>
Thank you for the reply. Problem solved (more below)

On Sat, Jan 31, 2015 at 3:38 PM, LuKreme <[email protected]> wrote:

> On Jan 31, 2015, at 2:13 PM, Julianony M <[email protected]> wrote:
> > I wrote a set of procmailrc recipes to "
> ​​
> quarantine" certain category of
> > incoming mails to my site. It works with 3 simple steps: when a mail
> meets
> > certain criteria, it triggers a "quarantine" process by (1) holding the
> mail while send a confirmation mail to the sender; (2) when the
> confirmation mail is replied by the sender, the mail gets delivered
> normally; (3) when the confirmation mail is bounced, the mail is trashed.
>
> This is a “prove you love me” scheme and it *will* get you flagged as a
> spam source, so you might want to rethink.
>

​Thank you for the useful alert.
My "
​
quarantine" recipes is placed after SpamAssassin and a bunch of
spam filters among other recipes, and to act upon only a smaller
window of incoming mails on which human resource is greatly wasted.
One other purpose of the "
​
quarantine" is to collect new spams to
periodically feed to SpamAssassin.

​I wish to learn more about the the process ​how these might generate
negative impact on my site.


> which fell into "Mail-error". It appears the body match failed. Any
> advice how the recipe should be modified in order to catch this?
>
> What do verbose logs show?
>

​procmail: Match on "^.*Verify the mail you sent: \/[0-9a-zA-Z\.]+"
procmail: Assigning "MATCHED=20150130.091948TPMSFSFZL"
procmail: Executing " cat "$MAILDIR/QUARRENTEEN/$MATCHED" >> $SPAM;"
cat: /xxxx/xxxx/xxxx/QUARRENTEEN/20150130.091948TPMSFSFZL: No such file or
directory
procmail: Program failure (1) of " cat "$MAILDIR/QUARRENTEEN/$MATCHED" >>
$SPAM;"
procmail: Rescue of unfiltered data succeeded
procmail: Assigning "LASTFOLDER=/var/mail/Mail-error"
procmail: Opening "/var/mail/Mail-error"

This explains all. ​I need to improve my recipe to catch these.​
​Thank you!

joe​

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
[email protected]
http://mailman.rwth-aachen.de/mailman/listinfo/procmail