Hi all,

I'm using an Amavis/SpamAssassin/Postfix setup on a fresh install of Ubuntu 
Hardy.  I don't see any reference to the autolearn= field in any of the mail 
headers Amavis is generating.  What am I missing?

Here are the versions:

amavisd-new:
  Installed: 1:2.5.3-1ubuntu3
  Candidate: 1:2.5.3-1ubuntu3
  Version table:
 *** 1:2.5.3-1ubuntu3 0
        500 http://gulus.usherbrooke.ca hardy/main Packages
        100 /var/lib/dpkg/status
spamassassin:
  Installed: 3.2.4-1ubuntu1
  Candidate: 3.2.4-1ubuntu1
  Version table:
 *** 3.2.4-1ubuntu1 0
        500 http://gulus.usherbrooke.ca hardy/universe Packages
        100 /var/lib/dpkg/status

Here a portion of the Amavis log:

[31710] dbg: learn: auto-learn: currently using scoreset 3, recomputing score 
based on scoreset 1
[31710] dbg: learn: auto-learn: message score: -2.171, computed score for 
autolearn: 0.001
[31710] dbg: learn: auto-learn? ham=1, spam=6, body-points=0.001, 
head-points=0.001, learned-points=-2.599
[31710] dbg: learn: auto-learn? yes, ham (0.001 < 1)
[31710] dbg: learn: initializing learner
[31710] dbg: learn: learning ham
[31710] dbg: eval: all 'xxxxxxx
[31710] dbg: eval: all 'xxxxxxx
[31710] dbg: locker: safe_lock: 
created /var/lib/amavis/.spamassassin/bayes.lock.example.com.31710
[31710] dbg: locker: safe_lock: trying to get lock 
on /var/lib/amavis/.spamassassin/bayes with 0 retries
[31710] dbg: locker: safe_lock: link 
to /var/lib/amavis/.spamassassin/bayes.lock: link ok
[31710] dbg: bayes: tie-ing to DB file 
R/W /var/lib/amavis/.spamassassin/bayes_toks
[31710] dbg: bayes: tie-ing to DB file 
R/W /var/lib/amavis/.spamassassin/bayes_seen
[31710] dbg: bayes: found bayes db version 3
[31710] dbg: bayes: 
learned '[EMAIL PROTECTED]', atime: 
1215920262
[31710] dbg: bayes: untie-ing
[31710] dbg: bayes: files locked, now unlocking lock
[31710] dbg: locker: safe_unlock: 
unlink /var/lib/amavis/.spamassassin/bayes.lock
[31710] dbg: learn: initializing learner
[31710] dbg: check: is spam? score=-2.171 required=5
[31710] dbg: check: tests=AWL,BAYES_00,HTML_MESSAGE,SPF_PASS
[31710] dbg: check: 
subtests=__AFF_LOTTERY,__COMMENT_EXISTS,__CT,__CTYPE_HAS_BOUNDARY,__DNS_FROM_RFC_POST,__DOS_HAS_ANY_URI,__DOS_RCVD_SAT,__DOS_RCVD_SUN,__DOS_RELAYED_EXT,__ENV_AND_HDR_FROM_MATCH,__FB_NUM_PERCNT,__FB_VIA_URL_SPEC1,__FB_V_SPACE_HTTP,__HAS_ANY_EMAIL,__HAS_ANY_URI,__HAS_MSGID,__HAS_RCVD,__HAS_SUBJECT,__HTML_LINK_IMAGE,__LAST_UNTRUSTED_RELAY_NO_AUTH,__MIME_HTML,__MIME_QP,__MIME_VERSION,__MISSING_REF,__MSGID_OK_DIGITS,__MSGID_OK_HOST,__MSOE_MID_WRONG_CASE,__NAKED_TO,__NONEMPTY_BODY,__RCVD_IN_DNSWL,__RFC_IGNORANT_ENVFROM,__SANE_MSGID,__TAG_EXISTS_BODY,__TAG_EXISTS_CENTER,__TAG_EXISTS_HEAD,__TAG_EXISTS_HTML,__TOCC_EXISTS,__TVD_BODY,__TVD_MIME_ATT_TP,__TVD_MIME_CT_MM

(note addresses changed on post)

Here is my local amavis config:

use strict;

#
# Place your configuration directives here.  They will override those in
# earlier files.
#
# See /usr/share/doc/amavisd-new/ for documentation and examples of
# the directives you can use in this file
#
$unfreeze   = ['unfreeze', 'freeze -d', 'melt', 'fcat']; #disabled (non-free, 
no security support)
$unrar      = ['rar', 'unrar']; #disabled (non-free, no security support)
$lha    = 'lha'; #disabled (non-free, no security support)
$myhostname = "windy.skanes.ca";
$final_spam_destiny       = D_DISCARD;
$X_HEADER_LINE = "Ubuntu $myproduct_name at $mydomain";
$sa_tag_level_deflt  = -9999;
$sa_kill_level_deflt = 20; # triggers spam evasive actions
$sa_dsn_cutoff_level = 20;   # spam level beyond which a DSN is not sent
$sa_auto_whitelist = 1;
$sa_spam_report_header = 1;
$final_spam_destiny       = D_PASS;
$final_bad_header_destiny = D_PASS;     # False-positive prone (for spam)
#
# Debugging settings
#
$sa_debug = '1';
$log_level = 5;
$LOGFILE = "$MYHOME/amavis.log";
$DEBUG=1;
#
# Disable SA Caching
$spam_check_negative_ttl = 0; #10*60;  # time to cache contents as not spam
$spam_check_positive_ttl = 0; #30*60;  # time to cache contents as spam
#
#------------ Do not modify anything below this line -------------
1;  # ensure a defined return

Here is my SA local.cf:

# This is the right place to customize your installation of SpamAssassin.
#
# See 'perldoc Mail::SpamAssassin::Conf' for details of what can be
# tweaked.
#
# Only a small subset of options are listed below
#
###########################################################################

#   Add *****SPAM***** to the Subject header of spam e-mails
#
# rewrite_header Subject *****SPAM*****


#   Save spam messages as a message/rfc822 MIME attachment instead of
#   modifying the original message (0: off, 2: use text/plain instead)
#
# report_safe 1


#   Set which networks or hosts are considered 'trusted' by your mail
#   server (i.e. not spammers)
#
# trusted_networks 212.17.35.


#   Set file-locking method (flock is not safe over NFS, but is faster)
#
# lock_method flock


#   Set the threshold at which a message is considered spam (default: 5.0)
#
# required_score 5.0


#   Use Bayesian classifier (default: 1)
#
use_bayes 1


#   Bayesian classifier auto-learning (default: 1)
#
bayes_auto_learn 1


#   Set headers which may provide inappropriate cues to the Bayesian
#   classifier
#
# bayes_ignore_header X-Bogosity
# bayes_ignore_header X-Spam-Flag
# bayes_ignore_header X-Spam-Status
bayes_auto_learn_threshold_nonspam 1
bayes_auto_learn_threshold_spam 6
use_terse_reports = 0

Thanks,
Jon Skanes

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to