In response to my own post, I have been scanning the mailing list archives
and used someone else's /etc/procmailrc file
# Logging
MAILDIR=$HOME/mail
PMDIR = $MAILDIR/.Pm
PMSRC = $PMDIR
VERBOSE=ON
LOGABSTRACT = all
LOGFILE=$MAILDIR/.Pm/procmail.log
VERBOSE=ON
LOCKFILE=$MAILDIR/.Pm/lockmail
MONAT=`date +%b-%Y`
SHELL=/bin/sh
PATH=$HOME/bin:/bin:/usr/bin:/usr/local/bin
DATE = `date +%B-%Y`
#INCLUDERC = $PMDIR/rules.rc
DROPPRIVS=yes
VERBOSE=ON
:0fw
| /usr/bin/spamassassin
:0
* ^X-Spam-Status: Yes
$HOME/mail/Junk
It now creates a log file:
procmail: [551] Tue Sep 8 10:02:02 2009
procmail: No match on "^X-Spam-Status: Yes"
procmail: Assigning
"PATH=/home/rjh/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin"
procmail: Rcfile: "/home/rjh/.procmailrc"
procmail: Assigning "DROPPRIVS=YES"
procmail: Assuming identity of the recipient, VERBOSE=off
procmail: Assigning "VERBOSE=ON"
procmail: Assigning "INCLUDERC=/home/rjh/mail/.Pm/vacation.rc"
procmail: Couldn't read "/home/rjh/mail/.Pm/vacation.rc"
procmail: Assigning "VERBOSE=ON"
procmail: Locking "/var/spool/mail/rjh.lock"
procmail: Assigning "LASTFOLDER=/var/spool/mail/rjh"
procmail: Opening "/var/spool/mail/rjh"
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/spool/mail/rjh.lock"
procmail: Notified comsat: "rjh(_at_)556:/var/spool/mail/rjh"
From rjh(_at_)mail(_dot_)sharpbus(_dot_)com Tue Sep 8 10:02:01 2009
Subject: FW: sharp567 vacation on
Folder: /var/spool/mail/rjh
5446
procmail: Unlocking "/home/rjh/mail/.Pm/lockmail"
However, it still cannot read my vacation.rc file, any clues why that would
not work?
Thanks
Rob
From: procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
[mailto:procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)de] On Behalf Of
Rob Henry
Sent: September 8, 2009 9:16 AM
To: procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
Subject: Help needed setting up simple procmail setup
Hi, I have installed postfix with procmail. Version is v3.15.2.
This is my /etc/procmailrc file:
# Logging
#LOGFILE=/var/log/procmail.log
#VERBOSE=1
#LOGABSTRACT=1
LOGFILE=$HOME/mail/procmail.log
DROPPRIVS=yes
:0fw
| /usr/bin/spamassassin
:0
* ^X-Spam-Status: Yes
$HOME/mail/Junk
As well I have this .procmailrc file in my home/user/ directory
# Comment: Set VERBOSE=on in next line when debugging.
PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
SHELL=/bin/sh
VERBOSE=on
# Replace "mail" with the name of your mail directory.
# If you use Pine, your mail directory is called mail.
# This directory must exist before you start using procmail.
MAILDIR=$HOME/mail/
#DEFAULT=$MAILDIR
# Directory for storing procmail log and rc files
PMDIR=$HOME/Procmail/
LOGFILE=$HOME/log
# Next line for testing. Add # at beginning when not needed.
#INCLUDERC=$PMDIR/rc.testing
# To sort mailing list mail to a folder, remove # from next line.
#INCLUDERC=$PMDIR/rc.maillists
# To send vacation message, remove # from next INCLUDERC line.
# In most cases, next line should be last in this file.
INCLUDERC=$HOME/rc.vacation
My problem is that procmail does not seem to log, or process any files. On
some occasions I will get an entry in my maillog file that says.
Sep 2 13:29:42 linux procmail[3646]: Error while writing to "/home/rjh/log"
Or other similar errors. I have searched the web and have changed all
permissions on all files to what is suggested but still I just can seem to
get it to work. I know I'm missing something stupid. Can anyone offer some
suggestions.
Centos 5.3
Linux 2.6.18-92.1.22.el5 on x86_64
Rob
636OQ33!P4901(_at_)8
Up To Date Bus Cancellations at www.sharpbus.com
This communication may contain privileged or other confidential
information.If you are not the intended recipient, or believe that you have
received this communication in error, please do not print, copy, retransmit,
disseminate, or otherwise use the information. Please indicate to the sender
that you have received this email in error, and delete the copy you
received.
**This message has been scanned on 8/9/2009 by GFI at SHARPBUS.COM and is
virus free.**
Up To Date Bus Cancellations at www.sharpbus.com
This communication may contain privileged or other confidential information.
If you are not the intended recipient, or believe that you have received this
communication in error, please do not print, copy, retransmit, disseminate, or
otherwise use the information. Please indicate to the sender that you have
received this email in error, and delete the copy you received.
**This message has been scanned on 8/9/2009 by GFI at SHARPBUS.COM and is virus
free.**
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail