SpamAssassin: Difference between revisions

From DWIKI
mNo edit summary
mNo edit summary
Line 4: Line 4:
*[[SpamAssassin and MimeDefang]]
*[[SpamAssassin and MimeDefang]]
*[http://www.hart.co.jp/spam/sa-clamav-e.html Setting Up SpamAssassin and ClamAV with Sendmail on FreeBSD]
*[http://www.hart.co.jp/spam/sa-clamav-e.html Setting Up SpamAssassin and ClamAV with Sendmail on FreeBSD]
*http://ist.uwaterloo.ca/~dkeenan/talks/spamassassin/config.html


==Notes==
==Notes==

Revision as of 19:59, 25 December 2008

Links

Notes

3.2.2 is BROKEN, http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5574 isn't entirely correct, but the idea is:

POSIX::setuid($uuid);  # set effective and real UID

Site

Tuning

se2c

Compiled rulesets.

Related software

Useful commands

  • sa-update -D
  • sa-compile (to be run after sa-update!)
  • 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".


FAQ

testing spamassassin

spamd -D 

netset: illegal network address given

with some luck this means you have to check your "trusted_networks" line in local.cf

The output of things like _REPORT_ and _TESTS_

hardcoded in PerMsgStatus.pm


bayes: cannot open bayes databases /var/spool/MIMEDefang/.spamassassin/bayes_* R/W: lock failed: File exists

MIGHT mean there's stale lockfiles /var/spool/MIMEDefang/.spamassassin/bayes.lock.* stop whatever is running, remove them and try again


config: failed to parse, now a plugin, skipping: ok_languages

v310.pre:

loadplugin     Mail::SpamAssassin::Plugin::TextCat

spamass-milter[61354]: Could not retrieve sendmail macro "r"!.

Please add it to confMILTER_MACROS_ENVRCPT for better spamassassin results



spamd: unauthorized connection from xxx

that's the -A option


prefork: sysread(8) not ready, wait max 300 secs

A Bug

Can't locate Mail/SpamAssassin/CompiledRegexps/body_0.pm in @INC

Try running sa-compile and complain to author.