procmail
[Top] [All Lists]

my global /etc/procmailrc gets ignored

2003-07-15 14:08:29
First off, I'd like to admit that I'm new to procmail configuration and mail configuration in general. I recently set up procmail to provide spamassassin filtering. It works fine with .procmailrc files, but not with the global /etc/procmailrc file. I'd like it to look at the global /etc/procmailrc file so that I can keep track of filtering recipes for all users in one file. It's unlikely that any users will need to create their own recipes.

I'm sure I'm missing something simple, but I can't figure it out.

I looked in the mailing list archives for my problem, but couldn't find anything for my specific problem.

I'm new at sendmail and had to copy the lines from another sendmail file and edit them to correct the path to procmail (no m4 sendmail utilities on this system), so I may have made a mistake there, but wouldn't know it if I did.

I've included relevant config information below.

Thanks in advance

Prentice

<procdiag.sh output>

$ ./procdiag.sh
# procdiag v20030707.1755
# procdiag run at Tue Jul 15 16:45:35 EDT 2003

# general account information:
USER: prentice (prentice)
GROUPS: staff prv_hbond prv_dna prv_wormhole prv_ndbdb prv_ndbviz prv_thymine pr v_bend prv_cytosine prv_uracil prv_ndb-mirror-0 prv_twist prv_roll prv_roll prv_
monomer prv_rcsb-dev
SHELL: /bin/tcsh
MAIL: /usr/mail//prentice
hostname: ndb-mirror-0 ()
FQDN: ndb-mirror-0.rutgers.edu
HOME: /home/prentice

# user info from /etc/passwd (password is masked):
prentice:x:32220:12026:Prentice Bisbal,Doolittle Annex,445-0103:/home/prentice:/
bin/tcsh

# system identifiers (if discernible):
OSTYPE:
MACHTYPE:
UNAME: IRIX64 ndb-mirror-0 6.4 02121744 IP27

# The current shell path is (not to be confused with the MTA-defined path):
PATH: /usr/sbin:/usr/bsd:/sbin:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin:/sgi62/
bin:/sgi62/teTeX/bin:/usr/java/bin:/usr/etc:/etc

# formail and procmail information (as per versions in the current path):
0755 1 root sys 62592 Mon Jul 7 15:50:58 2003 /usr/local/bin/formai
l
formail v3.22 2001/09/10

6755 1 root mail 144976 Mon Jul 7 15:50:58 2003 /usr/local/bin/procma
il
procmail v3.22 2001/09/10
Locking strategies:     dotlocking, fcntl(), lockf(), flock()
Default rcfile:         $HOME/.procmailrc
Your system mailbox:    /var/mail/prentice

# various procmail configuration elements:
mailbox="/var/mail/prentice"
mta="/usr/lib/sendmail"
host="ndb-mirror-0"
version="3.22"
linebuf="2048"
shell="/bin/tcsh"
path="/home/prentice/bin:/bin:/local/bin:/usr/local/bin:/usr/bin/X11:/usr/X11R6.
1/bin"
shellmetas="&|<>~;?*["

# usage banner from grep
Usage: grep [-E|-F][-c|-l|-q][-xhbnsviyC] -e pattern_list [-f pattern_file] [fil
e ...]

# sed version or other identifier
0755  1 root     sys       185388 Wed Mar 12 17:06:11 1997 /sbin/sed
/sbin/sed:
$Header: IRIX 6.4:1263561120 built 01/23/97 at borg:/xlv22/ficus-jan23/r
oot $

# sh info (intended to show whether sh is sh or a symlink to another shell)
-rwxr-xr-x    1 root     sys       390564 Mar 12  1997 /sbin/sh

# sendmail program information (from procmail's $SENDMAIL):
4755  1 root     sys       656300 Tue Nov  2 07:54:35 1999 /usr/lib/sendmail
Version 8.9.3
 Compiled with: MAP_REGEX LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND
                NDBM NETINET NETUNIX NIS QUEUE SCANF SMTP XDEBUG

============ SYSTEM IDENTITY (after readcf) ============
      (short domain name) $w = ndb-mirror-0
  (canonical domain name) $j = ndb-mirror-0.rutgers.edu
         (subdomain name) $m = rutgers.edu
              (node name) $k = ndb-mirror-0
========================================================


# Determining Mlocal via sendmail diagnostic invocation
mailer 3 (local): P=/usr/local/bin/procmail S=182/181 R=180/179 M=0 U=0:0 F=/59:
@ADFMPSfhlnqsw| L=0 E=\n T=DNS/RFC822/X-Unix A=procmail -t -Y -a $h -d $u
mailer 8 (procmail): P=/usr/local/bin/procmail S=185/184 R=183/184 M=0 U=0:0 F=9
DFMPShnu L=0 E=\n T=DNS/RFC822/X-Unix A=procmail -Y -m $h $f $u
NOTE: procmail appears to be the LDA

# contents of /home/prentice/.forward (if it exists)
NOTE: no /home/prentice/.forward
./procdiag.sh[322]: ==: unknown test operator

# file permissions and ownership:
0400 1 prentice sys 1265 Tue Jul 15 16:19:24 2003 /home/prentice/.procm
ailrc
NOTE: There is no /home/prentice/.forward file.
0755 18 prentice staff       4096 Tue Jul 15 16:32:37 2003 /home/prentice/
0444  1 root     sys         1265 Tue Jul 15 16:18:49 2003 /etc/procmailrc
NOTE: There is no /etc/procmailrcs file.
NOTE: There is no /home/prentice/Mail file.
NOTE: There is no /home/prentice/mail file.
NOTE: There is no /home/prentice/.procmail file.
0660 1 prentice mail 320989 Tue Jul 15 16:42:42 2003 /var/mail/prentice
CAUTION: /var/mail/prentice perms exceed 7755: curb back to 0640
1777  6 root     mail        4096 Tue Jul 15 16:45:37 2003 /var/mail/

# procdiag report end

</procdiag.sh output>

$ man procmail | grep global
       /etc/procmailrc        initial global rcfile
       uses the same lockfiles (local or global) you specified in
       If procmail is not installed globally as the default  mail

< relevant lines from sendmail.cf>

Mlocal, P=/usr/local/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=EnvFromL/Hdr
FromL, R=EnvToL/HdrToL,
                T=DNS/RFC822/X-Unix,
                A=procmail -t -Y -a $h -d $u


Mprocmail, P=/usr/local/bin/procmail, F=DFMSPhnu9, S=EnvFromSMTP/HdrFromSMT
P, R=EnvToSMTP/HdrFromSMTP,
                T=DNS/RFC822/X-Unix,
                A=procmail -Y -m $h $f $u

</ relevant lines from sendmail.cf>





_______________________________________________
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>
  • my global /etc/procmailrc gets ignored, Prentice Bisbal <=