Hi.
I copied over the spamcop_uri.cf to /etc/mail/spamassassin and restarted
spamd but when I try to test it by feeding it a test email via:
spamassassin -t -D < /opt/spamassassin/Mail-SpamAssassin-2.63/sample-spam.txt
(which contains a "surbl-org-permanent-test-point.com" URL)
I get this error in the output:
---snip---
debug: running raw-body-text per-line regexp tests; score so far=0
debug: running uri tests; score so far=0
debug: uri tests: Done uriRE
Failed to compile URI SpamAssassin tests, skipping:
(syntax error at /etc/mail/spamassassin/spamcop_uri.cf, rule
SPAMCOP_URI_RBL, line 1, near "eval:"
syntax error at /etc/mail/spamassassin/bigevil.cf, rule BigEvilList_1614,
line 10990, near ";
}"
)
debug: running full-text regexp tests; score so far=0
---snip---
Thanks.
--Henry Kwan
On Fri, 16 Jul 2004, Chris Santerre wrote:
> It will work. I'm not sure why everyone is getting these. I've looked at the
> code in there and the only thing that stands out is that all of those lines
> contain
>
> "http://surbl-org-permanent-test-point.com/foo/bar"
>
> So there may lie the problem?
>
> --Chris
>
> >-----Original Message-----
> >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >Sent: Friday, July 16, 2004 1:14 PM
> >To: [EMAIL PROTECTED]
> >Subject: SURBL Help?
> >
> >
> >Hi. Did anyone run into a open_redirect problem when
> >installing the SURBL
> >plugin? (See error log below)
> >
> >And if I try to install it anyway by copying over the .cf
> >file, SA spits out
> >this error when testing:
> >
> >debug: uri tests: Done uriRE
> >Failed to compile URI SpamAssassin tests, skipping:
> >(syntax error at /etc/mail/spamassassin/spamcop_uri.cf, rule
> >SPAMCOP_URI_RBL, line 1, near "eval:"
> >syntax error at /etc/mail/spamassassin/bigevil.cf, rule
> >BigEvilList_23, line
> >1038, near ";
> >}"
> >
> >I'm running Fedora C1 with SA 2.63 and all the prerequisite
> >perl modules.
> >
> >Thanks.
> >
> >---snip---
> >(home/spam) mail 2%> perl Makefile.PL
> >Checking if your kit is complete...
> >Looks good
> >Writing Makefile for Mail::SpamAssassin::SpamCopURI
> >(home/spam) mail 3%> make
> >cp lib/Mail/SpamAssassin/Conf.pm blib/lib/Mail/SpamAssassin/Conf.pm
> >cp lib/Mail/SpamAssassin/PerMsgStatus.pm
> >blib/lib/Mail/SpamAssassin/PerMsgStatus.pm
> >cp lib/Mail/SpamAssassin/SpamCopURI.pm
> >blib/lib/Mail/SpamAssassin/SpamCopURI.pm
> >Manifying blib/man3/Mail::SpamAssassin::PerMsgStatus.3pm
> >Manifying blib/man3/Mail::SpamAssassin::Conf.3pm
> >Manifying blib/man3/Mail::SpamAssassin::SpamCopURI.3pm
> >(home/spam) mail 4%> make test
> >PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
> >"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> >t/blacklist........ok
> >t/dnsrbl...........ok
> >t/extract_urls.....ok
> >t/mailto...........ok
> >t/open_redirect....NOK 1# Failed test (t/open_redirect.t at line 37)
> >t/open_redirect....NOK 2# Failed test (t/open_redirect.t at line 44)
> >t/open_redirect....NOK 3# Failed test (t/open_redirect.t at line 52)
> >t/open_redirect....ok 4/5# Looks like you failed 3 tests of 5.
> >t/open_redirect....dubious
> >Test returned status 3 (wstat 768, 0x300)
> >Scalar found where operator expected at (eval 152) line 1, near "'int'
> >$__val"
> >(Missing operator before $__val?)
> >DIED. FAILED tests 1-3
> >Failed 3/5 tests, 40.00% okay
> >t/spamcopuri.......ok
> >t/whitelist........ok
> >Failed Test Stat Wstat Total Fail Failed List of Failed
> >---------------------------------------------------------------
> >----------------
> >t/open_redirect.t 3 768 5 3 60.00% 1-3
> >Failed 1/7 test scripts, 85.71% okay. 3/57 subtests failed,
> >94.74% okay.
> >make: *** [test_dynamic] Error 255
> >(home/spam) mail 5%>
> >
>