SpamAssassin accessibility

in

 

1. Automatic SA learning

Users shall be able to teach spamassassin that some mail IS spam either by forwarding it to spam@ourdom.com or by putting in the Общий Спам folder. Similarly, users shall be able to teach spamassassin that another mailis NOT spam either by forwarding it to notspam@ourdom.com or by putting in the Общий Неспам folder.

  • Create public folders for spam/notspam: log in webmail as public and create the PublicSpam and PublicNotSspam folders.
  • Set access rights as:
#pubadmin = Lookup, Select, Seen, Flags, Insert, Post, Create, Delete, Admin
anyone@   = Lookup, Select, Seen, Flags, Insert, Post, Create, Delete
  • Switch back to admin interface, go to Users/Domains/ourdom.com/Objects/Template and create Initial Mailbox Aliases:
Общий Спам     - ~public/PublicSpam
Общий Неспам   - ~public/PublicNotSpam
  • Create these aliases manually for all existing users via their web interface.
  • Download the /etc/localsite/cgpro/cgp2sa script
  • Add mail router rules for pipe:
<spam@*>    = "queue[SPAM] [STDERR] cgp2sa spam"@pipe
<notspam@*> = "queue[SPAM] [STDERR] cgp2sa ham"@pipe
  • Add spam,spam@*,notspam,notspam@* to the site-wide local groups rule
  • Install the spam folder cron script
    • Download /etc/localsite/cgpro/folders2sa and make the script executable.
    • Install Net::IMAP::Simple and Net::IMAP::Simple::SSL using cpan2rpm or cpan.
    • Configure server settings in the script.
    • Create link to this script in /etc/cron.hourly.
  • Add a few rules in local.cf so that internal CGP headers are not taken into account by auto-learner
  • Restart spamd
service spamassassin restart

2. PHP interface for spam preferences

  • Install PHP files:
cp -r /usr/share/cgpav/php /var/www/spamprefs
  • Edit configuration in /var/www/spamprefs/config.php:
cgpro_admin = postmaster
cgpro_admin_password = password
DSN = mysql://spamassassin:spampass@localhost/spamassassin
  • Add descriptor in /etc/httpd/vhosts/admin.conf
Alias /spamprefs /var/www/spamprefs
<Location /spamprefs>
  Include vhosts/authorize.inc
  DirectoryIndex index.php
</Location> 
  • Restart Apache
service httpd restart

3. Spam Widgets for Webmail

TODO

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
To prevent automated spam submissions leave this field empty.