The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    270
    Likes Received:
    0
    Trophy Points:
    16
    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,475
    Likes Received:
    20
    Trophy Points:
    38
    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
     
  3. equens

    equens Well-Known Member

    Joined:
    Feb 8, 2002
    Messages:
    270
    Likes Received:
    0
    Trophy Points:
    16
    Thank you very much! I will try.
     
Loading...

Share This Page