On Mar 13, 2014, at 17:49 , Fredrik Pettai <[email protected]> wrote: > Hi, > > I want to disable the virus scanner (ClamAV). > > I've tried to add this to global part of mimedefang-filter: > > […] > > # Disable Checking inside Zip > #$Features{"Archive::Zip"} = ""; > > # Disable ClamAV > $Features{"Virus:CLAMAV"} = ""; > $Features{"Virus:CLAMD"} = ""; > > # Detect and load Perl modules > detect_and_load_perl_modules(); > > […] > > Which I thought should be enough… (plus running md-mx-ctrl reread) > > but still, I get this in sendmail logs: > > Mar 13 16:37:48 smtp mimedefang.pl[603]: s2DGbkeN002529: Could not connect to > clamd daemon at /var/spool/MIMEDefang/clamd.sock > Mar 13 16:37:48 smtp mimedefang.pl[603]: s2DGbkeN002529: Problem running > virus scanner: code=999, category=cannot-execute, action=tempfail > Mar 13 16:37:48 smtp sm-mta[2529]: s2DGbkeN002529: Milter: data, reject=451 > 4.3.0 Problem running virus-scanner > Mar 13 16:37:48 smtp sm-mta[2529]: s2DGbkeN002529: to=<pettai@...>, > delay=00:00:00, pri=32681, stat=Problem running virus-scanner > > I've also tried restarted mimedefang + mimedefang-multiplexor, and even > uninstalled ClamAV, but even that didn't help… > > What could be wrong?
Simply hardcoding mimedefang.pl like:
-$Features{'Virus:CLAMAV'} = ((('/usr/pkg/bin/clamscan' ne '/bin/false') and
(-x '/usr/pkg/bin/clamscan')) ? '/usr/pkg/bin/clamscan' : 0);
-$Features{'Virus:CLAMD'} = ((('/usr/pkg/sbin/clamd' ne '/bin/false') and
(-x '/usr/pkg/sbin/clamd')) ? '/usr/pkg/sbin/clamd' : 0);
+$Features{'Virus:CLAMAV'} = 0;
+$Features{'Virus:CLAMD'} = 0;
works fine, but I feel that this shouldn't been needed.
/P
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ NOTE: If there is a disclaimer or other legal boilerplate in the above message, it is NULL AND VOID. You may ignore it. Visit http://www.mimedefang.org and http://www.roaringpenguin.com MIMEDefang mailing list [email protected] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

