Results 1 to 1 of 1
-
16th Jun 2014, 01:03 PM #1
Installing DRrWEB antivirus for Linux cPanel/WHM
This document is a straightforward step-by-step instruction on how to install DrWEB antivirus on Linux server running CPanel.
I. Doing backups
Following files are need to be saved:
Code:/etc/exim.conf /etc/antivirus.exim or system_filter.exim>
II. Installing DrWEB
First, download DrWEB antivirus RPM package from here
Code:http://www.sald.com/get.html
Code:# rpm -Uvh ftp://ftp.drweb*****pub/unix/drweb-4.30-glibc.2.3.i586.rpm
Code:# /opt/drweb/drwebd start
Add the following cron job:
Code:00 12 * * * /opt/drweb/update/update.pl
III. Installing and configuring DrWEB-Exim
Download drweb-exim from ??????? - ?????????? Dr.Web - ?? "???????" ?? "??????" - SalD
Code:Untar tgz archive. For example, tar xzvf drweb-exim-4.29.12-F-linux.tar.gz
# cp -r drweb-exim/etc/drweb/* /etc/drweb/
# cp -r drweb-exim/opt/drweb/doc/* /opt/drweb/doc/
# cp -r drweb-exim/opt/drweb/drweb-* /opt/drweb/
Edit /etc/drweb/drweb_exim.conf
Change
# /opt/drweb/drweb-exim --check_only --check_user=drweb
All tests should be "passed".
IV. Configuring Exim
We need to make changes in two files to make drweb and exim work together.
First, edit /etc/exim.conf
Black are lines which we will need to add.
###### begin exim.conf ########
[skipped]>
###########################
# Runtime configuration file for Exim #
###########################
trusted_users = drweb
trusted_groups = drweb
[skipped]
#!!# message_filter renamed system_filter
system_filter = /etc/antivirus.exim
message_body_visible = 5000
>system_filter_pipe_transport = filter_pipe
system_filter_reply_transport = address_reply
###########################
# TRANSPORTS CONFIGURATION #
########################### ORDER DOES NOT MATTER #
# Only one appropriate transport is called for each delivery. #
############################ A transport is used only when referenced from a director or a router that
# successfully handles an address.
# This transport is used for delivering messages over SMTP connections.
begin transports
filter_pipe:
driver = pipe
user = drweb
group = mail
return_fail_output
>
###### end exim.conf ########>
CPanel comes with /etc/antivirus.exim filter file.
In clean Exim install it is called system_filter.exim
Add the following at the end of the file:
###### begin antivirus.exim #######>>
# to prevent from mail loop, skip already scanned message
if $received_protocol is "drweb-scanned"
then
finish
endif
>pipe "/opt/drweb/drweb-exim -f $sender_address -- $recipients"
>>finish
###### end antivirus.exim ########>>
V. Restart Exim and test virus checking
Thats it with configuration.
Now restart exim:
Code:# /etc/rc.d/init.d/exim restart
If email is not going through, inspect /var/logs/exim_mainlog and /var/logs/exim_paniclog
Now take one of those ugly MyDoom worms, attach it to your email message and send it to yourself.Areon Reviewed by Areon on . Installing DRrWEB antivirus for Linux cPanel/WHM This document is a straightforward step-by-step instruction on how to install DrWEB antivirus on Linux server running CPanel. I. Doing backups Following files are need to be saved: /etc/exim.conf /etc/antivirus.exim or system_filter.exim> Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
HostHaat.com - Linux cPanel/WHM Alpha Reseller Hosting @5$[LT]
By ethicalmohit in forum Shared Hosting OffersReplies: 44Last Post: 6th Nov 2012, 07:59 PM -
[VPS] cPanel/WHM Offshore VPS @ 50% OFF. Offer for 7 days only.
By magicworld11 in forum ArchiveReplies: 0Last Post: 6th Jun 2010, 02:25 PM -
Howto install cPanel / WHM
By Nick in forum Technical and Security TutorialsReplies: 0Last Post: 9th Nov 2009, 09:19 AM -
Installing cPanel + WHM
By Lease in forum Technical and Security TutorialsReplies: 1Last Post: 11th Jan 2008, 12:14 AM
themaPoster - post to forums and...
Version 5.22 released. Open older version (or...