On Tuesday 20 January 2004 23:11, Carlos E. R. wrote:
* ^Subject:.**SPAM** /home/spambox/Maildir/
The mail gets delivered fine, except that it belongs to root instead of user spambox.
Ah. That must be because you you are talking of '/etc/procmailrc', aren't you? Yes, sorry, I'll be more clear next time :-)
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!)
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. Thanks