Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member SuperBaby's Avatar
    Join Date
    Nov 2003
    Location
    Malaysia
    Posts
    306

    Default MailScanner + ClamAV: Scan only emails for certain customers.

    Do MailScanner + ClamAV work fine under RedHat 9 + CPanel?

    Also, can I configure them so that only the emails of the accounts that I specified are scanned? This way, I can sell the antivirus service as an optional item.
    Last edited by SuperBaby; 01-02-2004 at 08:20 AM.
    SuperBaby

  2. #2
    Member SuperBaby's Avatar
    Join Date
    Nov 2003
    Location
    Malaysia
    Posts
    306

    Default

    Anybody?
    SuperBaby

  3. #3
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    I answered you on the cpanel hosts forum.

  4. #4
    Member SuperBaby's Avatar
    Join Date
    Nov 2003
    Location
    Malaysia
    Posts
    306

    Default

    I have this posted on cpanelhosts.com:
    But there are no configuration options that I have seen that would allow you to disable it for certain domains.
    I saw this under MailScanner's FAQ. I guess it is related but I do not fully understand.
    Do not scan attachments for single domain/address
    =================================================

    You need a filename.rules.conf file that allows everything, and a filetype.rules.conf that allows everything.

    So let's make
    /etc/MailScanner/filename.allow.all.conf and
    /etc/MailScanner/filetype.allow.all.conf
    Make them both contain a single rule allow . - - (remember to separate with tabs and not spaces).

    Then set in
    MailScanner.conf Filename Rules = /etc/MailScanner/rules/filename.rules
    Filetype Rules = /etc/MailScanner/rules/filetype.rules

    Then in
    /etc/MailScanner/rules/filename.rules we put
    To: awkward@customer.com /etc/MailScanner/filename.allow.all.conf
    FromOrTo: default /etc/MailScanner/filename.rules.conf

    /etc/MailScanner/rules/filetype.rules we put
    To: awkward@customer.com /etc/MailScanner/filetype.allow.all.conf
    FromOrTo: default /etc/MailScanner/filetype.rules.conf

    What happens is this: mail to the awkward customer ends up with the "allow.all" filename and filetype rules. Everyone else ends up with the normal filename.rules.conf and filetype.rules.conf files.
    SuperBaby

  5. #5
    Member SuperBaby's Avatar
    Join Date
    Nov 2003
    Location
    Malaysia
    Posts
    306

    Default

    And also this:
    Controlling filename-based filtering per domain
    In MailScanner.conf set
    Filename Rules = /etc/MailScanner/rules/filename.rules.rules
    In that file put this:

    From: domain.com /etc/MailScanner/filename.no.rules.conf
    FromOrTo: default /etc/MailScanner/filename.rules.conf
    In the "filename.no.rules.conf" file put this:

    allow . - -

    (remembering to put tabs between each of the 4 words on that line).

    This has created a ruleset so that mail from domain.com gets the "filename.no.rules.conf" filename rules file. Everyone else gets the normal "filename.rules.conf".

    The "allow.everything" file just works by having 1 rule which will match any filename, allowing it.
    SuperBaby

  6. #6
    Member SuperBaby's Avatar
    Join Date
    Nov 2003
    Location
    Malaysia
    Posts
    306

    Default

    Or is this the answer? Please advise.
    Dont Check Virus in some Fromto:
    How to configure for dont check virus in some domains?
    example,
    i dont need to check virus in messages with the from: xxx@ietf.org is this possible?
    alliettiATyahooDOTcom
    There are some hints for doing this along the official documentation.
    Please check specially the file /opt/MailScanner/rules/EXAMPLES where you can find something like this:
    5. Only virus scan some domains

    Set "Virus Scanning = /opt/MailScanner/etc/rules/virus.scanning.rules".
    FromOrTo: *@scanme.com yes
    FromOrTo: *@scanme-too.com yes
    FromOrTo: default no
    SuperBaby

  7. #7
    Registered User
    Join Date
    Jun 2003
    Posts
    111

    Default

    I'm using RedHat 9 and mailscanner from http://www.cpanelplus.com/staticpage...03073009541160

    Works fine ..

Similar Threads & Tags
Similar threads

  1. Replies: 3
    Last Post: 07-19-2011, 02:38 PM
  2. How can I know Tomcat or JSP in cPanel work fine?
    By solangekify in forum New User Questions
    Replies: 0
    Last Post: 02-08-2010, 04:48 PM
  3. CPanel MailScanner Plugin with ClamAV
    By trparky in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-24-2005, 08:00 AM
  4. RHE, Mailscanner, clamav, spamassasin, cpanel???
    By damainman in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-09-2004, 02:16 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube