SpamAssassin: Difference between revisions

From DWIKI
mNo edit summary
Line 28: Line 28:
  mysql sasql -u root -p < /usr/share/doc/spamassassin/sql/userpref_mysql.sql
  mysql sasql -u root -p < /usr/share/doc/spamassassin/sql/userpref_mysql.sql


and make sure to run spamd with the options -q -x
and make sure to run spamd with the options '''-q -x'''.
 
On debian you set those in '''/etc/default/spamassassin''' under "OPTIONS".

Revision as of 20:14, 4 May 2007

Site

/usr/lib/perl5/site_perl/5.8.4/Mail/SpamAssassin/ or so.


Related software

Useful commands

  • sa-update -D
  • spamassassin -D --lint


SpamAssassin and userprefs on MySQL

Useful when using shared bayesdb and squirrelmail sasql. Read /usr/share/doc/spamassassin/sql.

mysql -u root -p
mysql>grant insert,select,delete,update on sasql.* to 'sasqluser'@'localhost' identified by 'sasqlpass';
mysql>flush privileges;
mysql>create database sasql;
mysql>quit
mysql sasql -u root -p < /usr/share/doc/spamassassin/sql/userpref_mysql.sql

and make sure to run spamd with the options -q -x.

On debian you set those in /etc/default/spamassassin under "OPTIONS".