SpamAssassin accessibility

 

1. Automatic SA learning

Users shall be able to teach spamassassin that some mail IS spam either by forwarding it to [email protected] or by putting in the Общий Спам folder. Similarly, users shall be able to teach spamassassin that another mailis NOT spam either by forwarding it to [email protected] 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
[email protected]   = 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<
<[email protected]*>    = "queue[SPAM] [STDERR] cgp2sa spam"@pipe
<[email protected]*> = "queue[SPAM] [STDERR] cgp2sa ham"@pipe<
  • Add spam,[email protected]*,notspam,[email protected]* 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<