Здравствуйте, Joseph.

Вы писали 26 июля 2004 г., 17:50:53:

KJS> X-AntiVirus: Checked by Dr.Web [version: 4.31a, engine:
KJS> 4.31b, virus records: 52389, updated: 20.07.2004]
KJS> Return-path: <[EMAIL PROTECTED]>
KJS> Received: from [216.17.38.90] (port=25 helo=mail.netexsw.com)
KJS>         by mx15.mail.ru with esmtp 
KJS>         id 1Bp5si-000OAJ-00
KJS>         for [EMAIL PROTECTED]; Mon, 26 Jul 2004 17:51:08 +0400
KJS> Received: from ntserver1.NETEXSW.com (ntserver1.netexsw.com [10.1.1.1])
KJS>         by mail.netexsw.com (8.11.6/8.11.6) with ESMTP id i6QDp5u14440
KJS>         for <[EMAIL PROTECTED]>; Mon, 26 Jul 2004 08:51:05 -0500
KJS> Received: by ntserver1.netexsw.com with Internet Mail Service (5.5.2653.19)
KJS>         id <JLWFBVCL>; Mon, 26 Jul 2004 08:50:54 -0500
KJS> Message-ID:
KJS> <[EMAIL PROTECTED]>
KJS> From: "Kang , Joseph S." <[EMAIL PROTECTED]>
KJS> To: "'70798'" <[EMAIL PROTECTED]>
KJS> Subject: RE: Re[2]: Can't tune spamassassin to read User_Prefs
KJS> Date: Mon, 26 Jul 2004 08:50:53 -0500
KJS> MIME-Version: 1.0
KJS> X-Mailer: Internet Mail Service (5.5.2653.19)
KJS> Content-Type: text/plain;
KJS>         charset="windows-1251"
KJS> Content-Transfer-Encoding: quoted-printable
KJS> X-Spam: Not detected

KJS> Based on the output, it appears that SA is using the user prefs file (>
KJS> debug: using "/root/.spamassassin/user_prefs" for user prefs file).
KJS> However, I do also note that you are implementing SA with amavis-new.  I
KJS> don't have any experience with using SA in this manner.  You may want to
KJS> send the information you sent me back to the SA list and make note that you
KJS> are using SA with amavis-new.  Someone may be able to help you along
KJS> further.

KJS> Good luck!

