Hi there,
Got a problem with running toaster-watcher.pl
I get the error no quarantine dir! at /usr/local/sbin/toaster-watcher.pl line 243
So I looked into toaster-watcher.conf
qs_quarantine_dir = /var/spool/qscan/quarantine
but whatever I put the line qs_quarantine_dir to I always get the same error.. so I tried to put the variable into toaster-watcher.pl (maybe stupid but don't know how to test it in another way) Below the part from toaster-watcher.pl This will give me the next response...
lalala/var/spool/qscan/quarantine no quarantine dir! at /usr/local/sbin/toaster-watcher.pl line 246
Qmailscanner tested with test_installation.sh -doit and it did work fine!! See also below
Anybody an idea??
Thanx in advance,
Robbert
----------------------------------------------------------------------------------------------------
if ( $conf->{'install_qmailscanner'} && $conf->{'qs_quarantine_process'} )
{
my $qs_quarantine_dir = '/var/spool/qscan/quarantine';
print 'lalala';
print $qs_quarantine_dir;
print "checking qmail-scanner quarantine.\n" if $verbose;
$utility->logfile_append($logfile, ["watcher", "Processing the qmail-scanner quarantine"]) if $logfile;
my $qs_debug = $conf->{'qs_quarantine_verbose'};
if ($verbose && ! $qs_debug ) { $qs_debug++ };
my @list = $qmail->get_qmailscanner_virus_sender_ips($conf, $qs_debug);
my $count = @list;
if ($count && $qs_debug )
{
print "\nfound $count infected files\n\n";
};
if ($conf->{'qs_block_virus_senders'})
{
$qmail->UpdateVirusBlocks($conf, @list);
};
# Contributors
# Randy Ricker - Paid $50
# Anton Zavrin $20
# Randy Jordan - Paid $25
# Arie Gerszt $20
# Joe Kletch (Backpack, much better than $40 pledge)
# Marius Kirschner $20
};
----------------------------------------------------------------------------------------------------
test_installation.sh -doit
Sending standard test message - no viruses...
done!
Sending eicar test virus - should be caught by perlscanner module...
done!
Sending eicar test virus with altered filename - should only be caught by commercial anti-virus modules (if you have any)...
Sending bad spam message for anti-spam testing - In case you are using SpamAssassin...
Done!
Finished test. Now go and check Email sent to root
Hi again ;) ,
I actually found another post about this matter (http://www.tnpi.biz/support/forums/index.php/topic,197.msg635.html#msg635) and rerun toaster_setup.pl -s filter Like Matt sugested.. The only eroor I get is that the databases for spamassassin already excists which is logical... (see below)
So I no problem there.. my current settings for qmailscanner are (see below)
However i have another dir in toaster-watcher.conf I get the dir as /var/qmail/quarantine (see settings) So I changed my settings in the conf.. I added the line
print $conf->{'qs_quarantine_dir'};
to see what the result would be... /var/qmail/quarantineno quarantine dir! at /usr/local/sbin/toaster-watcher.pl line 244
So That's not it either... still the ownership rights should be ok:
drwxr-x--- 5 clamav clamav 512 Jun 21 11:16 quarantine
So.... ehhhhh ??? ???... heeeeeeeellllpppppp ;D maybe??
Regards Robbert
----------------------------------------------------------------------------------------------------------------------------
Current settings
user = clamav
qmail directory = /var/qmail
work directory = /var/qmail/simscan
control directory = /var/qmail/control
qmail queue program = /var/qmail/bin/qmail-queue
clamdscan program = /usr/local/bin/clamdscan
clamav scan = ON
trophie scanning = OFF
attachement scan = ON
ripmime program = /usr/local/bin/ripmime
custom smtp reject = ON
drop message = OFF
regex scanner = OFF
quarantine processing = ON
quarantine directory = /var/qmail/quarantine
domain based checking = ON
add received header = ON
spam scanning = ON
spamc program = /usr/local/bin/spamc
spamc arguments =
spamc user = ON
authenticated users scanned = OFF
spam passthru = OFF
spam hits = 12
----------------------------------------------------------------------------------------------------------------------------------------------
SpamAssassin is installed, setting up MySQL databases
spamassassin: spamassassin database exists!
ERROR 1050 (42S01) at line 2: Table 'bayes_expire' already exists
syscmd: /usr/local/bin/mysql spamassassin < /usr/local/share/doc/p5-Mail-SpamAssassin/sql/bayes_mysql.sql
syscmd: result: 256
ERROR 1050 (42S01) at line 1: Table 'awl' already exists
syscmd: /usr/local/bin/mysql spamassassin < /usr/local/share/doc/p5-Mail-SpamAssassin/sql/awl_mysql.sql
syscmd: result: 256
ERROR 1050 (42S01) at line 1: Table 'userpref' already exists
syscmd: /usr/local/bin/mysql spamassassin < /usr/local/share/doc/p5-Mail-SpamAssassin/sql/userpref_mysql.sql
syscmd: result: 256