Article Title: version of qmail mail system anti-virus in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
QMAIL-SCANNER + CLAMAV + MAILDROP for QMAIL
# Groupadd clamav
# Useradd-g clamav? D/usr/local/share/clamav-s/bin/false clamav
# Tar zxvf clamav-0.65.tar.gz
# Cd clamav-0.65
#./Configure
# Make check
# Make install
# Vi/usr/local/etc/clamav. conf
================================ Clamav. conf ================================
# Comment or remove the line below.
# Example
LogFile/var/log/clamd. log
LogFileMaxSize 1 M
LogTime
LogVerbose
PidFile/var/run/clamd. pid
DataDirectory/usr/local/share/clamav
LocalSocket/tmp/clamd
StreamMaxLength 10 M
MaxThreads 10
MaxDirectoryRecursion 15
User clamav
ScanMail
ScanArchive
ScanRAR
ArchiveMaxFileSize 10 M
ArchiveMaxRecursion 5
ArchiveMaxFiles 1000
ClamukoScanOnOpen
ClamukoScanOnClose
ClamukoScanOnExec
ClamukoIncludePath/home/vpopmail
ClamukoMaxFileSize 6 M
ClamukoScanArchive
================================ Clamav. conf ================================
# Touch/var/log/clamd. log
# Chown clamav: clamav/var/log/clamd. log
4.1 create a STARTUP script for clamav:
# Vi/etc/init. d/clamd
====================================== Clamd ====== ======================================
#! /Bin/bash
#
# Crond Start/Stop the clam antivirus daemon.
#
# Chkconfig: 2345 90 60
# Description: clamdis a standard UNIX program that scans for Viruses.
# Processname: clamd
# Config:/usr/local/etc/clamav. conf
# Pidfile:/var/run/clamd. pid
# Source function library.
./Etc/init. d/functions
RETVAL = 0
# See how we were called.
Prog = "clamd"
Progdir = "/usr/local/sbin"
# Source configuration
If [-f/etc/sysconfig/$ prog]; then
./Etc/sysconfig/$ prog
Fi
Then run/var/qmail/bin/qmail-scanner-queue.pl-z with a common user
If there is a Can't do setuid, return to the installation file directory with A contrib directory,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.