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.

Custom Mailscanner Rules

Discussion in 'cPanel Developers' started by verdon, Apr 21, 2006.

  1. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    Hi,

    I've done a little searching here and at http://www.sng.ecs.soton.ac.uk/mailscanner/ but haven't quite been able to figure out what I need to do. I have found good basic examples at Mailscanner's site, but not quite what I need.

    What I'm looking to do is over-ride the default attachment scanning from two particular senders, for a particular domain only. Using this type of line in /usr/mailscanner/etc/rules/filename.rules.rules and /usr/mailscanner/etc/rules/filetype.rules.rules seems to work, but I'm not sure how to make this apply to a particular To: *@domain3.com condition only and not all domains on my server.

    From: *@domain1.com and From: *@domain2.com /usr/mailscanner/etc/filename.no.rules.conf

    Any thoughts?
     
  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
  3. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    Doh! Of course.

    Thanks Chirpy
     
Loading...

Share This Page