2011/11/11 Müfit Eribol > Hello All, > > I have installed razor2, pyzor, DCC, spamassassin and amavisd-new. But, I > doubt razor2 is working. Below is the debug of razor2 run. But it times out > after 5 seconds. I have no idea about how to solve. Firewall is disabled on > the machine. However, there is NAT on the internet gateway. Perhaps a port > needs to be opened and routed to this machine on the gateway for the > incoming packets. > > I would appreciate any insight. > > All the best, > Mufit > > [root@mail log]# spamassassin -t -D razor2 < > /usr/share/doc/spamassassin-3.3.1/sample-spam.txt > Nov 8 23:13:44.774 [5235] dbg: razor2: razor2 is available, version 2.84 > Razor-Log: read_file: 16 items read from > /var/spool/amavisd/.razor/razor-agent.conf > Razor-Log: Found razorhome: /var/spool/amavisd/.razor > Nov 08 23:14:15.725569 check[5235]: [ 2] [bootup] Logging initiated > LogDebugLevel=9 to stdout > Nov 08 23:14:15.725801 check[5235]: [ 5] computed > razorhome=/var/spool/amavisd/.razor, > conf=/var/spool/amavisd/.razor/razor-agent.conf, > ident=/var/spool/amavisd/.razor/identity-ruNzHkARhN > Nov 08 23:14:15.726067 check[5235]: [ 8] Client supported_engines: 4 8 > Nov 08 23:14:15.726329 check[5235]: [ 8] prep_mail done: mail 1 > headers=293, mime0=616 > Nov 08 23:14:15.726519 check[5235]: [ 5] read_file: 1 items read from > /var/spool/amavisd/.razor/servers.discovery.lst > Nov 08 23:14:15.726686 check[5235]: [ 5] read_file: 4 items read from > /var/spool/amavisd/.razor/servers.nomination.lst > Nov 08 23:14:15.726861 check[5235]: [ 5] read_file: 3 items read from > /var/spool/amavisd/.razor/servers.catalogue.lst > Nov 08 23:14:15.727163 check[5235]: [ 9] Assigning defaults to > n001.cloudmark.com > Nov 08 23:14:15.727232 check[5235]: [ 9] Assigning defaults to > n004.cloudmark.com > Nov 08 23:14:15.727310 check[5235]: [ 9] Assigning defaults to > n003.cloudmark.com > Nov 08 23:14:15.727386 check[5235]: [ 9] Assigning defaults to > n002.cloudmark.com > Nov 08 23:14:15.727490 check[5235]: [ 9] Assigning defaults to > c303.cloudmark.com > Nov 08 23:14:15.727584 check[5235]: [ 9] Assigning defaults to > c302.cloudmark.com > Nov 08 23:14:15.727663 check[5235]: [ 9] Assigning defaults to > c301.cloudmark.com > Nov 08 23:14:15.728293 check[5235]: [ 5] read_file: 31 items read from > /var/spool/amavisd/.razor/server.c303.cloudmark.com.conf > Nov 08 23:14:15.728660 check[5235]: [ 5] read_file: 31 items read from > /var/spool/amavisd/.razor/server.c303.cloudmark.com.conf > Nov 08 23:14:15.729113 check[5235]: [ 5] read_file: 31 items read from > /var/spool/amavisd/.razor/server.c302.cloudmark.com.conf > Nov 08 23:14:15.729460 check[5235]: [ 5] read_file: 31 items read from > /var/spool/amavisd/.razor/server.c302.cloudmark.com.conf > Nov 08 23:14:15.729774 check[5235]: [ 5] read_file: 28 items read from > /var/spool/amavisd/.razor/server.n001.cloudmark.com.conf > Nov 08 23:14:15.730202 check[5235]: [ 5] read_file: 28 items read from > /var/spool/amavisd/.razor/server.n001.cloudmark.com.conf > Nov 08 23:14:15.730558 check[5235]: [ 5] read_file: 31 items read from > /var/spool/amavisd/.razor/server.c301.cloudmark.com.conf > Nov 08 23:14:15.730873 check[5235]: [ 5] read_file: 31 items read from > /var/spool/amavisd/.razor/server.c301.cloudmark.com.conf > Nov 08 23:14:15.731119 check[5235]: [ 5] server discovery overdue by 160953 > seconds > Nov 08 23:14:15.731175 check[5235]: [ 8] already have 1 discovery servers > Nov 08 23:14:15.731216 check[5235]: [ 8] Checking with Razor Discovery > Server discovery.razor.cloudmark.com > Nov 08 23:14:15.731296 check[5235]: [ 6] No port specified, using 2703 > Nov 08 23:14:15.731331 check[5235]: [ 5] Connecting to > discovery.razor.cloudmark.com ... > Nov 8 23:14:20.788 [5235] dbg: razor2: razor2 check timed out after 5 > seconds > Nov 8 23:14:20.789 [5235] dbg: razor2: results: spam? 0 > Nov 8 23:14:20.789 [5235] dbg: razor2: results: engine 8, highest cf score: > 0 > Nov 8 23:14:20.789 [5235] dbg: razor2: results: engine 4, highest cf score: > 0 > X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.example.com > X-Spam-Flag: YES > X-Spam-Level: ************************************************** > X-Spam-Status: Yes, score=1006.1 required=5.0 tests=BAYES_00,DCC_CHECK, > DIGEST_MULTIPLE,GTUBE,NO_RECEIVED,NO_RELAYS,PYZOR_CHECK autolearn=no > version=3.3.1 > X-Spam-Report: > * -0.0 NO_RELAYS Informational: message was not relayed via SMTP > * 1000 GTUBE BODY: Generic Test for Unsolicited Bulk Email > * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% > * [score: 0.0000] > * 4.7 DCC_CHECK Listed in DCC (http://rhyolite.com/anti-spam/dcc/) > * 3.0 PYZOR_CHECK Listed in Pyzor (http://pyzor.sf.net/) > * 0.3 DIGEST_MULTIPLE Message hits more than one network digest > check > * -0.0 NO_RECEIVED Informational: message has no Received headers > X-Spam-DCC: URT: mail.example.com 1060; Body=many Fuz1=many Fuz2=many > X-Spam-Pyzor: Reported 307 times. > Subject: Test spam mail (GTUBE) > Message-ID: <gtube1.1010...@example.net> > Date: Wed, 23 Jul 2003 23:30:00 +0200 > From: Sender <sen...@example.net> > To: Recipient <recipi...@example.net> > Precedence: junk > MIME-Version: 1.0 > Content-Type: text/plain; charset=us-ascii > Content-Transfer-Encoding: 7bit > > ..... > > Content analysis details: (1006.1 points, 5.0 required) > > pts rule name description > ---- ---------------------- > -------------------------------------------------- > -0.0 NO_RELAYS Informational: message was not relayed via SMTP > 1000 GTUBE BODY: Generic Test for Unsolicited Bulk Email > -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% > [score: 0.0000] > 4.7 DCC_CHECK Listed in DCC > (http://rhyolite.com/anti-spam/dcc/) > 3.0 PYZOR_CHECK Listed in Pyzor (http://pyzor.sf.net/) > 0.3 DIGEST_MULTIPLE Message hits more than one network digest check > -0.0 NO_RECEIVED Informational: message has no Received headers > >
Try running the debug command as your amavis user, for example: su amavis -c 'spamassassin -t -D razor2 < /usr/share/doc/spamassassin-3.3.1/sample-spam.txt' If the result is no different, then you could try re-registering and re-discovering and running the debug command as your amavis user again. su amavis -c 'razor-admin -register' su amavis -c 'razor-admin -discover' su amavis -c 'spamassassin -t -D razor2 < /usr/share/doc/spamassassin-3.3.1/sample-spam.txt' BTW, the sample spam does not appear to trigger a razor2 hit, but that is not the issue here. -- Gary V