Hey all,

I'm running into two interesting problems with my SA configuration, that 
others may have run into also:

1. I'm invoking SA from /etc/procmailrc, which works well. But I'm 
trying to keep a copy of everything that SA tags as spam, using the 
following:

====
:0fw
| /usr/local/bin/spamassassin -Pa

:0c:
* ^X-Spam-Status: Yes
| gzip >> /var/log/spam.mbox.gz
====

When the message comes through though, procmail is creating a lockfile 
/var/log/spam.mbox.gz.lock (as it should), but the lock is never 
released (deleted). Subsequent spam messages that come in hang for a 
long time and are never appended. The lockfile (and mailbox) are owned 
by root, who's the only user that can modify them. Should I be 
specifiying the lockfile explicitly?

I ended up changing the recipe to "! spam" and aliasing "spam" to "| 
gzip >> /var/log/spam.mbox.gz" which lets sendmail do the appending. 
This unfortunately changes the headers, decreases performance (since SA 
is called on the bounced message, again), and seems like the Wrong Thing 
(tm).

Any ideas on why the above procmailrc doesn't work?

2. Am I correct in assuming that if I'm using spamc/d, I need to invoke 
"| spamc -u $LOGNAME" from /etc/procmailrc?


TIA,

Brad Koehn
[EMAIL PROTECTED]


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to