ms, sanesecurity, clamd and freebsd
mikael at syska.dk
Tue Oct 9 00:47:11 IST 2007
Mikael Syska wrote:
> Thanks for the help both ...
> René Berber wrote:
>> This works with regular sed:
>> clam_db_dir=`"$clamscan" --debug "$test_file" 2>&1 | \
>> sed -ne 's/\/$//; s/^.*oading databases
>> from\(.*\)$/\1/p' | head -1`
>> Since only the L in loading is capitalized in the output, getting rid
>> of the i
>> flag and that letter does the job.
> Well, I just hardcoded the path now ... there seem to be some problems
> with a traling " " space infront of the path ... like " /var/db/clamav"
> Its now downloading fine ... but there seem to be some problems
> importing the signatures ... havent search the web yet, as I'm on the
> way to bet now, just wanted to say thanks for the help ... very
> Output from the log:
> Oct 9 01:28:22 spam02 sanesecurity: Error executing command
> <<</usr/local/bin/clamscan --quiet -d
> /tmp/sanesecurity.XXXXXXXX.mfr7015O/test.file>>>, exit status: 50,
> output: <<<LibClamAV Error: hex2int() translation problem
> (109)\nLibClamAV Error: cli_loadhdb: Malformed MD5 string at line
> 1\nLibClamAV Error: cli_loadhdb: Problem parsing database at line
> 1\nLibClamAV Error: Can't load
> /tmp/sanesecurity.XXXXXXXX.mfr7015O/MSRBL-SPAM.hdb: Malformed
> database\nERROR: Malformed database>>>
> Oct 9 01:28:22 spam02 sanesecurity: ClamAV had a problem using
> '/tmp/sanesecurity.XXXXXXXX.mfr7015O/MSRBL-SPAM.hdb' (exit status: 50).
> Oct 9 01:28:22 spam02 sanesecurity: We will NOT install
> '/tmp/sanesecurity.XXXXXXXX.mfr7015O/MSRBL-SPAM.hdb' into the database
> Oct 9 01:28:22 spam02 sanesecurity: Preserving the corrupt
> file as '/var/db/clamav/MSRBL-SPAM.hdb.bad' for you to check.
> see you guys later to day ...
> // ouT
this seems to be a problem with the MSRBL-SPAM ....
Seem to catch both "scams" and "Phishing" signatures from the site:
So i'm a happy now ... the other problem will probebly fix it self later ...
Just need to turn on, so mail marked with "clamav" does not get scanned
to save some CPU power ...
More information about the MailScanner