Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Aug 2005
    Posts
    49

    Default Excluding some hosts from clamav scanning.

    Due to all the extra virus laden email getting around the last couple of weeks, I'd like to move my email filtering to a dedicated mailscanner server. I want to set up exim on the cPanel box to not (re-)scan mail that is delivered via the mailscanner server.

    When I go to WHM -> Service Configuration -> Exim Config Editor -> Advanced Mode, in the very top box I have

    Code:
    av_scanner = clamd:/var/clamd
    log_selector = +all -ident_timeout
    Do I just change the above to this?

    Code:
    av_scanner = clamd:/var/clamd
    !hosts = <ip or hostname of filtering server>
    log_selector = +all -ident_timeout

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    No, that won't work as that area is not for ACL's. Why not simply disable clamav on that server if your email is already being scanned elsewhere?
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Aug 2005
    Posts
    49

    Default

    Quote Originally Posted by chirpy
    No, that won't work as that area is not for ACL's. Why not simply disable clamav on that server if your email is already being scanned elsewhere?
    Thanks, chirpy. I'll be keeping that server as a secondary MX. I'm mainly just trying to have the majority of mail hit the filtering box first to help ease the load on the cPanel box. It's crazy, but for the each of the last two weeks my filters have rejected double what they have previously (mainly due to sober.u). When looked at as an increase of thousands per day, the constant filtering adds a not insignificant load to an aging box.

    OK, so in the ACL area, I have this.

    Code:
    ##### clamav ACL, reject virus infected mails with proper error
    
    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 = Potentially executable content. If you meant to send this file \
    then please package it up as a zip file and resend it.
    demime = ade:adp:bas:bat:chm:cmd:com:cpl:crt:eml:exe:hlp:hta:inf:ins:isp:jse:lnk:mdb:mde:msc:msi:msp:pcd:reg:scr:sct:shs:url:vbs:vbe:wsf:wsh:wsc
    
    # Add X-Scanned Header
    
    warn message = X-Antivirus-Scanner: Clean mail though you should still use an Antivirus
    
    ##### end clamav ACL
    Should I put my !hosts line in below each of the deny message directives?

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    TBH, I'd suggest having a look at the rvskin procedures for black/whitelisting with ClamAV and the like if you want to do inline scanning (my preference is for MailScanner):
    http://www.rvskin.com/index.php?page=public/antispam
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  5. #5
    Member
    Join Date
    Aug 2005
    Posts
    49

    Default

    Quote Originally Posted by chirpy
    TBH, I'd suggest having a look at the rvskin procedures for black/whitelisting with ClamAV and the like if you want to do inline scanning (my preference is for MailScanner):
    http://www.rvskin.com/index.php?page=public/antispam
    Thanks, chirpy. That page has heaps of good info. Much appreciated.

Similar Threads & Tags
Similar threads

  1. ClamAV scanning for incoming emails
    By sloop in forum E-mail Discussions
    Replies: 0
    Last Post: 06-09-2011, 07:45 AM
  2. Is ClamAV regularly scanning my hardisc?
    By SuperBaby in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-14-2007, 03:03 AM
  3. CLAMAV Connection --> Virus Scanning ZIP FILES
    By slesnick3 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-19-2005, 09:29 AM
  4. Automatic ClamAV Scanning
    By JakReloaded in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-26-2005, 09:22 AM
  5. ClamAV scanning zip files?
    By SageBrian in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-01-2004, 08:41 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube