The Tuesday 2004-01-27 at 16:34 +0200, isofroni@cc.uoi.gr wrote: Please don't copy the full message to which you are answering, everybody has it already.
I would also like to ask you if i can change the spam file , where the spams are achived.
For example if my user test receive a spam the procmail is going to create a file
:0 * ^X-Spam-Status: Yes $HOME/Mail/in_spam
in_spam with the default onwership root:root
Can be that changed during the creation, because i have to change the ownership for every user receives a spam for a first time.
You misunderstood the idea. I said you could create a '/etc/procmailrc' file with only one rule: :0fw | /usr/bin/spamc This triggers processing by SpammAssassin, but not filtering: it will not move spam do a diferent folder. For filtering, every user has two possibilities: 1) Create his own '/home/test/.procmailrc' file. And '/home/john/.procmailrc', and '/home/mike/.procmailrc' and '/home/isofroni/.procmailrc' - that is, one for every user that wants to use procmail for his personal delivery. That file must have one rule at the beginning: :0 * ^X-Spam-Status: Yes $HOME/Mail/in_spam and spam will be delivered to file '/home/isofroni/Mail/in_spam' (and '/home/john/Mail/in_spam', and '/home/mike/Mail/in_spam', and '/home/test/Mail/in_spam'... etc. It will go to that file with his user ownersship (test:users, john:root, etc). Of course, he can change that file. So, with the above rule, spam to user 'test' will go to '/home/test/Mail/in_spam'. Non spam will be left at '/var/spool/mail/test' - but this can be changed if the user wants to. Every user must configure his own rules - but you can define an skeleton in '/etc/skel/' for every new user. 2) If any user does not want to use procmail, then simply he doesn't create his .procmailrc file. Instead, he has to define a rule or filter in whatever program he uses to see his mail, like kmail, mozilla, evolution... etc. He has to detect a header containing "X-Spam-Status: Yes", and if it matches, move the email to wherever he wants. This is a global setup, because spamassassin runs globally. But every user has to define his own filtering. It is not the only way to set it up, just one of the possible ways. For example, I don't have '/etc/procmailrc'. You really should read the documentation in: /usr/share/doc/packages/spamassassin/* (specially about spamd) /usr/share/doc/packages/perl-spamassassin/* /usr/share/doc/package/sendmail/* Everything I said is there, and I can not explain every detail. For example, if you have many users, this method might not be the best. Have a look at the spamassassin web page for more methods. -- Cheers, Carlos Robinson