Hi all! I try to use spamassasin 3.0.1 My configs
init.pre: ----cut---- # This is the right place to customize your installation of SpamAssassin. # # See 'perldoc Mail::SpamAssassin::Conf' for details of what can be # tweaked. # # This file will be loaded before *all other* configuration files, including # the system configuration. As such, it's a good place to set things that # will affect how those files are parsed, like which plugins are loaded # etc. # ########################################################################### # RelayCountry - add metadata for Bayes learning, marking the countries # a message was relayed through # # loadplugin Mail::SpamAssassin::Plugin::RelayCountry # URIDNSBL - look up URLs found in the message against several DNS # blocklists. # loadplugin Mail::SpamAssassin::Plugin::URIDNSBL # Hashcash - perform hashcash verification. # loadplugin Mail::SpamAssassin::Plugin::Hashcash # SPF - perform SPF verification. # loadplugin Mail::SpamAssassin::Plugin::SPF ----cut---- local.pre: ----cut---- # These values can be overridden by editing ~/.spamassassin/user_prefs.cf # (see spamassassin(1) for details) # How many hits before a message is considered spam. required_hits 7 # Whether to change the subject of suspected spam rewrite_subject 0 # Text to prepend to subject if rewrite_subject is used subject_tag [* SPAM? *] # Encapsulate spam in an attachment (safe) or not report_safe 1 # Use terse version of the spam report use_terse_report 0 # Disable AWL by default use_auto_whitelist 0 # Enable the Bayes system use_bayes 1 bayes_path /var/spool/spamassassin/bayes bayes_file_mode 0775 # Enable Bayes auto-learning auto_learn 1 # Enable or disable network checks skip_rbl_checks 0 use_razor2 0 use_dcc 0 use_pyzor 0 # Mail using languages used in these country codes will not be marked # as being possibly spam in a foreign language. ok_languages all # Mail using locales used in these country codes will not be marked # as being possibly spam in a foreign language. ok_locales all # Terse report template mainly for using by exim+exiscan in # "Always put X-Spam-Report header in the message" mode. Default # report template claims that email containing such report is # spam. Such claim is wrong when we add report to all emails. clear_report_template report Content analysis details: _HITS_ points, _REQD_ required report _SUMMARY_ ----cut---- Spamd is running with parameters: -d --pidfile=/var/run/spamd/spamd.pid --nouser-config -L --siteconfigpath=/etc/mail/spamassassin --virtual-config-dir=/var/spool/spamassassin -D -s local6 maildroprc: ----cut---- exception { xfilter "/usr/bin/spamc " } if (/^X-Spam-Flag: *YES/) { exception { to "$HOME/$DEFAULT/.Spam/" } } else { exception { to "$HOME/$DEFAULT" } } ----cut---- When i try spamc < spam.msg i get : X-Spam-Flag: YES X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on mail.yam.ru X-Spam-Level: *********** X-Spam-Status: Yes, score=11.7 required=7.0 tests=BAYES_99,HEAD_ILLEGAL_CHARS, HTML_50_60,HTML_BACKHAIR_2,HTML_BADTAG_00_10,HTML_FONT_LOW_CONTRAST, HTML_MESSAGE,HTML_NONELEMENT_00_10,HTML_OBFUSCATE_10_20, MIME_HTML_ONLY,MSGID_FROM_MTA_ID,RCVD_NUMERIC_HELO autolearn=no version=3.0.1 BUT when i try to resend same spam.msg via mail i get: X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on mail.yam.ru X-Spam-Level: *** X-Spam-Status: No, score=3.7 required=7.0 tests=ALL_TRUSTED,BAYES_50, FORGED_HOTMAIL_RCVD2,HTML_50_60,HTML_BACKHAIR_2,HTML_BADTAG_00_10, HTML_FONT_LOW_CONTRAST,HTML_MESSAGE,HTML_NONELEMENT_00_10, HTML_OBFUSCATE_10_20,HTML_TITLE_EMPTY,MIME_HTML_ONLY autolearn=no version=3.0.1 GTUBE via mail got: X-Spam-Status: Yes, score=998.9 Where am I wrong ?