Pro-Linux

Pro-Linux Diskussions- und Hilfeforum
Aktuelle Zeit: 14. Nov 2018 12:52

Alle Zeiten sind UTC+01:00




Ein neues Thema erstellen  Auf das Thema antworten  [ 2 Beiträge ] 
Autor Nachricht
BeitragVerfasst: 04. Dez 2006 15:38 
Offline

Registriert: 21. Aug 2006 11:45
Beiträge: 23
Hi,

i have a Problem with my SpamAssassin.

I install and SpamAssassin 3.17 with amavis on a Suse 10.0.
Spamassassin works but i have no logs about pyzor and razor. So i think they dont work.

Can someone tell me how to test if they work or find the error in my conf files???

Her are all my configs. ( postfix conf are not included because i think you dont need them )

Spamassassin:

postfix:/etc/mail/spamassassin # spamassassin -V
SpamAssassin version 3.1.7
running on Perl version 5.8.7


/etc/mail/spamassassin/
-rw-r--r-- 1 root root 948 Dec 2 20:53 init.pre
-rw-r--r-- 1 root root 935 Sep 9 2005 init.pre.rpmnew
-rw-r--r-- 1 root root 1715 Dec 3 02:11 local.cf
-rw-r--r-- 1 root root 451 Sep 9 2005 local.cf.rpmnew
drwx------ 2 root root 4096 Dec 2 20:54 sa-update-keys
-rw-r--r-- 1 root root 2179 Dec 4 13:47 v310.pre
-rw-r--r-- 1 root root 806 Dec 2 20:53 v312.pre

local.cf:

report_safe 1
required_score 5.0

use_bayes 0

razor_config /root/.razor/razor-agent.conf
use_razor2 1

dcc_path /usr/local/bin/dccproc
add_header all DCC _DCCB_: _DCCR_
use_dcc 1

pyzor_path /usr/bin/pyzor
add_header all Pyzor _PYZOR_
use_pyzor 1

add_header all Report _REPORT_
add_header spam Flag _YESNOCAPS_
add_header all Status _YESNO_, score=_SCORE__ required=_REQD_ tests=_TESTS_ autolearn=_AUTOLEARN_ version=_VERSION_
add_header all Level _STARS(*)_
add_header all Checker-Version SpamAssassin _VERSION_ (_SUBVERSION_) on _HOSTNAME_

bayes_auto_learn 0




v310.pre

loadplugin Mail::SpamAssassin::Plugin::DCC

# Pyzor - perform Pyzor message checks.
#
loadplugin Mail::SpamAssassin::Plugin::Pyzor

# Razor2 - perform Razor2 message checks.
#
loadplugin Mail::SpamAssassin::Plugin::Razor2

# SpamCop - perform SpamCop message reporting
#
loadplugin Mail::SpamAssassin::Plugin::SpamCop

# AntiVirus - some simple anti-virus checks, this is not a replacement
# for an anti-virus filter like Clam AntiVirus
#
#loadplugin Mail::SpamAssassin::Plugin::AntiVirus

# AWL - do auto-whitelist checks
#
loadplugin Mail::SpamAssassin::Plugin::AWL

# AutoLearnThreshold - threshold-based discriminator for Bayes auto-learning
#
#loadplugin Mail::SpamAssassin::Plugin::AutoLearnThreshold

# TextCat - language guesser
#
#loadplugin Mail::SpamAssassin::Plugin::TextCat

# AccessDB - lookup from-addresses in access database
#
#loadplugin Mail::SpamAssassin::Plugin::AccessDB

# WhitelistSubject - Whitelist/Blacklist certain subject regular expressions
#
loadplugin Mail::SpamAssassin::Plugin::WhiteListSubject

###########################################################################
# experimental plugins

# DomainKeys - perform DomainKeys verification
#
# External modules required for use, see INSTALL for more information.
#
#loadplugin Mail::SpamAssassin::Plugin::DomainKeys

# MIMEHeader - apply regexp rules against MIME headers in the message
#
loadplugin Mail::SpamAssassin::Plugin::MIMEHeader

# ReplaceTags
#
loadplugin Mail::SpamAssassin::Plugin::ReplaceTags


razor:

