[Mimedefang] disabling the virus scanner?

Fredrik Pettai pettai at nordu.net
Thu Mar 13 17:07:55 EDT 2014


On Mar 13, 2014, at 17:49 , Fredrik Pettai <pettai at nordu.net> 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 at ...>, 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.mimedefang.org/pipermail/mimedefang_lists.mimedefang.org/attachments/20140313/3233dc43/attachment.sig>


More information about the MIMEDefang mailing list