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!

How to set Mailscanner to be able to switch scanning on/off for different domains

Discussion in 'cPanel Developers' started by equens, Oct 4, 2004.

  1. equens

    equens Well-Known Member

    Joined:
    Feb 8, 2002
    Messages:
    274
    Likes Received:
    2
    Trophy Points:
    316
    How to set Mailscanner to be able to switch scanning on/off for different users or different domains:

    First add the folowing lines to etc/MailScanner/rules/virus.scanning.rules

    FromOrTo: default yes
    From: notscanwithms@domain.com no

    Then add the folowing to Virus Scanning at etc/MailScanner/MailScanner.conf

    Virus Scanning = %rules-dir%/virus.scanning.rules

    I want to set Mailscanner to scan all domains (FromOrTo) but to not scan emails sending from alwaysdeliver@domain.com. Do you think if this config will work for me? Thanks!
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    It will, but it processes rules in order, so you would need to reverse the lines to have:

    From: notscanwithms@domain.com no
    FromOrTo: default yes
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. equens

    equens Well-Known Member

    Joined:
    Feb 8, 2002
    Messages:
    274
    Likes Received:
    2
    Trophy Points:
    316
    Thank you very much! I will try.
     
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