I've done a fair amount of digging and haen't found an answer for this.  The short story is that when I run procmail and SA on a per-user basis via a .procmailrc script in the user directory, everything works fine.  As soon as I remove the .procmailrc script and add /etc/procmailrc, the user's whitelist/blacklist stops working.
 
From what I've been able to determine, I *think* what's happening is that when procmail is running via the user rc file, SA is being run as the proper user and the proper user SA prefs are being called.  However, when I use the sitewide rc file, SA seems to be being called as root, and root's user SA prefs are being called instead.   Any suggestions?
 
procmailrc:
-------------------
# send mail through SpamAssassin
:0 fw
* < 256000
| /usr/bin/spamc -f
:0
*^Subject: \*\*\*\*\*SPAM
mail/SPAM
 
 
syslog when run as .procmailrc in userdir:
------------------
Jan 14 02:39:38 hildegard sm-mta[24716]: i0E9dbb4024716: from=<[EMAIL PROTECTED]>, size=207
9, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, proto=ESMTP, daemon=MTA,
 relay=shawidc-mo1.cg.shawcable.net [24.71.223.10]
Jan 14 02:39:38 hildegard spamd[24696]: connection from localhost [127.0.0.1] at port 38227
Jan 14 02:39:38 hildegard spamd[24721]: info: setuid to paul succeeded
Jan 14 02:39:38 hildegard spamd[24721]: processing message <[EMAIL PROTECTED]
ilda> for paul:1000.
Jan 14 02:39:42 hildegard spamd[24721]: identified spam (55.9/5.0) for paul:1000 in 3.5 seconds
, 2390 bytes.
Jan 14 02:39:42 hildegard sm-mta[24717]: i0E9dbb4024716: to=<[EMAIL PROTECTED]>, delay=00:00:04,
 xdelay=00:00:04, mailer=local, pri=32301, dsn=2.0.0, stat=Sent
 

syslog when run as /etc/procmailrc:
-------------------
Jan 14 02:41:58 hildegard sm-mta[24775]: i0E9fwb4024775: from=<[EMAIL PROTECTED]>, size=207
8, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, proto=ESMTP, daemon=MTA,
 relay=shawidc-mo1.cg.shawcable.net [24.71.223.10]
Jan 14 02:41:58 hildegard spamd[24696]: connection from localhost [127.0.0.1] at port 38229
Jan 14 02:41:58 hildegard spamd[24780]: info: setuid to root succeeded
Jan 14 02:41:58 hildegard spamd[24780]: Still running as root: user not specified with -u, not
found, or set to root.  Fall back to nobody.
Jan 14 02:41:58 hildegard spamd[24780]: processing message <[EMAIL PROTECTED]
ilda> for root:65534.
Jan 14 02:41:59 hildegard spamd[24780]: clean message (2.7/5.0) for root:65534 in 1.2 seconds,
2389 bytes.
Jan 14 02:41:59 hildegard sm-mta[24776]: i0E9fwb4024775: to=<[EMAIL PROTECTED]>, delay=00:00:01,
 xdelay=00:00:01, mailer=local, pri=32300, dsn=2.0.0, stat=Sent

 

Reply via email to