Problems MailScanner 4.78.17

Jules Field MailScanner at ecs.soton.ac.uk
Sun Nov 22 12:14:23 GMT 2009



On 20/11/2009 15:24, ThB wrote:
> Hello,
>
> I've got some problems running MailScanner 4.78.18
>
> a) Taint problem in SweepOther.pm&  SweepViruses.pm
>    
I hope I have found them. Try the latest beta.
> b) Processing&  SpamAssassin Cache Databases problems
>    
I cannot reproduce this fault. Judging from the "Cannot cd to dir ... to 
read messages" I would suggest you have put something wrong in your 
MailScanner.conf file. "MailScanner --changed" will help you find what's 
wrong.
> I'm running MailScanner on Solaris 9 and Perl 5.8.9
> (also tried 5.10.1 but had the same problems)
>
>
> a) Taint problem with virus scanners
> ------------------------------------
> Virus Scanners = clamavmodule sophossavi
>
> MailScanner --debug
>
> In Debugging mode, not forking...
> Trying to setlogsock(native)
> Building a message batch to scan...
> Have a batch of 1 message.
> File checker failed with real error: Insecure dependency in exec while running with -T switch at /opt/MailScanner/lib/MailScanner/SweepOther.pm line 431.
>   at /opt/MailScanner/lib/MailScanner/SweepOther.pm line 443
> Commercial virus checker failed with real error: path argument specified to scan() is tainted at /opt/MailScanner/lib/MailScanner/SweepViruses.pm line 1169
>   at /opt/MailScanner/lib/MailScanner/SweepViruses.pm line 1102
> Stopping now as you are debugging me.
>
>
> Note: for some reasons I cannot switch to clamd and sophie is not supported by MailScanner.
>
>
> b) Processing&  SpamAssassin Cache Databases problems
> -----------------------------------------------------
>
> There are 2 problems.
>
> 1. MailScanner ignores the configuration settings
> configured:
> Processing Attempts Database = /tmp/MailScanner/Processing.db
> SpamAssassin Cache Database File = /tmp/MailScanner/SpamAssassin.cache.db
>
> MailScanner creates the configured databases if they do not exist
> ls -la /tmp/MailScanner/
> total 32
> drwxr-xr-x 2 mailscn mail  265 2009-11-20 15:19 ./
> drwxrwxrwt 3 root    sys   268 2009-11-20 15:19 ../
> -rw------- 1 mailscn mail 4096 2009-11-20 15:19 Processing.db
> -rw------- 1 mailscn mail 5120 2009-11-20 15:18 SpamAssassin.cache.db
>
> but using:
> /var/spool/MailScanner/incoming/Processing.db
> /var/spool/MailScanner/incoming/SpamAssassin.cache.db
>
> Logfile:
> Nov 20 15:18:00 caval MailScanner.conf.caval[3507]: [ID 702911 local1.info] Using SpamAssassin results cache
> Nov 20 15:18:00 caval MailScanner.conf.caval[3507]: [ID 702911 local1.info] Connected to SpamAssassin cache database
> Nov 20 15:18:00 caval MailScanner.conf.caval[3507]: [ID 702911 local1.info] Enabling SpamAssassin auto-whitelist functionality...
> Nov 20 15:18:28 caval MailScanner.conf.caval[3507]: [ID 702911 local1.info] SophosSAVI 4.45 (engine 2.90) recognizing 991629 viruses
> Nov 20 15:18:28 caval MailScanner.conf.caval[3507]: [ID 702911 local1.info] SophosSAVI using 581 IDE files
> Nov 20 15:19:01 caval MailScanner.conf.caval[3507]: [ID 702911 local1.info] Connected to Processing Attempts Database
> Nov 20 15:19:01 caval MailScanner.conf.caval[3507]: [ID 702911 local1.info] Found 0 messages in the Processing Attempts Database
> Nov 20 15:19:01 caval MailScanner.conf.caval[3507]: [ID 702911 local1.info] Using locktype = posix
> Nov 20 15:19:01 caval MailScanner.conf.caval[3507]: [ID 702911 local1.warning] Cannot cd to dir /var/spool/MailScanner/incoming/Processing.db to read messages, Not a directory
> Nov 20 15:19:01 caval MailScanner.conf.caval[3507]: [ID 702911 local1.warning] Cannot cd to dir /var/spool/MailScanner/incoming/SpamAssassin.cache.db to read messages, Not a directory
>
>
> MailScanner.conf
> Incoming Work Dir = /tmp/MailScanner
> SpamAssassin Temporary Dir = /tmp/MailScanner
> SpamAssassin Cache Database File = /tmp/MailScanner/SpamAssassin.cache.db
> Processing Attempts Database = /tmp/MailScanner/Processing.db
>
> Btw:
> This configuration was workling well with the old MailScanner 4.64.3-2.
> I made the configuration upgrade using the upgrade_MailScanner_conf script. (no processing database of course).
>
>
> Perl&  Modules
> --------------
> /opt/MailScanner/bin/MailScanner -v
> Running on
> SunOS caval 5.9 Generic_Virtual sun4v sparc SUNW,Sun-Blade-T6320
> This is Perl version 5.008009 (5.8.9)
>
> This is MailScanner version 4.78.17
> Module versions are:
> 1.00    AnyDBM_File
> 1.16    Archive::Zip
> 0.23    bignum
> 1.10    Carp
> 1.41    Compress::Zlib
> 1.119   Convert::BinHex
> 0.17    Convert::TNEF
> 2.121_17        Data::Dumper
> 2.27    Date::Parse
> 1.02    DirHandle
> 1.06    Fcntl
> 2.77    File::Basename
> 2.13    File::Copy
> 2.01    FileHandle
> 2.07_02 File::Path
> 0.20    File::Temp
> 0.90    Filesys::Df
> 1.35    HTML::Entities
> 3.56    HTML::Parser
> 2.37    HTML::TokeParser
> 1.23    IO
> 1.14    IO::File
> 1.13    IO::Pipe
> 2.04    Mail::Header
> 1.89    Math::BigInt
> 0.22    Math::BigRat
> 3.07    MIME::Base64
> 5.427   MIME::Decoder
> 5.427   MIME::Decoder::UU
> 5.427   MIME::Head
> 5.427   MIME::Parser
> 3.07    MIME::QuotedPrint
> 5.427   MIME::Tools
> 0.13    Net::CIDR
> 1.25    Net::IP
> 0.16    OLE::Storage_Lite
> 1.04    Pod::Escapes
> 3.05    Pod::Simple
> 1.15    POSIX
> 1.19    Scalar::Util
> 1.81    Socket
> 2.19    Storable
> 1.4     Sys::Hostname::Long
> 0.27    Sys::Syslog
> 1.26    Test::Pod
> 0.86    Test::Simple
> 1.9715  Time::HiRes
> 1.02    Time::localtime
>
> Optional module versions are:
> 1.38    Archive::Tar
> 0.23    bignum
> missing Business::ISBN
> missing Business::ISBN::Data
> missing Data::Dump
> 1.817   DB_File
> 1.25    DBD::SQLite
> 1.607   DBI
> 1.15    Digest
> 1.01    Digest::HMAC
> 2.37    Digest::MD5
> 2.11    Digest::SHA1
> missing Encode::Detect
> 0.17015 Error
> missing ExtUtils::CBuilder
> 2.19    ExtUtils::ParseXS
> 2.38    Getopt::Long
> 0.45    Inline
> missing IO::String
> 1.09    IO::Zlib
> 2.27    IP::Country
> 0.29    Mail::ClamAV
> 3.002005        Mail::SpamAssassin
> v2.004  Mail::SPF
> missing Mail::SPF::Query
> 0.35    Module::Build
> missing Net::CIDR::Lite
> 0.65    Net::DNS
> v0.003  Net::DNS::Resolver::Programmable
> missing Net::LDAP
>   4.027  NetAddr::IP
> 1.94    Parse::RecDescent
> 0.30    SAVI
> 3.16    Test::Harness
> missing Test::Manifest
> 1.98    Text::Balanced
> 1.40    URI
> 0.78    version
> missing YAML
>
>
> perl -V
> Summary of my perl5 (revision 5 version 8 subversion 9) configuration:
>    Platform:
>      osname=solaris, osvers=2.9, archname=sun4-solaris-thread-multi
>      uname='sunos sphinx 5.9 generic_virtual sun4u sparc sunw,sun-fire-v240 '
>      config_args=''
>      hint=recommended, useposix=true, d_sigaction=define
>      usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
>      useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
>      use64bitint=undef use64bitall=undef uselongdouble=undef
>      usemymalloc=n, bincompat5005=undef
>    Compiler:
>      cc='/opt/SUNWspro/bin/cc', ccflags ='-D_REENTRANT -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
>      optimize='-O',
>      cppflags='-D_REENTRANT -I/usr/local/include'
>      ccversion='Sun C 5.8 Patch 121015-06 2007/10/03', gccversion='', gccosandvers=''
>      intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
>      d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
>      ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
>      alignbytes=8, prototype=define
>    Linker and Libraries:
>      ld='/opt/SUNWspro/bin/cc', ldflags =' -L/usr/lib -L/usr/local/lib '
>      libpth=/usr/lib /usr/local/lib
>      libs=-lsocket -lnsl -ldb -ldl -lm -lpthread -lc
>      perllibs=-lsocket -lnsl -ldl -lm -lpthread -lc
>      libc=/usr/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
>      gnulibc_version=''
>    Dynamic Linking:
>      dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
>      cccdlflags='-KPIC', lddlflags='-G -L/usr/lib -L/usr/local/lib'
>
>
> Characteristics of this binary (from libperl):
>    Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
>                          USE_FAST_STDIO USE_ITHREADS USE_LARGE_FILES
>                          USE_PERLIO USE_REENTRANT_API
>    Built under solaris
>    Compiled at Nov 19 2009 13:28:41
>    @INC:
>      /opt/MailScanner/perl/lib/5.8.9/sun4-solaris-thread-multi
>      /opt/MailScanner/perl/lib/5.8.9
>      /opt/MailScanner/perl/lib/site_perl/5.8.9/sun4-solaris-thread-multi
>      /opt/MailScanner/perl/lib/site_perl/5.8.9
>      .
>
>
> Any help is appreciated
> regards and have a greate weekend
> Thomas
>
>
>    

Jules

-- 
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at twitter.com/JulesFM and twitter.com/MailScanner


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list