From: "Bob McClure Jr" <[EMAIL PROTECTED]>

On Tue, Aug 09, 2005 at 09:29:07AM +0200, Joe Borg wrote:
Hi,
I've setup procmail so as to not deliver mails with a Spam score of 10 or
greater, as follows:

 #Mail that scores 10 or more is not delivered to users.
:0
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*
/var/spool/mail/spam
  ^^^^^^^^^^^^^^^^^^^^ Silliness.

As may be observed from the above, mails with a Spam score of 10 or greater
should be delivered to a special mailbox /var/spool/mail/spam. So far,
however, only one spam mail has been delivered to this mailbox. Moreover,
spam that should have ended up in this mailbox (such as one with the header
below) is instead still being delivered to the user mailboxes.

X-Spam-Level: ****************
X-Spam-Status: Yes, score=16.2 required=5.0

I find this behaviour very odd. Does anyone know what I should do to get
this to work properly?
Thanks,

Joe

Is this recipe in /etc/procmailrc or in each user's .procmailrc?

If the former, I don't know what the problem is.  If the latter, at
that point procmail assumes the UID of the user.  So the first user's
email that creates /var/spool/mail/spam owns it and no one else can
write to it.  You may need to make it world-writable.

Root should probably create it and set privileges to 666. If procmail
allows this as a destination for writing email you're happy. If not
you may have to have "/var/spool/mail/spam/$USER" as a destination
if "$HOME/mail/spam" is not acceptable.

{^_^}

Reply via email to