postfix:~/.razor # ll
total 44
drwxr-xr-x 2 root root 4096 Dec 2 21:19 .
drwx------ 12 root root 4096 Dec 4 15:08 ..
lrwxrwxrwx 1 root root 15 Dec 2 21:19 identity -> identity-LSDTUX
-rw------- 1 root root 63 Dec 2 21:19 identity-LSDTUX
-rw-r--r-- 1 root root 698 Dec 2 21:16 razor-agent.conf
-rw-r--r-- 1 root root 3196 Dec 4 15:08 razor-agent.log
-rw-r--r-- 1 root root 621 Dec 2 21:17 server.c101.cloudmark.com.conf
-rw-r--r-- 1 root root 593 Dec 2 21:18 server.folly.cloudmark.com.conf
-rw-r--r-- 1 root root 566 Dec 2 21:16 server.joy.cloudmark.com.conf
-rw-r--r-- 1 root root 19 Dec 2 21:18 servers.catalogue.lst
-rw-r--r-- 1 root root 22 Dec 2 21:16 servers.discovery.lst
-rw-r--r-- 1 root root 38 Dec 2 21:18 servers.nomination.lst

razor-agent.conf

debuglevel = 3
identity = identity
ignorelist = 0
listfile_catalogue = servers.catalogue.lst
listfile_discovery = servers.discovery.lst
listfile_nomination = servers.nomination.lst
logfile = razor-agent.log
logic_method = 4
min_cf = ac
razordiscovery = discovery.spamnet.com
rediscovery_wait = 172800
report_headers = 1
turn_off_discovery = 0
use_engines = 4,8
whitelist = razor-whitelist

razor-agnet.log

ec 02 21:19:42.132064 admin[31658]: [ 3] Attempting to register.
Dec 02 21:19:42.518646 admin[31658]: [ 3] Register successful. Identity stored in /root/.razor/identity-LSDTUX
Dec 03 00:51:53.871071 check[3756]: [ 2] [bootup] Logging initiated LogDebugLevel=3 to file:/root/.razor/razor-agent.log
Dec 03 00:51:54.478423 check[3756]: [ 3] mail 1 is not known spam.
Dec 03 04:29:01.676946 check[22087]: [ 2] [bootup] Logging initiated LogDebugLevel=3 to file:/root/.razor/razor-agent.log
Dec 03 04:29:02.203413 check[22087]: [ 3] mail 1 is not known spam.
Dec 04 14:57:41.950330 check[13204]: [ 2] [bootup] Logging initiated LogDebugLevel=3 to file:/root/.razor/razor-agent.log
Dec 04 14:57:45.713086 check[13204]: [ 3] mail 1 is not known spam.
Dec 04 14:58:14.109418 check[13258]: [ 2] [bootup] Logging initiated LogDebugLevel=3 to file:/root/.razor/razor-agent.log
Dec 04 14:58:14.834352 check[13258]: [ 3] mail 1 is not known spam.
Dec 04 15:07:30.135480 check[14375]: [ 2] [bootup] Logging initiated LogDebugLevel=3 to file:/root/.razor/razor-agent.log
Dec 04 15:07:34.407471 check[14375]: [ 3] mail 1 is not known spam.
Dec 04 15:08:23.060208 check[14452]: [ 2] [bootup] Logging initiated LogDebugLevel=3 to file:/root/.razor/razor-agent.log
Dec 04 15:08:23.747922 check[14452]: [ 3] mail 1 is not known spam.

DCC:
/var/dcc

drwxr-xr-x 2 bin bin 4096 Dec 2 21:25 cgi-bin
-rw-r--r-- 1 root bin 4269 Dec 2 21:25 dcc_conf
-rw-r--r-- 1 root bin 796 Dec 2 21:25 flod
-rw-r--r-- 1 root bin 561 Dec 2 21:25 grey_flod
-rw-r--r-- 1 root bin 496 Dec 2 21:25 grey_whitelist
-rw------- 1 root root 2548 Dec 2 21:25 ids
drwxr-xr-x 2 bin bin 4096 Dec 2 21:25 libexec
drwx--x--- 2 root bin 4096 Dec 2 21:25 log
-rw------- 1 root root 4492 Dec 4 14:55 map
-rw------- 1 root root 1106 Dec 2 21:25 map.txt
-rw-r--r-- 1 root bin 3748 Dec 2 21:25 whiteclnt
-rw-r--r-- 1 root bin 1662 Dec 2 21:25 whitecommon
-rw-r--r-- 1 root bin 674 Dec 2 21:25 whitelist

