Mail Server Anti-Virus for Linux
Mcafee Version

made by C.J.T.L.
All Right Reserved



  System Version:

1. System Request : Redhat 6.2,7.0,7.2,7.3,8.0,9.0
2. Package Request : Perl 5.6 or above, Procmail
3. Mail System : Sendmail 8.8.8 or above
4. Mcafee Package Version : 4.24
5. Amavis Package Version : 0.3.12

Uvscan Setup Steps :

#mount -t iso /dev/cdrom
mount the Mcafee CD-ROM on the system

#mkdir /usr/local/setuptemp
make a temp package install directory

#cp /dev/cdrom/vlnx424l.tar.z /usr/local/setuptemp
cp the virus package to the system

#cd /usr/local/setuptemp
#tar -zvxf vlnx424l.tar.z
uncompress the package

#./install-uvscan
follow the step to install the Mcafee for Linux

Ps. Please use the default Directory to install mcafee package
/usr/loca/uvscan

Perl Modules Setup Steps :
  
    Please fllow the list order to install the packages

    IO-stringy
    http://www.cpan.org/authors/id/ERYQ/IO-stringy-2.108.tar.gz

    Syslog
    http://www.cpan.org/authors/id/M/MH/MHARNISCH/Syslog-0.95.tar.gz

    MailTools
    http://www.cpan.org/authors/id/M/MA/MARKOV/MailTools-1.40.tar.gz

    MIME-Base64
    http://www.cpan.org/authors/id/GAAS/MIME-Base64-2.12.tar.gz

    MIME-tools version 5.313 or better (!!)
    http://www.cpan.org/authors/id/ERYQ/MIME-tools-5.411.tar.gz

    Convert-UUlib
    http://www.cpan.org/authors/id/MLEHMANN/Convert-UUlib-0.201.tar.gz

    Convert-TNEF 0.06 or better (!!)
    http://www.cpan.org/authors/id/D/DO/DOUGW/Convert-TNEF-0.16.tar.gz

    Compress-Zlib
    http://www.cpan.org/authors/id/PMQS/Compress-Zlib-1.14.tar.gz

    Archive-Tar
    http://www.cpan.org/authors/id/SRZ/Archive-Tar-0.22.tar.gz

    Archive-Zip
    http://www.cpan.org/authors/id/N/NE/NEDKONZ/Archive-Zip-0.11.tar.gz

    libnet
    http://www.cpan.org/authors/id/GBARR/Bundle-libnet-1.00.tar.gz

#tar -zvxf xxx.gz
#cd xxx
#perl Makefile.PL; make; make test; make install

ps. xxx is the package name
ex: IO-stringy-2.108.tar.gz

  Umcompress Software Setup Steps:

Please install the Umcompress packages on Linux
arc, bunzip2, lha, unarj, uncompress,unrar, zoo

Amavis Package Setup Steps :

Please down the amavis package from http://www.amavis.org/dist/perl/amavis-0.3.12.tar.gz

#cp amavis-0.3.12.tar.gz /usr/local
#cd /usr/local
#tar amavis-0.3.12.tar.gz
#cd amavis-0.3.12
#./configure -enable-relay -enable-sendmail
#make
#make install

     
        1. Change the mail mquaue
            O QueueDirectory=/var/spool/mqamavis
        2.  change the staties

            O StatusFile=/var/log/amavis.st
        3.  change Ruleset 0  below
            R$*     $: $>Parse0 $1      initial parsing
            R<@>    $#local $: <@>      special case error msgs
            R$*     $: $>98 $1          handle local hacks
            R$*     $#amavis $:$1
            #R$*    $: $>Parse1 $1      final parsing

            insert

            R$*     $#amavis $:$1

         4. Insert  mailer define :
            Mamavis,  P=/usr/sbin/amavis, F=mlsACDFMS5:/|@qhP, S=0, R=0
                      T=DNS/RFC822/X-Unix,
                      A=amavis $f $u

       5.  Create Directory
        mkdir /var/spool/mqamavis
      
  Sendmail.cf Setup Steps :

Please change the sendmail.cf data

Mlocal, P=/usr/sbin/amavis, F=lsDFMAw5:/|@qSPfhn9, S=EnvFromL/HdrFromL,
        R=EnvToL/HdrToL,
        T=DNS/RFC822/X-Unix,
        A=amavis $f $u /usr/bin/procmail -Y -a $h -d $u

Ps. After change please restart the sendmail program
Redhat 9.0 Setup

<1> Redhat9 need to install the Compat-stdc++  for vscan to use the  libstdc++.so.2.8
<2> Before you running the uvscan command please add the LD_PRELOAD=/lib/libc.so.6
    ex: LD_PRELOAD=/lib/libc.so.6 uvscan /home
<3> Please remove the -T in the amavis script "!/usr/sbin/perl -T "
<4> Please add the "LD_PRELOAD=/lib/libc.so.6" in Amavis script  
<5> /etc/aliase.db need to change the user permission for other to write the file
<6> Please change the amavis compiler arg. for sendmail.cf in "/etc/mail"


 

[鄙雕兔這個人 ] [曾經 ] [發表的文 ] [作過的事 ] [電腦的問題 ]

[生活記載 ] [電腦手扎 ] [說說鄙雕兔 ] [ 命理講義 ]


MADE BY C.J.T.L.
[回首頁]

Copyright(c)2003 by C.J.T.L.
All Right Reserved