* Ripmime 설치
-- 수동 설치 --
[root@localhost]#cd /usr/local/src
[root@localhost]# wget https://dl.fedoraproject.org/pub/epel/6/x86_64/Packages/r/ripmime-1.4.0.9-2.el6.x86_64.rpm
[root@localhost]# rpm -ivh ripmime-1.4.0.9-2.el6.x86_64.rpm
[root@localhost]# cd /usr/src/redhat/SPECS
[root@localhost]# rpmbuild -ba ripmime.spec
[root@localhost]# cd /usr/src/redhat/RPMS/i386
[root@localhost]# rpm -Uvh ripmime*
[간단 설치 비고]
Download the latest epel-release rpm from
https://dl.fedoraproject.org/pub/epel/6/x86_64/Packages/r/ripmime-1.4.0.9-2.el6.x86_64.rpm
Install epel-release rpm:
# rpm -Uvh epel-release*rpm
Install ripmime rpm package:
-- 자동 설치 * 추천 --
[root@ns1 src]# yum install ripmime
Loaded plugins: fastestmirror, security
Setting up Install Process
Determining fastest mirrors
epel/metalink | 6.2 kB 00:00
Could not retrieve mirrorlist http://rpms.remirepo.net/enterprise/6/remi/mirror error was
14: PYCURL ERROR 7 - "Failed to connect to 2001:bc8:33a1:100::1: Network is unreachable"
* base: data.aonenetworks.kr
* epel: mirror.premi.st
* extras: data.aonenetworks.kr
* remi: mirrors.thzhost.com
* remi-safe: ftp.riken.jp
* rpmforge: ftp.riken.jp
* updates: data.aonenetworks.kr
base | 3.7 kB 00:00
epel | 3.2 kB 00:00
epel/primary | 3.2 MB 00:00
epel 12522/12522
epel-httpd24 | 2.9 kB 00:00
extras | 3.4 kB 00:00
remi | 2.9 kB 00:00
remi/primary_db | 2.2 MB 00:05
remi-safe | 2.9 kB 00:00
remi-safe/primary_db | 1.0 MB 00:00
rpmforge | 1.9 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 1.2 MB 00:09
Resolving Dependencies
--> Running transaction check
---> Package ripmime.x86_64 0:1.4.0.9-2.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
ripmime x86_64 1.4.0.9-2.el6 epel 83 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 83 k
Installed size: 201 k
Is this ok [y/N]: y
Downloading Packages:
ripmime-1.4.0.9-2.el6.x86_64.rpm | 83 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : ripmime-1.4.0.9-2.el6.x86_64 1/1
Verifying : ripmime-1.4.0.9-2.el6.x86_64 1/1
Installed:
ripmime.x86_64 0:1.4.0.9-2.el6
Complete!
------------------------------------------------------------------------------------------------------
* simscan 설치
[root@localhost]#cd /usr/local/src
[root@localhost]#wget http://downloads.sourceforge.net/project/simscan/simscan/simscan-1.4.0/simscan-1.4.0.tar.gz
[root@localhost]#wget https://notes.sagredo.eu/files/qmail/patches/simscan-1.4.0.patch
[root@localhost]tar xvfz simscan-1.4.0.tar.gz
[root@localhost]cd simscan-1.4.0
[root@localhost]patch -p1 < ../simscan-1.4.0.patch
[root@localhost]useradd -r -g clamav -s /bin/false -c "Simscan - a qmail-queue substitute" simscan
./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --enable-user=simscan --enable-clamav=y --enable-attach=y --enable-dropmsg=y --enable-per-domain=y --enable-spam=y --enable-spamc-user=y --enable-spamc=/usr/bin/spamc --enable-spam-hits=30.0 --enable-qmaildir=/var/qmail --enable-workdir=/var/qmail/simscan --enable-controldir=/var/qmail/control --enable-quarantinedir=/var/qmail/quarantine --enable-qmail-queue=/var/qmail/bin/qmail-queue --enable-ripmime=/usr/bin/ripmime --enable-received=y --enable-spamassassin-path=/usr/bin/spamassassin --enable-clamavdb-path=/var/clamav --enable-clamdscan=/usr/bin/clamdscan --enable-sigtool-path=/usr/bin/sigtool --enable-spam-passthru=y
[root@localhost]# make
[root@localhost]# make install-strip
[root@localhost]# mkdir /var/qmail/quarantine
[root@localhost]# chown simscan:clamav /var/qmail/quarantine/
[root@localhost]# chmod 770 /var/qmail/quarantine/
[root@localhost]# cat /var/qmail/control/simcontrol
:clam=yes,spam=yes,attach=.scr:.bat:.com:.pif:.exe:.mp3:.avi:.mpeg:.wmv
[root@localhost]# /var/qmail/bin/simscanmk -g
simscan versions cdb file built. /var/qmail/control/simversions.cdb
[root@localhost]# /var/qmail/bin/simscanmk
simscan cdb file built. /var/qmail/control/simcon