DirectAdmin Forums

Go Back   DirectAdmin Forums > Technical Discussion > SpamBlocker > SpamBlocker2

Reply
 
Thread Tools Display Modes
  #1  
Old 06-15-2007, 03:19 AM
nzyme nzyme is offline
Verified User
 
Join Date: Dec 2006
Location: NL
Posts: 109
clamav

Jeff, how do i get ClamAV in SB2 ?

edit:
Quote:
## Find primary_hostname and add the following line above
av_scanner = clamd:/var/run/clamav/clamd

## Find check_message:
## Make sure it looks like this:

check_message:
deny message = This message contains malformed MIME ($demime_reason)
demime = *
condition = ${if >{$demime_errorlevel}{2}{1}{0}}
deny message = This message contains a virus or other harmful content ($malware_name)
demime = *
malware = *
deny message = This message contains an attachment of a type which we do not accept (.$found_extension)
demime = bat:comifrf:scr:vbs
warn message = X-Antivirus-Scanner: Clean mail though you should still use an Antivirus
accept

## Save and exit

## Restart exim
/sbin/service exim restart
found it right here on the forums
http://www.directadmin.com/forum/sho...threadid=10478
__________________
Terror

Last edited by nzyme; 06-15-2007 at 03:34 AM.
Reply With Quote
  #2  
Old 07-06-2007, 11:33 PM
jjma's Avatar
jjma jjma is offline
Verified User
 
Join Date: Mar 2004
Location: Edinburgh,Scotland
Posts: 313
Not sure what fix you used as there are a few suggestions on that thread, each with a degree of success.

I have had to disable clamav for the moment as it was falling over with the new spamblocker.

Jon
Reply With Quote
  #3  
Old 07-08-2007, 08:30 PM
jlasman's Avatar
jlasman jlasman is offline
NoBaloney
 
Join Date: Jun 2003
Location: Riverside, Calif., USA
Posts: 20,706
Jon, can you explain further?

Jeff
__________________

Jeff Lasman <directadmin@nobaloney.net> +1 951 643-5345
Third-Party DirectAdmin administration and support
Dedicated Servers, Dedicated Reseller Accounts
NoBaloney Internet Services
P.O. Box 52200
Riverside, Calif. 92517
Reply With Quote
  #4  
Old 07-09-2007, 01:40 AM
jjma's Avatar
jjma jjma is offline
Verified User
 
Join Date: Mar 2004
Location: Edinburgh,Scotland
Posts: 313
Sure. I upgraded our server last week to the latest spamblocker. At first I thought the install was fine until I received a complaint from a client that they couldn't send a 4mb file (our limit was 20mb, set in both /etc/clamd.conf & /etc/exim.conf) so checking the exim panicklog I noticed lots of ' clamd: connection to 127.0.0.1, port 3310 failed (Connection refused)'.

I checked the exim.conf file that clamav was installed properly, compared the conf file with the forum howto, scratched my head as it appeared to be correct. After much trail and experimentation I thought the best thing was to reinstall clamav again, delete all clam's conf files.

Reinstalling did work, test emails with virus attachments were being rejected so it appear that both exim and clam are working properly.

I found the howto slightly confusing with lots of different opinions on which is the correct way to install clamd but glad we're now protected again.

regards

Jon
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
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 On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:42 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
DirectAdmin © 2007 JBMC Software