background preloader

Antivirus et antispam

Facebook Twitter

ClamAV - wiki.mattrude.com. ClamAV is a Open Source Ani-virus suite of software written for the Linux/Unix systems. We are going to use ClamAV as our gateway mail server anti-virus solution. ClamAV Note: This Page was written with Fedora 8 & 9 in mind, and may not work correctly with other versions or distributions. Installing ClamAV yum install clamav clamav-update Building and Installing ClamAV (from source files) If this is a new install, run the following. Yum -y install gmp-devel Then add the correct users and groups. echo "clamav:x:509:509:ClamAV:/dev/null:/sbin/nologin" >> /etc/passwd echo "clamav:x:509:" >> /etc/group Download the latest source file from: then run something like this: cd /var/svn wget tar -xzf clamav-0.94.2.tar.gz cd clamav-0.94.2 .

And if everything checks out. monit stop clamav sleep 10 make install && monit start clamav echo $? Configuring ClamAV ClamAV INIT Script FreshClam FreshClam Config File. ClamSMTP: An SMTP Virus Filter. Clamsmtp is a very simple virus filtering tool for any SMTP server. It is very usable with the Postfix MTA, so the following article applies to this and gives you an example of a simple configuration. The basic requirements are a working Postfix installation with a bunch of users and a working Clamav daemon, so be sure you have installed and configured them properly. See: Clamav Postfix Installation Before you install Clamsmtp, install and configure Postfix, create users for your SMTP server, and test if it is working.

If both of your tools work well, you can install clamsmtp from AUR, by makepkg or by yaourt: # yaourt -S clamsmtpd Configuration Let's see /etc/conf.d/clamsmtp first change the line: START_CLAMSMTP="no" to START_CLAMSMTP="yes" Now, we will configure the daemon, by editing /etc/clamav/clamsmtpd.conf. . # Simple clamsmtpd config file OutAddress: 10025 Listen: 127.0.0.1:10026 TempDirectory: /var/spool/clamsmtp User: clamav Clamsmtp works as a daemon. #ScanMail yes ScanMail yes Testing See also. Setting up clamsmtp - Alpine Linux. Introduction ClamSMTP is a simple, lightweight content filter, written in C, which accepts SMTP connections and can be used to check for viruses and spam using Clamav. The 'DATA' section of the email is scanned before the email is submitted to the queue for delivery. Set up ClamSMTP Install ClamSMTP apk add clamsmtp Configure the clamsmtpd.conf file as follows: OutAddress: 127.0.0.1:10026 Listen: 127.0.0.1:10025 ClamAddress: /var/run/clamav/clamd.sock TempDirectory: /tmp Action: drop Quarantine: on User: clamav ## The following line makes it possible to filter an entire network's SMTP traffic. ## If used, remove the OutAddress line above #TransparentProxy: on ## Uncomment if you wish to use a virus action script to perform further actions on the suspect email #VirusAction: /etc/postfix/scripts/virus_action.sh The configuration above supports sending mail to an email address of a mailbox monitored by an Administrator.

A very nice Virus Action script can be found here at virus_action.sh. Qmail-Scanner With ClamAV And SpamAssassin On Ubuntu. In continuation of my document about setting up qmail-ldap on Ubuntu this document will help you to set up Qmail-Scanner with ClamAV antivirus and SpamAssassin spamfilter with your qmail server. Introduction Qmail-Scanner is an add-on that enables a Qmail email server to scan email for certain characteristics. It is typically used for its anti-virus and anti-spam protection functions, in which case it is used in conjunction with external scanners. It also enables a site (at a server/site level) to create "Policy blocks": i.e. react to email that contains specific strings in particular headers, or particular attachment filenames or types (e.g. *.EXE attachments even in a zip file). Its archival features helps ISPs and corporations around the world with new or pending legislation, and regulatory requirements. It can archive all processed email into an archive maildir.

We will bind spamassasin and clamav with qmailsacnner. Installation Razor . FrequentlyAskedQuestions - Spamassassin Wiki.