The Wednesday 2004-01-21 at 17:49 +0200, Hans du Plooy wrote:
I think the rule should be: :0 * ^Subject:.**SPAM** ! spambox
I think that when this rule executes, the mail is forwarded to that user, sending it back to postfix or sendmail - who will again call procmail for the user spambox: this run will read again /etc/procmailrc, so we have a loop. Ie, the above rule will not work properly. Which is why I'm trying to drop the mail directly. I also tried putting another instance of the recipy in above the spamassassin recipy, but it didn't work - I still get two of each spam (as if I'm not getting enough spam as it is!)
Perhaps there is a way to detect, in /etc/procmailrc, that mail has already been forwarded, and that we are now in the part of the process belonging to the 'spambox' user. Maybe there is a header that changes in the process that you can check. Perhaps a ^TOspambox rule, or a forwarded to, or originally to, I don't know. Look carefully at your headers, for one that has been created in the process. If there is no such header, you can add it yourself; at worst, use formail for that. Or reread again the examples man page, maybe we are overlooking something.
Somehow there's got to be a way to change the permissions. I was thinking of setting a file creation mask on the Maildir/new directory, but umask didn't help. The files still belong to root instead of spambox.
Don't know. -- Cheers, Carlos Robinson