>> -----Original Message-----
>> From: 70798 [mailto:[EMAIL PROTECTED]
>> Sent: Monday, July 26, 2004 8:06 AM
>> To: Kang , Joseph S.
>> Subject: Re[2]: Can't tune spamassassin to read User_Prefs
>> 
>> 
>> Здравствуйте, Joseph.
>> 
>> Вы писали 23 июля 2004 г., 18:13:15:
>> 
>> >> As I understand spamassassin reads user_prefs by passwd 
>> >> file(it reads the home directory of a user, then reads the 
>> >> .spamassassin/user_prefs dir). And I create it manually. So 
>> >> maybe I'm not right? Please tell me, what further 
>> >> configuration i need to do?
>> 
>> KJS> .spamassassin/user_prefs is not a directory.  It is a 
>> file. It would be
>> KJS> helpful if you could include additional information about your SA
>> KJS> configuration, specifically:
>> 
>> KJS> 1. Version of SA.
>> KJS> 2. How SA is implemented in your mail server 
>> configuration (milter,
>> KJS> procmail, etc.)?
>> KJS> 3. Any output from "spamassassin -t"
>> KJS> 4. A copy of the contents of user_prefs.
>> 
>> KJS> Good luck.
>> 
>> Hello! Thanks for your reply!
>> I understand, that the user_prefs is not a directory, it was a
>> mistake, sorry.
>> But I can't understand why SA don't read it! As I suppose SA takes
>> the users HOME directory path from /etc/passwd file. Then it reads
>> ~/.spamassassin/user_prefs. Am i right? But my SA dont read it!!!
>> Ok, there is my /etc/mail/spamassassin/local.cf:
>> 
>> <<<<BEGIN>>>>
>> # don't use agent
>> use_razor2      0
>> use_dcc         0
>> use_pyzor       0
>> # check rdl
>> skip_rbl_checks 0
>> # autowhitelist
>> #use_auto_whitelist      1
>> #auto_whitelist_path    
>> /var/spool/filter/spamassassin/auto_whitelist
>> # bayes
>> use_bayes               1
>> bayes_path              /var/spool/filter/spamassassin/bayes
>> auto_learn              1
>> bayes_min_ham_num 200
>> bayes_min_spam_num 200
>> ok_languages            en ru de
>> ok_locales              en ru de
>> # rewrite subject
>> rewrite_subject         1
>> subject_tag             *SPAM* - _HITS_ points* :
>> required_hits           5
>> report_charset          koi8-r
>> allow_user_rules        1
>> clear_report_template
>> report Это сообщение идентифицированно как спам(письмо рекламн
>> ого содержания).
>> report
>> report Краткое содержимое: _PREVIEW_
>> report
>> report  Анализ сообщения: (_HITS_ очков из _REQD_ требуемых, а
>>  так же _BAYES_ bayes очков)
>> report
>> report Очки  Правило                Описание
>> report ---- ---------------------- 
>> --------------------------------------------------
>> report _SUMMARY_
>> clear_unsafe_report_template
>> # network whitelist
>> whitelist_from  localhost
>> <<<<<EOF>>>>
>> 
>> Ok, my sendmail.mc:
>> <<<<BEGIN>>>>
>> divert(-1)
>> 
>> divert(0)
>> VERSIONID(`$FreeBSD: bsd.mc,v 1.01 2004/05/07 17:58:00 
>> gshapiro Exp $')
>> OSTYPE(freebsd4)
>> DOMAIN(generic)
>> 
>> FEATURE(access_db, `hash -T<TMPF> /etc/mail/access')
>> FEATURE(blacklist_recipients)
>> FEATURE(local_lmtp)
>> FEATURE(mailertable, `hash -o /etc/mail/mailertable')
>> FEATURE(relay_based_on_MX)
>> FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
>> 
>> MAIL_FILTER(`milter-amavis', 
>> `S=local:/var/amavis/amavis-milter.sock, F=T, T=S:10m;R:10m;E:10m')
>> define(`confMILTER_MACROS_ENVFROM', 
>> confMILTER_MACROS_ENVFROM``, {b}'')
>> 
>> dnl Added by Anton
>> MAIL_FILTER(`spamassassin',`S=unix:/var/run/spamass.sock, F=, 
>> T=C:15m;S:4m;R:4m;E:10m')
>> dnl define(`confMILTER_MACROS_CONNECT',`b, j, _, 
>> {daemon_name}, {if_name},{if_addr}')
>> define(`confINPUT_MAIL_FILTERS',`spamassassin,milter-amavis')
>> 
>> dnl Set Spam flag
>> dnl LOCAL_CONFIG
>> dnl HX-Spam-Flag: $>CheckSpamField
>> 
>> LOCAL_RULESETS
>> 
>> dnl SCheckSpamField
>> dnl R$*YES      $#error $: "550 5.7.1 Spamassassin rejected 
>> your message"
>> dnl R$* $@ OK
>> dnl ---------------------------------------end
>> define(`confCW_FILE', `-o /etc/mail/local-host-names')
>> 
>> 
>> define(`confMAX_MIME_HEADER_LENGTH', `256/128')
>> define(`confNO_RCPT_ACTION', `add-to-undisclosed')
>> define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
>> 
>> MAILER(local)
>> MAILER(smtp)
>> <<<EOF>>>
>> 
>> Here is debug output:
>> spamassassin -D --lint
>> debug: Score set 0 chosen.
>> debug: running in taint mode? yes
>> debug: Running in taint mode, removing unsafe env vars, and 
>> resetting PATH
>> debug: PATH included '/sbin', keeping.
>> debug: PATH included '/bin', keeping.
>> debug: PATH included '/usr/sbin', keeping.
>> debug: PATH included '/usr/bin', keeping.
>> debug: PATH included '/usr/games', keeping.
>> debug: PATH included '/usr/local/sbin', keeping.
>> debug: PATH included '/usr/local/bin', keeping.
>> debug: PATH included '/usr/X11R6/bin', which doesn't exist, dropping.
>> debug: PATH included '/root/bin', which doesn't exist, dropping.
>> debug: Final PATH set to: 
>> /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/
>> local/bin
>> debug: ignore: using a test message to lint rules
>> debug: using "/usr/share/spamassassin" for default rules dir
>> debug: using "/etc/mail/spamassassin" for site rules dir
>> debug: using "/root/.spamassassin" for user state dir
>> debug: using "/root/.spamassassin/user_prefs" for user prefs file
>> debug: Allowing user rules!
>> debug: bayes: 4955 tie-ing to DB file R/O 
>> /var/spool/filter/spamassassin/bayes_toks
>> debug: bayes: 4955 tie-ing to DB file R/O 
>> /var/spool/filter/spamassassin/bayes_seen
>> debug: bayes: found bayes db version 2
>> debug: bayes: Not available for scanning, only 134 ham(s) in 
>> Bayes DB < 200
>> debug: bayes: 4955 untie-ing
>> debug: bayes: 4955 untie-ing db_toks
>> debug: bayes: 4955 untie-ing db_seen
>> debug: Score set 1 chosen.
>> debug: Initialising learner
>> debug: bayes: 4955 tie-ing to DB file R/O 
>> /var/spool/filter/spamassassin/bayes_toks
>> debug: bayes: 4955 tie-ing to DB file R/O 
>> /var/spool/filter/spamassassin/bayes_seen
>> debug: bayes: found bayes db version 2
>> debug: bayes: Not available for scanning, only 134 ham(s) in 
>> Bayes DB < 200
>> debug: bayes: 4955 untie-ing
>> debug: bayes: 4955 untie-ing db_toks
>> debug: bayes: 4955 untie-ing db_seen
>> debug: Loading languages file...
>> debug: Language possibly: en,sco
>> debug: is Net::DNS::Resolver available? yes
>> debug: trying (3) yahoo.com...
>> debug: looking up MX for 'yahoo.com'
>> debug: MX for 'yahoo.com' exists? 1
>> debug: MX lookup of yahoo.com succeeded => Dns available (set 
>> dns_available to hardcode)
>> debug: is DNS available? 1
>> debug: all '*From' addrs: [EMAIL PROTECTED]
>> debug: running header regexp tests; score so far=0
>> debug: running body-text per-line regexp tests; score so far=1.27
>> debug: running raw-body-text per-line regexp tests; score so far=1.27
>> debug: running uri tests; score so far=1.27
>> debug: uri tests: Done uriRE
>> debug: running full-text regexp tests; score so far=1.27
>> debug: DCCifd is not available: no r/w dccifd socket found.
>> debug: all '*To' addrs:
>> debug: RBL: success for 1 of 1 queries
>> debug: running meta tests; score so far=1.27
>> debug: is spam? score=1.27 required=5 tests=DATE_MISSING,NO_REAL_NAME
>> 
>> Please help me!
>> Best regards,
>> Anton
>> 
>> -- 
>> С уважением,
>>  70798                          mailto:[EMAIL PROTECTED]
>> 

Sorry, but i'm not using it with amavis-milter... SA is dedicately
used with sendmail and spamass-milter... So amavis don't affect the 
Spamassassin...
Please just tell me, what i have to do to turn on this feature? Maybe,
I have to edit some configuration files or start spamd another way but
my.

-- 
С уважением,
 70798                          mailto:[EMAIL PROTECTED]

Reply via email to