oSpam: a system-wide anti-spam solution for qmail and vmailmgr, ----- based on perl, mysql, ifspamh and SpamAssassin (c) 2000 Olivier Mueller $Id: INSTALL,v 1.10 2001/02/24 21:47:30 swix Exp $ $Source: /cvsroot/omail/ospam2/INSTALL,v $ oSpam uses omail-admin as web frontend which manage the SpamAssassin sql userprefs table. oSpam itself is a Perl script which will look at this table, and dynamicaly (on a cronjob basis) create/ modify/remove .qmail-files according to the users preferences. It will take care not overwritting existing .qmail-x files, and keeps md5sum tracks of the created files to make sure it will only remove self- created files. SETUP: ------ 1. you need: - a mail system running qmail and vmailmgr - spamassassin 2.5x or higher, running as spamd [ http://www.spamassassin.org ] - myqsl - omail-admin [ http://omail.omnis.ch/omail-admin/ ] 2. create the sql tables, using the included "nospam.sql" files. 3. setup spamassassin to use the sql tables: here a sample configuration file which works for me ( /etc/mail/spamassassin/local.cf ) ########################################################### required_hits 5.0 subject_tag [**spam**] rewrite_subject 1 report_header 1 use_terse_report 1 always_add_report 1 defang_mime 0 ok_locales en fr de it es sv lk pl auto_learn 0 use_bayes 0 report_safe 0 user_scores_dsn DBI:mysql:nospam:localhost user_scores_sql_username nospam user_scores_sql_password ******* user_scores_sql_table userpref ########################################################### 4. start spamc : for example with: "spamd -D -c -x -q -u vmailmgr" 5. setup omail-admin (version 1.0-alpha) from http://sourceforge.net/project/showfiles.php?group_id=3658 6. install mess822 and filepipe if you don't have them already: http://www.nougen.com/test/filepipe.tgz http://cr.yp.to/software/mess822-0.58.tar.gz 7. edit the ospam-dotqmail.pl script to setup file path and db setup information 8. check the ifspamh ksh script (check if you have /bin/ksh) and update the paths if necessary 9. setup some antispam settings for an user and run the ospam-dotqmail.pl script: check if it creates the .qmail file at the right place 10.setup a cronjob to run the script on a regular basis (once an hour for example) 11.subscribe to the mailing list... : http://lists.sourceforge.net/lists/listinfo/omail-ospam -- Enjoy! :) Olivier