You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Norman Zhang <no...@rd.arkonnetworks.com> on 2005/03/14 04:12:59 UTC
Razor Files Missing
Hi,
When I run
# amavisd debug-sa
I see the following errors. Do I need to crate the missing files
manually? May I ask for a few pointers?
Regards,
Norman Zhang
Razor-Log: No /var/lib/amavis/var/.razor/razor-agent.conf found, skipping.
Razor-Log: No razor-agent.conf found, using defaults.
check[9585]: [ 2] [bootup] Logging initiated LogDebugLevel=9 to stdout
check[9585]: [ 5] computed razorhome=/var/lib/amavis/var/.razor, conf=,
ident=/var/lib/amavis/var/.razor/identity
check[9585]: [ 8] Client supported_engines: 4 8
check[9585]: [ 8] prep_mail done: mail 1 headers=102, mime0=1376
check[9585]: [ 5] Can't read file
/var/lib/amavis/var/.razor/servers.discovery.lst: No such file or directory
check[9585]: [ 5] Can't read file
/var/lib/amavis/var/.razor/servers.nomination.lst: No such file or directory
check[9585]: [ 5] Can't read file
/var/lib/amavis/var/.razor/servers.catalogue.lst: No such file or directory
Re: Razor Files Missing
Posted by Bill Randle <bi...@neocat.org>.
On Sun, 2005-03-13 at 20:03 -0800, Norman Zhang wrote:
> > Did you run "razor-admin -create" after installing razor? It will create
> > the razor-conf and *.lst files. You will want to do this as the user
> > that runs amavisd (typically, amavis or vscan). Given where amavisd is
> > looking for the razor files, I would guess you may also need to use the
> > "-home" option. E.g., as root:
> > # su amavis razor-admin -d -create -home /var/lib/amavis/var/.razor
>
> Thanks Bill for your help. amavis is a system account, so I can't do su
> amavis. I did
>
> # razor-admin -d -create -home /var/lib/amavis/var/.razor
>
> I see the razor keeps on trying to contact 66.151.150.12. I think I need
> to allow outgoing UDP/2703 connection on my firewall?
I'd say that's a good guess that you need to open that up if it's
blocked. When you run razor-admin, the files were created with
ownership by root. You will want to do a chown on them to the amavis
account once you have everything created:
# chown -R amavis.amavis /var/lib/amavis/var/.razor
-Bill
> Regards,
> Norman Zhang
>
> admin[9705]: [ 5] Razor Discovery Server 66.151.150.12 is unreachable
> admin[9705]: [ 5] Couldn't talk to discovery servers. Will force a
> bootstrap...
> admin[9705]: [ 6] no discovery listfile:
> /var/lib/amavis/var/.razor//servers.discovery.lst
> admin[9705]: [ 5] Finding Discovery Servers via DNS in the
> razor2.cloudmark.com zone
> admin[9705]: [ 6] Found 1 Discovery Servers via DNS in the
> razor2.cloudmark.com zone
> admin[9705]: [ 5] no listfile:
> /var/lib/amavis/var/.razor//servers.nomination.lst
> admin[9705]: [ 6] no discovery listfile:
> /var/lib/amavis/var/.razor//servers.discovery.lst
> admin[9705]: [ 5] Finding Discovery Servers via DNS in the
> razor2.cloudmark.com zone
> admin[9705]: [ 6] Found 1 Discovery Servers via DNS in the
> razor2.cloudmark.com zone
> admin[9705]: [ 8] Checking with Razor Discovery Server 66.151.150.12
> admin[9705]: [ 6] No port specified, using 2703
> admin[9705]: [ 5] Connecting to 66.151.150.12 ...
Re: Razor Files Missing
Posted by Norman Zhang <no...@rd.arkonnetworks.com>.
> Did you run "razor-admin -create" after installing razor? It will create
> the razor-conf and *.lst files. You will want to do this as the user
> that runs amavisd (typically, amavis or vscan). Given where amavisd is
> looking for the razor files, I would guess you may also need to use the
> "-home" option. E.g., as root:
> # su amavis razor-admin -d -create -home /var/lib/amavis/var/.razor
Thanks Bill for your help. amavis is a system account, so I can't do su
amavis. I did
# razor-admin -d -create -home /var/lib/amavis/var/.razor
I see the razor keeps on trying to contact 66.151.150.12. I think I need
to allow outgoing UDP/2703 connection on my firewall?
Regards,
Norman Zhang
admin[9705]: [ 5] Razor Discovery Server 66.151.150.12 is unreachable
admin[9705]: [ 5] Couldn't talk to discovery servers. Will force a
bootstrap...
admin[9705]: [ 6] no discovery listfile:
/var/lib/amavis/var/.razor//servers.discovery.lst
admin[9705]: [ 5] Finding Discovery Servers via DNS in the
razor2.cloudmark.com zone
admin[9705]: [ 6] Found 1 Discovery Servers via DNS in the
razor2.cloudmark.com zone
admin[9705]: [ 5] no listfile:
/var/lib/amavis/var/.razor//servers.nomination.lst
admin[9705]: [ 6] no discovery listfile:
/var/lib/amavis/var/.razor//servers.discovery.lst
admin[9705]: [ 5] Finding Discovery Servers via DNS in the
razor2.cloudmark.com zone
admin[9705]: [ 6] Found 1 Discovery Servers via DNS in the
razor2.cloudmark.com zone
admin[9705]: [ 8] Checking with Razor Discovery Server 66.151.150.12
admin[9705]: [ 6] No port specified, using 2703
admin[9705]: [ 5] Connecting to 66.151.150.12 ...
Re: Razor Files Missing
Posted by Bill Randle <bi...@neocat.org>.
On Sun, 2005-03-13 at 19:12 -0800, Norman Zhang wrote:
> Hi,
>
> When I run
>
> # amavisd debug-sa
>
> I see the following errors. Do I need to crate the missing files
> manually? May I ask for a few pointers?
>
> Regards,
> Norman Zhang
>
> Razor-Log: No /var/lib/amavis/var/.razor/razor-agent.conf found, skipping.
> Razor-Log: No razor-agent.conf found, using defaults.
>
> check[9585]: [ 2] [bootup] Logging initiated LogDebugLevel=9 to stdout
> check[9585]: [ 5] computed razorhome=/var/lib/amavis/var/.razor, conf=,
> ident=/var/lib/amavis/var/.razor/identity
> check[9585]: [ 8] Client supported_engines: 4 8
> check[9585]: [ 8] prep_mail done: mail 1 headers=102, mime0=1376
> check[9585]: [ 5] Can't read file
> /var/lib/amavis/var/.razor/servers.discovery.lst: No such file or directory
> check[9585]: [ 5] Can't read file
> /var/lib/amavis/var/.razor/servers.nomination.lst: No such file or directory
> check[9585]: [ 5] Can't read file
> /var/lib/amavis/var/.razor/servers.catalogue.lst: No such file or directory
>
Did you run "razor-admin -create" after installing razor? It will create
the razor-conf and *.lst files. You will want to do this as the user
that runs amavisd (typically, amavis or vscan). Given where amavisd is
looking for the razor files, I would guess you may also need to use the
"-home" option. E.g., as root:
# su amavis razor-admin -d -create -home /var/lib/amavis/var/.razor
-Bill
Bayes not Available
Posted by Norman Zhang <no...@rd.arkonnetworks.com>.
Hi,
When I run amavisd debug-sa, I see the following. Is my SA bayes
misconfigured? May I ask for a few pointers?
Regards,
Norman Zhang
debug: bayes: Not available for scanning, only 0 spam(s) in Bayes DB < 200
required_hits 5
rewrite_header Subject [SPAM]
report_safe 0
skip_rbl_checks 0
bayes_path /var/lib/amavis/var/.spamassassin
use_bayes 1
use_razor2 1
use_dcc 1
use_pyzor 1
dns_available yes
auto_whitelist_path /var/spool/spamassassin/auto-whitelist
auto_whitelist_file_mode 0666
dcc_dccifd_path /var/lib/dcc/dccifd
dcc_path /usr/bin
dcc_home /var/lib/dcc
score DCC_CHECK 4.000
score SPF_FAIL 10.000
score SPF_HELO_FAIL 10.000
score RAZOR2_CHECK 2.500
score BAYES_99 4.300
score BAYES_90 3.500
score BAYES_80 3.000
Re: Razor Files Missing
Posted by Norman Zhang <no...@rd.arkonnetworks.com>.
Matt Florido wrote:
> Here's a good article for ports needed by Razor/Pyzor/DCC.
>
> http://wiki.apache.org/spamassassin/NetTestFirewallIssues
Thanks for the URL. I'm not too faimiliar with IPTables. I just allow
outgoing UPD/6277 for DCC and outgoing TCP/2703 for Razor. I don't have
any DCC server setup. Is this sufficient?
> Does it also need Pyzor? If so, install: pyzor.noarch
I don't have Pyzor installed yet. One more question, DCC, Razor and
Pyzor does not require learning? Only SA requires learning?
Regards,
Norman Zhang