Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've Installed clamAV (version 0.95.2) and I want to connect it with procmail, I found that I should install trashscan first to do this, but I didn't found it in /clamav-0.95.2/contrib folder, should I download and install it to make procmail work with clamAV?
clamd.conf governs the configuration settings for the ClamAV daemon. That is a separate issue from running procmail/clamassassin/trashscan. If you don't run thrashscan you need to run clamassassin (or a Sendmail milter) or use a procmail recipe.
Procmail delivers email according to recipes.
ClamAV scans files.
If you do not want to use ClamAV you can choose another antivirus package.
You can not scan email messages for viruses or malware without an antivirus package.
ERROR: Please edit the example config file /usr/local/etc/clamd.conf
Edit the file and
Quote:
# Comment or remove the line below.
Example
Here an ex for procmail and clamassassin
Code:
#####################
# Scan for Virusses #
#####################
# safe the subject line, and put [VIRUS] at the beginning of the subjectline, if any virus is found.
SUBJ_=`formail -xSubject: \
| expand | sed -e 's/^[ ]*//g' -e 's/[ ]*$//g'`
# run clamassassin
:0fw
| /usr/bin/clamassassin
:0:
* ^X-Virus-Status: Yes
{
:0 fhw
| formail -I"Subject: [VIRUS] ${SUBJ_}"
:0 fhw
| formail -A "X-VIRUS-INFO: BLOCKED BY CLAMASSASSIN"
LOG="VIRUS "
:0
${VIRUS}
}
should I install clamassassin or clamav is enough, now I've installed clamav version 0.95.2 and clamassassin work with version lower than I have
thanks in advance
You need to install clamassassin.
clamassassin is a simple virus filter wrapper for ClamAV for use in procmail filters
ok I've installed clamassassin version 1.2.4 and it's compatible with clamav version 0.90 and higher, do I need to use this recipe directly:
Code:
#####################
# Scan for Virusses #
#####################
# safe the subject line, and put [VIRUS] at the beginning of the subjectline, if any virus is found.
SUBJ_=`formail -xSubject: \
| expand | sed -e 's/^[ ]*//g' -e 's/[ ]*$//g'`
# run clamassassin
:0fw
| /usr/bin/clamassassin
:0:
* ^X-Virus-Status: Yes
{
:0 fhw
| formail -I"Subject: [VIRUS] ${SUBJ_}"
:0 fhw
| formail -A "X-VIRUS-INFO: BLOCKED BY CLAMASSASSIN"
LOG="VIRUS "
:0
${VIRUS}
}
or there is a somthign I need to do before?
thanks in advance
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.