procmail
[Top] [All Lists]

Re: Procmail isn't matching when it should (Redhat 8.0)

2003-01-02 16:41:26

Folks,

On 11th December 2002, I posted to this list asking for help with my
procmail problems on Red Hat 8.0.  In a nutshell, procmail was processing
messages but was not recognizing when a rule should match.  Sean Straw
(via this list) was kind enough to try my .procmailrc in his testing
environment and reported that it worked for him.

Not long after I filed Red Hat bug # 79608
(http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=79608), Alessandro
Forghieri from Italy e-mailed me some helpful suggestions which led me to
the eventual solution.  See the URL above for more details.

In summary, if you're having problems with SpamAssassin and Procmail on
Red Hat 8.0 or later, try the following .procmailrc file or something
similar:


[...begin quote of ~/.procmailrc...]
SHELL=/bin/sh
LOGFILE=logs/procmail
VERBOSE=yes
LOGABSTRACT=all

:0c:
mail-backup

:0ic
# Keep a backup of each of the last 128 messages received
| cd mail-backup && /bin/rm -f dummy `/bin/ls -t msg.* | /bin/sed -e 1,128d`

:0fw
# Don't process anything over 256K - most spam is smaller than this,
# and we have limited system resources.
* < 256000

      | /usr/bin/spamc -f

      :0e
      {
         EXITCODE=$?
      }

:0:
* ^X-Spam-Flag: YES
mail/spam

:0:
* ^TO_rt-users(_at_)lists\(_dot_)fsck\(_dot_)com
mail/rt-users

:0:
* ^TO_outlook-users(_at_)yahoogroups\(_dot_)com
mail/outlook-users

:0:
* ^TO_procmail(_at_)Lists\(_dot_)RWTH-Aachen\(_dot_)DE
mail/procmail-list

:0:
* ^TO_openldap-software(_at_)OpenLDAP\(_dot_)org
mail/openldap-software

:0:
* ^TO_amanda-users(_at_)amanda\(_dot_)org
mail/amanda-users

:0:
* ^TO_achievo(_at_)achievo\(_dot_)org
mail/achievo

:0:
* ^TO_imap.*washington\.edu
mail/imap
[...end quote of ~/.procmailrc...]


I don't know exactly why my old method of invoking SpamAssassin caused the
problems it did, but I do know that it's working now with my new
.procmailrc file.

-- 
Graham Freeman
Manager of Information Technology
Far Western Anthropological Research Group, Inc.
+1 530 756 3941 ext 111
graham(_at_)farwestern(_dot_)com





_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>
  • Re: Procmail isn't matching when it should (Redhat 8.0), Graham Freeman <=