[Mimedefang] Getting MD to recognize clamscan/clamd

Jon R. Kibler Jon.Kibler at aset.com
Wed Jan 7 13:40:23 EST 2004


Greetings:

Have been using MD 2.36 on Solaris 9 (sparc) for some time now without any problem. However, we decided to add clamav virus protection and we cannot seem to get MD's configure to recognize it. Also, it seems to find BDC AV which we do not have. I looked at configure.in and didn't see an obvious problem, and I browsed the archives for a while and didn't seem to see this same problem described...

I should also add that uvscan, clamscan, and clamd are all in /usr/local/bin, and it finds uvscan ok, but not any of the clamav stuff in the same directory.

Configuration used, configure output, and AV software path info follow signature paragraph. Any ideas what may be wrong here?

All feedback appreciated.

Jon R. Kibler
Chief Technical Officer
A.S.E.T., Inc.
Charleston, SC  USA
(843) 849-8214




CONFIGURE COMMAND RUN FILE
==========================
#!/bin/sh
# run-configure -- store options given manually
./configure --sysconfdir=/etc/mail \
            --with-confsubdir=mimedefang \
            --with-spooldir=/var/spool/MIMEDefang/run \
            --with-quarantinedir=/var/spool/MIMEDefang/quarantine \
            --with-sendmail=/usr/lib/sendmail \
            --with-user=defang \
            --with-milterinc=./sendmail/include \
            --with-milterlib=./sendmail/lib \
            --enable-pthread-flag \
            --disable-antivir \
            --disable-vexira \
            --enable-uvscan \
            --disable-bdc \
            --disable-sweep \
            --disable-trend \
            --disable-AvpLinux \
            --enable-clamav \
            --disable-fsav \
            --disable-fprot \
            --disable-sophie \
            --disable-nvcc \
            --enable-clamd \
            --disable-trophie


OUTPUT FROM ./run-configure
===========================
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ar... (cached) ar
checking for a BSD compatible install... ./install-sh -c
checking for SCO UNIX or SCO Linux... no
checking for perl... (cached) /usr/local/bin/perl
checking whether socklen_t is defined... yes
checking for wait3 that fills in rusage... (cached) no
checking for nm... (cached) /usr/xpg4/bin/nm
checking for Perl module IO::Socket... ok
checking for Perl module MIME::Tools 5.410 ()... ok
checking for Perl module MIME::WordDecoder... ok
checking for Perl module Digest::SHA1... ok
checking for Perl module Sys::Syslog... ok
checking for Perl module Unix::Syslog... ok
checking for Perl module Mail::SpamAssassin 1.6 or better... no
checking for Perl module Anomy::HTMLCleaner... no
checking for Perl module HTML::Parser... yes
checking for Perl module File::Scan... no
checking that MIME-Tools has been patched... yes
checking if setlogsock('unix') works... no
checking how to run the C preprocessor... (cached) gcc -E
checking for getopt.h... (cached) no
checking for unistd.h... (cached) yes
checking for stdint.h... (cached) no
checking whether stdint.h defines uint32_t... no
checking whether sys/types.h defines uint32_t... yes
checking whether sig_atomic_t is defined... yes
Forcing use of -pthread C compiler flag
checking for res_init in -lresolv... (cached) yes
checking for htons in -lsocket... (cached) yes
checking for gethostbyname in -lnsl... (cached) yes
checking for pthread_once in -lpthread... (cached) yes
checking for initgroups... (cached) yes
checking for getpwnam_r... (cached) yes
checking for setrlimit... (cached) yes
checking for snprintf... (cached) yes
checking for vsnprintf... (cached) yes
checking for readdir_r... (cached) yes
checking for pathconf... (cached) yes
checking for inet_ntop... (cached) yes
checking for libmilter/mfapi.h... (cached) ./sendmail/include/libmilter/mfapi.h
checking for uvscan... (cached) /usr/local/bin/uvscan
checking for clamscan... (cached) /bin/false
checking for clamd... (cached) /bin/false
checking for libmilter.a... (cached) ./sendmail/lib/libmilter.a
checking for libsm.a... (cached) no
checking for rm... (cached) /usr/xpg4/bin/rm
checking whether libmilter must be linked with libsm... no
creating ./config.status
creating Makefile
creating mimedefang.pl
creating examples/init-script
creating mimedefang-filter.5
creating mimedefang-multiplexor.8
creating mimedefang-protocol.7
creating mimedefang.8
creating mimedefang.pl.8
creating md-mx-ctrl.8
creating watch-mimedefang
creating redhat/mimedefang-init
creating redhat/mimedefang-sysconfig
creating config.h
config.h is unchanged

*** Virus scanner detection results:
H+BEDV   'antivir'   NO (Disabled by configure command)
Vexira   'vexira'    NO (Disabled by configure command)
NAI      'uvscan'    YES - /usr/local/bin/uvscan
BDC      'bdc'       YES - 
Sophos   'sweep'     NO (Disabled by configure command)
TREND    'vscan'     NO (Disabled by configure command)
CLAMSCAN 'clamav'    NO (not found)
AVP      'AvpLinux'  NO (Disabled by configure command)
FSAV     'fsav'      NO (Disabled by configure command)
FPROT    'f-prot'    NO (Disabled by configure command)
SOPHIE   'sophie'    NO (Disabled by configure command)
NVCC     'nvcc'      NO (Disabled by configure command)
CLAMD    'clamd'     NO (not found)
File::Scan           NO
TROPHIE  'trophie'   NO (Disabled by configure command)
Did not find Mail::SpamAssassin.  Do not use spam_assassin_* functions
Did not find Anomy::HTMLCleaner.  Do not use anomy_clean_html()
Found HTML::Parser.  You may use append_html_boilerplate()

Note: SpamAssassin, File::Scan, HTML::Parser and Anomy::HTMLCleaner are
detected at run-time, so if you install or remove any of those modules, you
do not need to re-run ./configure and make a new mimedefang.pl.



PATH INFO ON VIRUS SCANNERS
===========================
# which uvscan
/usr/local/bin/uvscan

# which clamscan
/usr/local/bin/clamscan

# which clamd
/usr/local/sbin/clamd

# ll /usr/local/bin/uvscan /usr/local/bin/clamscan /usr/local/sbin/clamd
lrwxrwxrwx   1 root     other         23 Aug 19 18:45 /usr/local/bin/uvscan -> /usr/local/uvscan/uvscan*
-rwxr-xr-x   1 root     other     160312 Jan  6 15:57 /usr/local/bin/clamscan*
-rwxr-xr-x   1 root     other     261912 Jan  6 15:57 /usr/local/sbin/clamd*

# which bdc
no bdc in /usr/local/sbin /usr/local/bin /usr/xpg4/bin /usr/sbin /usr/bin /usr/dt/bin /usr/openwin/bin /bin /usr/ucb /usr/ccs/bin /opt/hpnpl/bin /usr/local/ssl/bin /usr/local/apache/bin /usr/local/sbin /usr/local/BerkeleyDB.4.1/bin /usr/local/mysql/bin /usr/local/tawk/bin /local/bin /local/sbin /opt/Acrobat5/bin




==================================================
Filtered by: TRUSTEM.COM's Email Filtering Service
http://www.trustem.com/
No Spam. No Viruses. Just Good Clean Email.



More information about the MIMEDefang mailing list