AVG Antivirus For Linux/FreeBSD Plus Qmail Mail Server
|
Submitted by dervis (Contact Author) (Forums) on Fri, 2012-04-27 14:10. :: Anti-Spam/Virus | Linux | Email | Security | FreeBSD
AVG Antivirus For Linux/FreeBSD Plus Qmail Mail ServerThis document describes how to deploy AVG Antivirus for Linux/FreeBSD to the Qmail mail server. It is usable for AVG version 8.5, 10 and 2012.
Requirements1) Linux or FreeBSD x86 or x86_64 with x32 compatible libraries. (See /opt/avg/av/doc/README.)
Installation1) Download correct package from AVG site: Trial: http://www.avg.com/cz-cs/download.prd-trialb NOTE: Trial/full package contains Antispam module. Later migration from free to full is possible. 2) Install package according to your distribution. Examples: Installation from RPM (Linux only): # rpm -i avg2012lms-r{release}-a{vdb version}.{architecture}.rpm Installation from .deb (Linux only): # dpkg -i avg2012lms-r{release}-a{vdb version}.{architecture}.deb Installation from sh (Linux only):
# chmod +x avg2012lms-r{release}-a{vdb version}.{architecture}.sh Installation from .tar.gz:
# tar xzvf avg2012{edition}-r{release}-a{vdb version}.{architecture}.tar.gz
RegistrationYou can register AVG for Linux/FreeBSD during installation from sh or tar.gz, or later using command: # avgctl --register 'your license number' NOTE: Free version is registered automatically during instalation, trial license is available at /opt/avg/av/doc/README.
Start of AVG Anti-VirusIt is possible to use init scripts or avgctl utility:Linux: # /etc/init.d/avgd start FreeBSD: # /usr/local/etc/rc.d/avgd.sh start Both systems: # avgctl --start
Integration AVG to Qmail - Qmail QueueIntegration is possible via Qmail Queue AVG module. Qmail Queue for AVG is a module included into the Qmail email process chain. It allows to scan incoming and outgoing email messages for viruses and spam. It replaces the original qmail-queue file with the qmail-queue-avg file which implements communication with the AVG Daemon. After email scanning the original qmail-queue is executed. Note that execution of the original qmail-queue depends on the AVG Daemon settings. For example when a email contains a virus and the AVG Daemon is configured to drop email with virus the original qmail-queue will not be executed. * Original email process chain: qmail-inject --- * Email process chain with the Qmail Queue for the AVG Daemon: AVG Daemon
Installation of Qmail Queue AVGDownload Qmail Queue AVG source from here. For example: wget http://download.avg.com/filedir/inst/qmail-queue-avg.tar.gz Unpack archive and go to the folder: tar xzvf qmail-queue-avg.tar.gz && cd qmail-queue-avg Edit configure file: Change/leave binary path of qmail-queue file: QQBINPATH="/var/qmail/bin/qmail-queue" Change/leave path of symbolic link to qmail-queue file: QQSYMPATH="/var/qmail/bin/qmail-queue-lnk" Note: Symlink is automaticaly created via installation process if it is not available. Change/leave path of new qmail-queue-avg file: DESTINATION="/var/qmail/bin/qmail-queue-avg" Note: You can also set this parameter with configure command. See help of configure for details. Run trinity:
./configure Integration AVG to Qmail is done now. Restart of mail server is not needed.
AVG Service ConfigurationConfiguration is out-of-the-box, it works at all after integration. If you need to change some specific parameters use utility avgcfgctl. For example if you need write configuration use: avgcfgctl -w 'parameter=value' For more details see man page of avgcfgctl.
Specific configuration for QMail (AVG protocol).It is needed to set some parameters: Enable AVG protocol: Default.tcpd.avg.enabled=true Define port: Default.tcpd.avg.ports="|54322|" Make sure this port is the same as port defined in configure file of Qmail Queue AVG module.
Other useful AVG parameters:For settings: Default.setup.features.tcpd=true This item enables/disables whole E-Mail functions. Default.tcpd.spam.enabled=true Enable/disable Anti-spam function. For scanning: Tcpd.scan.Options.ArchiveLevel=256 It defines level of processing archive files.Values:
Tcpd.scan.Options.DetectCookies=false This enables/disables detection of cookies.
Tcpd.scan.Options.DetectPup2=false This enables/disables detection of Potentially Unwanted Programs. Tcpd.scan.Options.UseHeuristics=true Use heuristic during scan. Tcpd.scan.Options.MaxFileSize=268435456 This item defines maximal size of extracted archive. Tcpd.scan.Options.MaxNumberOfFiles=50000 This item defines maximal count of extracted files. Tcpd.scan.Options.MaxRecursionDepth=40 Maximal level of recursion for archive.
Tcpd.scan.mail.strip.alldoc=false Enable detection of defined attachments. For basic Anti-spam configuration: Default.tcpd.spam.header.enabled=true This item adds "AVG Anti-spam header" to mail. Default.tcpd.spam.phish_subj_prefix=[PHISHING] This item adds prefix to subject - mail with phishing. Default.tcpd.spam.spamscore_level=90 This item sets score for Spam identification (less means more spam). Default.tcpd.spam.subj_prefix=[SPAM] This item adds prefix to subject - mail with spam. Other actions: Default.tcpd.parsing.mime_certification_enabled=false It enables/disables AVG certification in body of E-mail.
Default.tcpd.rules.virus.action=0 This items defines action for each detected message. Values:
Default.tcpd.rules.virus.bounce_addr= There is defined adress for BOUNCE action. Default.tcpd.scan.header.enabled=true This parameter adds "AVG Anti-virus header" to mail. Default.tcpd.scan.subj_prefix=[VIRUS] This item adds prefix to subject - mail with virus. Basic statistics of scanned messages: For basic statistic enter command: avgctl --stat=tcpd This returns (depends on settings):
AVG command line controller NOTE: For other parameters see avgtcpd and avgspamd man page! After configuration restart all related services (AVG).
|



Recent comments
23 hours 11 min ago
1 day 4 hours ago
1 day 5 hours ago
1 day 6 hours ago
1 day 8 hours ago
1 day 12 hours ago
1 day 13 hours ago
1 day 15 hours ago
2 days 4 hours ago
2 days 6 hours ago