amavisd.conf ( spammassassin settings )

# SpamAssassin settings

# $sa_local_tests_only is passed to Mail::SpamAssassin::new as a value
# of the option local_tests_only. See Mail::SpamAssassin man page.
# If set to 1, SA tests are restricted to local tests only, i.e. no tests
# that require internet access will be performed.
#
$sa_local_tests_only = 0; # (default: false)
#$sa_auto_whitelist = 1; # turn on AWL (default: false)

# Timout for SpamAssassin. This is only used if spamassassin does NOT
# override it (which it often does if sa_local_tests_only is not true)
$sa_timeout = 30; # timeout in seconds for a call to SpamAssassin
# (default is 30 seconds, undef disables it)

# AWL (auto whitelisting), requires spamassassin 2.44 or better
# $sa_auto_whitelist = 1; # defaults to undef

$sa_mail_body_size_limit = 150*1024; # don't waste time on SA is mail is larger
# (less than 1% of spam is > 64k)
# default: undef, no limitations

# default values, can be overridden by more specific lookups, e.g. SQL
$sa_tag_level_deflt = -999; # add spam info headers if at, or above that level
$sa_tag2_level_deflt = 6.3; # add 'spam detected' headers at that level
$sa_kill_level_deflt = 20; # triggers spam evasive actions
# at or above that level: bounce/reject/drop,
# quarantine, and adding mail address extension

$sa_dsn_cutoff_level = 30; # spam level beyond which a DSN is not sent,
# effectively turning D_BOUNCE into D_DISCARD;
# undef disables this feature and is a default;


$sa_spam_subject_tag = '[Spamverdacht] '; # (defaults to undef, disabled)
# (only seen when spam is not to be rejected
# and recipient is in local_domains*)
$sa_spam_report_header = 1;

#$sa_spam_modifies_subj = 1; # may be a ref to a lookup table, default is true
# Example: modify Subject for all local recipients except user@example.com
#$sa_spam_modifies_subj = [qw( !user@example.com . )];


Nach oben
   
 Betreff des Beitrags:
BeitragVerfasst: 04. Dez 2006 15:53 
Offline

Registriert: 21. Aug 2006 11:45
Beiträge: 23
an sa-learn --dump magic -D brings this. That looks ok so why is there no razor entry in my whole mail .log?

18348] dbg: plugin: loading Mail::SpamAssassin::Plugin::DCC from @INC
[18348] dbg: dcc: network tests on, registering DCC
[18348] dbg: plugin: registered Mail::SpamAssassin::Plugin::DCC=HASH(0x8f7ca5c)
[18348] dbg: plugin: loading Mail::SpamAssassin::Plugin::Pyzor from @INC
[18348] dbg: pyzor: network tests on, attempting Pyzor
[18348] dbg: plugin: registered Mail::SpamAssassin::Plugin::Pyzor=HASH(0x8f9622c)
[18348] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC
[18348] dbg: razor2: razor2 is available, version 2.82
[18348] dbg: plugin: registered Mail::SpamAssassin::Plugin::Razor2=HASH(0x8fb6f24)


Nach oben
   
Beiträge der letzten Zeit anzeigen:  Sortiere nach  
Ein neues Thema erstellen  Auf das Thema antworten  [ 2 Beiträge ] 

Alle Zeiten sind UTC+01:00


Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 0 Gäste


Sie dürfen keine neuen Themen in diesem Forum erstellen.
Sie dürfen keine Antworten zu Themen in diesem Forum erstellen.
Sie dürfen Ihre Beiträge in diesem Forum nicht ändern.
Sie dürfen Ihre Beiträge in diesem Forum nicht löschen.
Sie dürfen keine Dateianhänge in diesem Forum erstellen.

Suche nach:
Gehe zu:  
Powered by phpBB® Forum Software © phpBB Limited
Deutsche Übersetzung durch phpBB.de