Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Blocked Content,how to disable it ?

Discussion in 'General Discussion' started by jameshsi, Jun 9, 2004.

  1. jameshsi

    jameshsi Well-Known Member

    Joined:
    Oct 22, 2001
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    316
    A few clients complain that mailscanner blocked some emails they need just because it has attachment with html file, is there any way to disable this function in mailscanner ?

    And, do we really need to blocked all content that has script in the html style emails ?
    Sometimes people just forward a web page to us and the email will be blocked just because of there is a javascript in it.
     
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,366
    Likes Received:
    5
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
  3. jameshsi

    jameshsi Well-Known Member

    Joined:
    Oct 22, 2001
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    316
    Thanks. I disable it, and wonder if I can set not disable to all users.
     
  4. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,366
    Likes Received:
    5
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    You can set to not delete by domain by using rule sets. Rule sets are simple and also explained in the admin doc.
    HTH
     
  5. jameshsi

    jameshsi Well-Known Member

    Joined:
    Oct 22, 2001
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    316
    Hi!
    Thanks, I got it all work, and feel mailscanner is really powerful, but now, I got a client he say a lot of emails been stop cause there is a ,pg file in emails from his co-worker, he need these email pass the mailscanner, I know mailscanner probably can do this by ruleset, but I don't know how to set it.
     
  6. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,366
    Likes Received:
    5
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Chirpy on these forums is the expert here, but I would say that you can add the file name extension to
    /usr/mailscanner/etc/filename.rules.conf
    And as always restart mailscanner to take effect.
    HTH
     
  7. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,470
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Also, it might not be MailScanner blocking the files (unless it says it is): you might want to disable using /etc/antivirus.exim which blocks some attachments based on file extension too. You can do this in WHM > Exim Configuration Editor, or just do:

    cat /dev/null > antivirus.exim

    Then restart Exim.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. jameshsi

    jameshsi Well-Known Member

    Joined:
    Oct 22, 2001
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    316
    OK, I know I can set a ruleset, like this:
    "Filetype Rules = %etc-dir%/rules/filetype.rules"
    but what should I put the lines in that file ?

    Can I use these:
    FromOrTo: *@my_domain.com %etc-dir%/other-filetype.rules.conf
    FromOrTo: default %etc-dir%/filetype.rules.conf
     
  9. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,470
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Well, your MailScanner.conf should already have these defined and configured:

    Filename Rules = %etc-dir%/filename.rules.conf
    Filetype Rules = %etc-dir%/filetype.rules.conf

    The syntax of those files is described within them. AFAIK you cannot have a ruleset within a ruleset - you either filter on certain file types/names or not, you cannot filter specific files per domain.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. jameshsi

    jameshsi Well-Known Member

    Joined:
    Oct 22, 2001
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    316
    I really don't think so, cause in the MailScanner.cof file it says:
    # This can also point to a ruleset, but the ruleset filename must end in
    # ".rules" so that MailScanner can determine if the filename given is
    # a ruleset or not!
     
  11. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,470
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Then the comments are wrong, because that is how MailScanner sets it up by default :rolleyes:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. jameshsi

    jameshsi Well-Known Member

    Joined:
    Oct 22, 2001
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    316
  13. jameshsi

    jameshsi Well-Known Member

    Joined:
    Oct 22, 2001
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    316
    Yes! I can do it now.
    It's possibile to set ruleset on filetype for some domain or some users.
     
  14. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,470
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    I stand corrected. Well done for getting it working :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice