Tony McClenny:
Although successfully using procmail in each system user's directory.
I am thus far failing in my attempt to setup a system-wide procmail
that will scan all mail prior to delivering to the individual user's
procmail setup. Each user can manage their own
/home/userid/procmail/.generalrc file for any additional screening of
incoming mail that they desire.
Why did you choose to not use the defaults?
/etc/procmailrc
/etc/procmailrcs/
~user/.procmailrc
I have the following in my /etc directory:
drwxr-xr-x 3 root root 4096 Dec 8 09:50 procmail
-rwx--x--x 1 root root 2568 Dec 8 09:59 .procmailrc
I have my system procmail file mail setup as follows:
/etc/.procmail
In the ls-output above, there is no /etc/.procmail, so I assume that you
meant /etc/.procmailrc, which is a non-standard name too.
There should be an /etc/procmailrc (without the dot). Or did you change
the procmail-executable?
The .procmail file contains:
SHELL=/bin/sh
PMDIR=/etc/procmail
LOGFILE=$PMDIR/log
Not an ideal place to put the central LOGFILE.
LOG=" "
Why not a newline?
LINEBUF=4096
PATH=$HOME/bin:/bin:/usr/bin:/usr/local/bin
Setting PATH is normally not needed.
VERBOSE=on
LOGABSTRACT=no
MAILDIR=/etc/procmail/mail
DEFAULT=/var/spool/mail/${LOGNAME}
Setting DEFAULT is normally not needed.
ADMINFOLDER=${DEFAULT}/admin.incoming
BULKFOLDER=${DEFAULT}/bulk.incoming
Normally these would be based on $MAILDIR.
For maildir-type delivery, the should end in a slash.
FORMAIL=/usr/local/bin/formail
SENDMAIL=/usr/sbin/sendmail
Setting SENDMAIL is normally not needed.
INCLUDERC=$PMDIR/generalrc
INCLUDERC=$PMDIR/mailinglistrc
My /etc/procmail directory contains:
drwxr-xr-x 3 root root 4096 Dec 8 09:50 .
drwxr-xr-x 83 root root 8192 Dec 8 09:50 ..
-rw-r--r-- 1 root root 160 Dec 8 09:49 autoreply.msg
-rw-r--r-- 1 root root 465 Dec 8 09:49 autoreplyrc
drwxr-xr-x 2 root root 4096 Dec 8 09:49 backup
-rw-r--r-- 1 root root 13795 Dec 8 09:53 generalrc
drwxr-xr-x 2 root root 4096 Dec 8 10:18 mail
-rw-r--r-- 1 root root 391 Dec 8 09:49 refused.msg
The current all-system procmail setup in /etc does not process any
incoming mail.
That must be because you don't have an "/etc/procmailrc".
The individual user's /home/userid/procmail setup is
processing each message sent to the specific user.
Ack.
--
Grtz, Ruud
____________________________________________________________
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