cPanel 2082 English » Articles

Installation of DrWEB server antivirus for cPanel

Geri git   WHM cPanel Destek Platformu » WHMSupport .Com - WHM/cPanel English Support Platform » cPanel 2082 English » Articles
Kayıt ol Yardım Üye Listesi Ajanda Forumları Okundu Kabul Et
 

Cevapla
 
LinkBack Seçenekler Stil
  #1 (permalink)  
Alt 09.11.07, 10:48 PM
CaLViN - ait Kullanıcı Resmi (Avatar)
Sevgi güçtür.
 
Üyelik tarihi: Apr 2007
Nerden: Outta nation
Yaş: 26
Mesajlar: 1.518
Tecrübe Puanı: 100000
CaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond repute
Installation of DrWEB server antivirus for cPanel

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>


II. Installing DrWEB


First, download DrWEB antivirus RPM package from here



Get
Install it using rpm -Uvh command. For example, for glibc 2.3 use


# rpm -Uvh ftp://ftp.drweb.ru/pub/unix/drweb-4....c.2.3.i586.rpm

Start drweb daemon using command


# /opt/drweb/drwebd start

Now lets take care about automatic antivirus databases updates.
Add the following cron job:


00 12 * * * /opt/drweb/update/update.pl


III. Installing and configuring DrWEB-Exim


Download drweb-exim from Get

Untar tgz archive.
For example,


tar xzvf drweb-exim-4.29.12-F-linux.tar.gz

Now we need to copy drweb-exim files to proper directories.

# 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

AdminMail = postmaster>
to

AdminMail = you@yourdomain.com>

Lets test how it works so far:



# /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
[skipped]

###########################
# 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:

# /etc/rc.d/init.d/exim restart

and test your email delivery.

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.


Thanks to S. Leggett
__________________
1.)Lütfen destek talebinde bulunmak için msn messenger üzerinden iletişime geçmeyiniz.
2.)Ücretsiz destek almak için forum sayfalarımızı kullanmanız aynı sorunu yaşayan diğer üyelerin cevaplara en kısa sürede ulaşabilmesi ve sizlere yardımcı olmak isteyen bizlerin ve diğer üyelerimizin zaman kazanmaları açısından çok önemlidir.
3.)Forumlarımızda sorunlarınızı anlatırken mümkün olduğunca çok detay vermeniz en kısa sürede sorununuza çözüm bulmanız açısından mühimdir.

Daha çok öğrenmek ve öğretmek dileğiyle..
Sevgiler..
The Platform.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Alıntı ile Cevapla
Cevapla



Seçenekler
Stil

Yetkileriniz
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-KodlarıKapalı
Trackbacks are Açık
Pingbacks are Açık
Refbacks are Açık


Sign up for PayPal and start accepting credit card payments instantly.

Navigasyon
Menü