Forum Index Search Forum Register Log in

Runs on XP to Win 10

Current

Download 7.0

Download 7.1 Beta5 upgrade



A donation makes a contribution towards the time and effort that's going in to running this site.

Steffen

Contact:
My mail address is
at the top of the paypal form :

Your donations will help to keep this site alive and well.


Update your links !! November 2016 the forum is at www.apachelounge.com/sambar

In the forum there are links to sambarserver.info,
replace "sambarserver.info" with "apachelounge.com/sambar"
How To :: SpamAssassin Win32

 
Post new topic   Reply to topic    Sambar Forum Index -> How-to's & Documentation & Tips
View previous topic :: View next topic  
Author Message
deathrock



Joined: 03 Feb 2005
Posts: 33

PostPosted: Sun 15 Jul '07 9:28    Post subject: How To :: SpamAssassin Win32 Reply with quote

Hello,

Install SpamAssassin for Sambar (Win Platform)

1. Download command-line tools
http://prdownloads.sourceforge.net/sawin32/SpamAssassin-3.1.7-win32.zip?download

2. Upload it to /bin/ directory without replacing files (.dll)

3. Modify the mailcgi.pl
my $mailMessage=`spamc < $tmpFile`;

4. Run daemon
spamd.exe --syslog="log.txt"

5. Configure Sambar Router CGI Script to mailcgi.pl

6. Check header of your mail for
(demo)
X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on deathrock.be
X-Spam-Level: *****
X-Spam-Status: No, score=6.0 required=6.3 tests=RATWARE_RCVD_PF,RCVD_IN_XBL
autolearn=no version=3.1.7


Wink

I'm trying now to configure ClamAV to work with SpamAssassin and Sambar Mail Server.

Sorry for my bad english, I'm french members Wink
Back to top
View user's profile Visit poster's website
OnCable



Joined: 28 Jul 2004
Posts: 42

PostPosted: Fri 20 Jul '07 13:31    Post subject: Reply with quote

I followed your instructions but there must be something missing. The "log.txt" file that is created contains many errors.

Here is a small example...

Quote:

Thu Jul 19 22:54:59 2007 [1132] info: config: failed to parse line, skipping: use_pyzor 0
Thu Jul 19 22:55:42 2007 [1132] warn: razor2: razor2 check failed: No such file or directory razor2: razor2 had unknown error during get_server_info at /PerlApp/Mail/SpamAssassin/Plugin/Razor2.pm line 180. at /PerlApp/Mail/SpamAssassin/Plugin/Razor2.pm line 318.
Thu Jul 19 22:56:01 2007 [1132] warn: Use of uninitialized value in sprintf at /PerlApp/Mail/SpamAssassin/Plugin/DCC.pm line 583.
Thu Jul 19 22:56:01 2007 [1132] warn: Use of uninitialized value in sprintf at /PerlApp/Mail/SpamAssassin/Plugin/DCC.pm line 583.
Thu Jul 19 22:56:01 2007 [1132] info: rules: meta test DIGEST_MULTIPLE has undefined dependency 'PYZOR_CHECK'
Thu Jul 19 22:56:02 2007 [1132] info: spamd: server started on port 783/tcp (running version 3.1.7)
Thu Jul 19 22:56:02 2007 [1132] info: spamd: server pid: 1132
Thu Jul 19 22:56:03 2007 [1132] info: spamd: server successfully spawned child process, pid -192
Thu Jul 19 22:56:05 2007 [1132] info: spamd: server successfully spawned child process, pid -1780
Thu Jul 19 22:58:15 2007 [1132] warn: Use of uninitialized value in pack at /PerlApp/Mail/SpamAssassin/SpamdForkScaling.pm line 483.
Thu Jul 19 22:58:15 2007 [1132] warn: syswrite() on closed filehandle GEN8 at IO/Handle.pm line 451.
Thu Jul 19 22:58:15 2007 [1132] info: spamd: connection from localhost [127.0.0.1] at port 3777
Thu Jul 19 22:58:15 2007 [1132] warn: spamd: still running as root: user not specified with -u, not found, or set to root, falling back to nobody at spamd.raw line 1199, <GEN9> line 3.
Thu Jul 19 22:58:15 2007 [1132] info: spamd: processing message <01c7548d$aae82150$6c822ecf@individualsyerevan> for (unknown):0
Thu Jul 19 22:59:03 2007 [1132] warn: razor2: razor2 check failed: No such file or directory razor2: razor2 had unknown error during get_server_info at /PerlApp/Mail/SpamAssassin/Plugin/Razor2.pm line 180, <GEN9> line 61. at /PerlApp/Mail/SpamAssassin/Plugin/Razor2.pm line 318, <GEN9> line 61.
Thu Jul 19 22:59:18 2007 [1132] warn: Use of uninitialized value in sprintf at /PerlApp/Mail/SpamAssassin/Plugin/DCC.pm line 583.
Thu Jul 19 22:59:18 2007 [1132] warn: Use of uninitialized value in sprintf at /PerlApp/Mail/SpamAssassin/Plugin/DCC.pm line 583.
Thu Jul 19 22:59:19 2007 [1132] info: spamd: clean message (3.4/6.3) for (unknown):0 in 63.6 seconds, 2258 bytes.


Is there maybe something else that needs to be installed or configured?

Thanks.
Back to top
View user's profile
Steffen



Joined: 07 Jun 2004
Posts: 413
Location: Netherlands

PostPosted: Fri 20 Jul '07 17:14    Post subject: Reply with quote

See in etc\spamassassin\v310.pre

comment out :

loadplugin Mail::SpamAssassin::Plugin::DCC

loadplugin Mail::SpamAssassin::Plugin::Razor2

loadplugin Mail::SpamAssassin::Plugin::AccessDB
Back to top
View user's profile Visit poster's website
deathrock



Joined: 03 Feb 2005
Posts: 33

PostPosted: Fri 20 Jul '07 18:33    Post subject: Reply with quote

Hello,

I check my config because RAZOR2 is working for me

Thu Jul 12 22:00:46 2007 [3156] info: spamd: result: Y 11 - DCC_CHECK,DIGEST_MULTIPLE,DRUGS_ERECTILE,RAZOR2_CF_RANGE_51_100,RAZOR2_CF_RANGE_E8_51_100,RAZOR2_CHECK,URIBL_JP_SURBL scantime=4.1,size=725,user=(unknown),uid=0,required_score=6.3,rhost=saturn,raddr=127.0.0.1,rport=1710,mid=<001a01c7c4cf$984f0ba0$06c829a4@PORTSTEPH>,autolearn=spam
Back to top
View user's profile Visit poster's website
crawdaddy



Joined: 08 Jun 2004
Posts: 36

PostPosted: Mon 23 Jul '07 18:50    Post subject: Reply with quote

In the Clamwin Help file it has this information about command line use

The database directory must be specified, using the --database=FILE/DIR parameter. In a default installation, the command to scan the entire C: drive would be:

clamscan.exe --database="C:\Program Files\ClamWin\db" --recursive C:\

Note the use of the --recursive parameter to ensure that sub-directories are scanned.

When run from the command line, a value will be returned, indicating whether or not a virus was detected. If no virus is found, the return value will be 0. If a virus is found, the return value is 1. Any other return value indicates an error.

If you read the help and can get it working then I want to know how you did it.
Back to top
View user's profile

Post new topic   Reply to topic    Sambar Forum Index -> How-to's & Documentation & Tips
Page 1 of 1