On 18-Mar-11 6:54, Rafael P. Abreu Rosa wrote:
I would like to configure spam buttons in squirrelmail to learn spamassassin.


oke here what I got on my docs

install spam buttons
This plugin will place "Spam" and/or "Not Spam" buttons on the mailbox message list page as well as on a single message view page. The action associated with the buttons (as well as the button text) can be configured to suit most any spam reporting system. Both reporting by email and reporting by executing a command on the server are supported.

http://www.squirrelmail.org/plugin_view.php?id=242

so you install the plugin the same as other squirrelmail's plugin
- download
- extract
- put on squirrelmail's plugin
- add it to squirrelmail's config

then below is my spambutton config.php compared with config.php.sample
[root@svr-m1 spam_buttons]# diff config.php config.php.sample
43c43
< $show_spam_buttons_on_message_list = 0;
---
> $show_spam_buttons_on_message_list = 1;
146,151d145
< #$is_spam_shell_command = 'sudo -u root /usr/bin/sa-learn --spam';
< #$is_not_spam_shell_command = 'sudo -u root /usr/bin/sa-learn --ham';
< $is_spam_shell_command = 'sudo -u vpopmail -H /usr/bin/sa-learn --spam';
< $is_not_spam_shell_command = 'sudo -u vpopmail -H /usr/bin/sa-learn --ham';
<
< //
157,158c151,152
< //$is_spam_shell_command = '/usr/bin/sa-learn --spam';
< //$is_not_spam_shell_command = '/usr/bin/sa-learn --ham';
---
> $is_spam_shell_command = '';
> $is_not_spam_shell_command = '';

the summary is, to make SA learn spam/ham from other account you need to invoke this command
sudo -u vpopmail -H /usr/bin/sa-learn --spam
sudo -u vpopmail -H /usr/bin/sa-learn --ham

you may want also maintain your Spam folder inside webmail.
see http://wiki.qmailtoaster.com/index.php/Maintain_Trash_and_Spam_folder


---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
   Vickers Consulting Group offers Qmailtoaster support and installations.
     If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
    Please visit qmailtoaster.com for the latest news, updates, and packages.
To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]


Reply via email to